Page 1 of 1

Running Ranorex tests with Jenkins

Posted: Fri May 17, 2013 8:43 pm
by erman
Hi,

I am having issues running the Ranorex .exe built by Ranorex Studio using Jenkins/Hudson. The Ranorex project .exe is on a remote system (i.e. you would have to remote desktop to the system). When I kick off the Jenkins job to run the Ranorex project, nothing happens on the remote system.

The only way it works if I remote to the system, open the Jenkins URL and run the job, which defeats the whole purpose of using Jenkins/Ranorex.

I followed the instructions on the blog, and still no luck.

Any help would be great,

Eric

Re: Running Ranorex tests with Jenkins

Posted: Tue May 21, 2013 3:47 pm
by Support Team
Hi Eric,

How have you kicked off the Jenkins job, from command line?
Please make sure that you have started Jenkins from command line and not as a service as described in the infrastructure section of the blog post.

Regards,
Markus

Re: Running Ranorex tests with Jenkins

Posted: Wed May 22, 2013 8:00 pm
by erman
Hi Markus,

Yes - I have started the Jenkins service using the Java command from the dos command prompt.

Eric

Re: Running Ranorex tests with Jenkins

Posted: Fri May 24, 2013 2:33 pm
by Support Team
Hello,

Your remote machine will be locked, if you connect via Remote Desktop.
Even if you disconnect, the machine will be locked.
The machine should not be locked in order to run tests with Jenkins.

Please try to unlock your machine (e.g. using VNC) and start your test via Jenkins.

Regards,
Markus (T)

Re: Running Ranorex tests with Jenkins

Posted: Tue May 28, 2013 8:49 am
by odklizec
Hi Eric,

I experienced a similar problem yesterday. It worked flawlessly on one slave (xp 64bit) but not on another (xp 32bit). After examining both slave services, I found a small difference, which caused the problem.

Go to Control Panel >> Administrative Tools >> Services and in the Services dialog find the "Jenkins Slave". Now open its properties and make sure there is enabled option "Allow service to interact with desktop".
JenkinsSlave_prop.png
In my case, this option was unchecked on 32bit system. I found that the ranorex test has been started (I saw its process in the task manager). There was just nothing visible on the screen and Ranorex unsurprisingly failed to find the GUI elements.

One more idea, make sure there is disabled screensaver on the slave machine!

Hope it helps? ;)