Page 1 of 1

Jenkins Job Ranorex test - application window not to front

Posted: Wed Sep 18, 2013 9:45 am
by TestXYZ
Hello all,
I have configured Jenkins Job which should run Ranorex test case “c:\Test.exe /tc:MyTest”. But the job cannot bring the Application windows to the front. So that Ranorex can not find any UI element. The test failed. If I run the same test case in Ranorex solution, then everything goes well. Any Idea? Many thanks!

Re: Jenkins Job Ranorex test - application window not to front

Posted: Thu Sep 19, 2013 12:50 pm
by Support Team
Hello,

Have you already read the blog "Integrating Ranorex Automation in Jenkins CI Process" on our website? Maybe you have overlooked some settings?

Regards,
Bernhard

Re: Jenkins Job Ranorex test - application window not to front

Posted: Mon Sep 23, 2013 12:36 pm
by TestXYZ
Hi Bernhard,
i have checked the blog several times and could not find any points about that. Maybe it is based on Jenkins Job Engine. I also try to put use code to bring the application windows to front, but it does not work in Jenkins. Very strange, maybe I can not run more than one TC in one Job one after another? Thanks
Best Regards.

Re: Jenkins Job Ranorex test - application window not to front

Posted: Wed Sep 25, 2013 1:34 pm
by Support Team
Hello,

I have seen that you also wrote a comment to the blog and it seems that you have already solved the issue.
Please let me know if I am wrong.

Regards,
Bernhard

Re: Jenkins Job Ranorex test - application window not to front

Posted: Thu Sep 26, 2013 9:54 am
by TestXYZ
Hello Bernhard,

The post to the blog is only about the common login problem based on security settings in Jenkins. Now I can start test case in Jenkins, but the execution of several test cases sequentially in Jenkins Job was still failed, because in these test cases the application windows not focused and not to front, very strange... Any idea? Many thanks

Best Regards

Re: Jenkins Job Ranorex test - application window not to front

Posted: Fri Sep 27, 2013 10:59 am
by Support Team
Hello,

Thank you for the clarification.
Please try to make an EnsureVisible() or a click on the main window at the beginning of your test cases.
This could solve the issue.

Regards,
Bernhard

Re: Jenkins Job Ranorex test - application window not to front

Posted: Mon Oct 07, 2013 9:46 am
by TestXYZ
Hello Bernhard,

Thanks for your post. I set the “Use Ensure Visible” on “True” then I have to put one command execution "ThreadSleep(5 Sec.)" between /tc:MyTest1 and /tc:MyTest2. It might be a workaround, I do not why but it works. Many thanks!

Best Regards

Re: Jenkins Job Ranorex test - application window not to front

Posted: Mon Oct 07, 2013 10:12 pm
by Support Team
Hello,

Thank you for the information.
I am glad that you could find a workaround.

Regards,
Bernhard