Page 1 of 1

Running Ranorex test cases from Jenkins

Posted: Wed Sep 20, 2017 10:06 am
by ma.elaallouli
Hello,

I developped an automation testing project of a .NET desktop application , I have another laptop (Execution Agent) that I want run my test cases in and get reports . there are many way to do it, but I choose running my test cases in execution agent and get all reports with Jenkins. I installed a Ranorex plugin in Jenkins

Problem: I run the project from Ranorex studio in my laptop and the execution agent there no problem everything is right , but when I run it from Jenkins, it generate errors , it doesn't find repository items not all of them but some especially 'Rawtext' items.

Please Help if I should do configurations or something else because in local there no problem

PS 1: I commit The automation projet in SVN and Jenkins get from it

PS 2: It worked until I upgrade Ranorex studio to 7.1.1

Regards,

ELAALLOULI Mahmoud

Re: Running Ranorex test cases from Jenkins

Posted: Wed Sep 20, 2017 11:08 am
by odklizec
Hi,

Are you sure the configuration is the same on both machines? The GDI Capture List is stored in Ranorex settings (rxsettings file), and so it must be distributed on all systems. Could you please post the exact error message you getting, including xpath as stored in repository?

Re: Running Ranorex test cases from Jenkins

Posted: Thu Sep 21, 2017 10:15 pm
by tvu
Wow! I didn't know Ranorex had a Jenkins plugin. You can always just run the EXE file directly from an "Execute Windows Batch Command". That's the way I do it in Jenkins and I never had an issue. I'm running Ranorex v7.1.1 right now.

Re: Running Ranorex test cases from Jenkins

Posted: Wed Oct 04, 2017 4:03 pm
by xeronar
Hi,

it might be too late now :D, but if your Jenkins has still issues finding items and such, you should try to start Jenkins as a process and not as a service. Take a look at the following blog post: https://www.ranorex.com/blog/integratin ... n-process/
There is an important hint: As Jenkins or the nodes executing the CI jobs normally are started as Windows services, they do not have sufficient rights to start UI-applications. I got similar problems, too, but when I've started Ranorex tests in Jenkins per CLI, all items could be found without a problem.

Best regards,

xeronar