building with Jenkins - problem with SVN "ignored" files

Ranorex Studio, Spy, Recorder, and Driver.
User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

building with Jenkins - problem with SVN "ignored" files

Post by odklizec » Sat May 25, 2013 1:21 pm

Hi folks,

I'm recently trying to integrate our Ranorex tests with Jenkins and I'm experiencing a little problem I need to help with.

OK, the problem is like this. I have all auto-generated *.cs files on the SVN ignore list (to prevent conflicts caused by the auto-generated changes), so they are not checked-in. This is not a problem in case of projects opened from the Ranorex Studio, because the missing files are auto-regenerated by the Ranorex.

The problem is, when the test projects are checked-out and build from Jenkins. Because the auto-generated files are not in the SVN, they are not checked-out and then the build fails with the "file could not be found" errors, like this one:
CSC : error CS2001: Source file 'Recordings\App_Version.cs' could not be found...
So, my question is, is there a way to regenerate the missing files before/during Jenkins build (using MSBuild) or the only option is to unignore the autogenerated files in SVN?

Thank you in advance.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: building with Jenkins - problem with SVN "ignored" files

Post by odklizec » Mon May 27, 2013 2:21 pm

OK, it seems I found the answer here...
http://www.ranorex.com/forum/problems-b ... t3988.html

There is currently no way to create the auto-generated CS file outside the RX Studio (e.g. using ms build). I think I'm not alone who would like to see such feature as a part of future RX versions? Let's say some kind of command line, that could be called after the checkout or just before the build?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: building with Jenkins - problem with SVN "ignored" files

Post by Support Team » Tue May 28, 2013 10:38 am

Hello,

You are right.
Currently, you need to use Ranorex Studio to generate cs files.

We have already added this feature request to our internal system.
Unfortunately, we don't know when it will be released.

Regards,
Markus (T)

t_v
Posts: 1
Joined: Tue Aug 04, 2015 4:37 pm

Re: building with Jenkins - problem with SVN "ignored" files

Post by t_v » Tue Aug 04, 2015 4:39 pm

any news on this feature? We're having the same issue here...

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: building with Jenkins - problem with SVN "ignored" files

Post by Support Team » Fri Aug 07, 2015 7:01 am

Hi t_v,

These files are currently built by a mechanism, which is part of the Ranorex Studio itself. We will discuss it internally if we can find another approach for the auto generated .cs files.
Thank you for your understanding.

Regards,
Markus (S)