Failed to find item when test is run by Jenkins
Posted: Tue May 19, 2015 7:17 pm
Hello Support,
I am automating an iOS mobile application. My test runs fine when I manually start it via the command line, but it fails to find the repository item when I try to run the exact same test via Jenkins.
I have a global parameter that identifies my device and it is in the base path of my repository: @devicename = $mobileDevice. When I run my test on the command line, I pass in the value for $mobileDevice with the following argument "/pa:mobileDevice=iPhone5". I've tried testing this with a device attach via USB on the Ranorex Runtime machine and with the iOS Simulator running on a Mac. The Service App is installed on the physical phone, but not on the iOS Simulator. Also, our application is running and is in focus when I kick off the test.
My Jenkins CI build setup is as follows:
Master - Mac, 10.10.3
Slave - PC, Windows 7
Ranorex 5.3.1.22939
On the Slave PC, Jenkins is not running as a service, but started with a batch file placed under the Startup folder. The PC automatically logs in with a the user when it boots up. When I kick off the test via Jenkins, on the Slave PC I can see the Ranorex pop up showing the test is running. Additionally, the $mobileDevice variable is getting resolved correctly because I can see the value in the report.
On another note, where is the device information saved? I want to put this information under Source Control so that it automatically gets distributed to all the Runtime PCs.
Thanks for the help,
Tung
I am automating an iOS mobile application. My test runs fine when I manually start it via the command line, but it fails to find the repository item when I try to run the exact same test via Jenkins.
I have a global parameter that identifies my device and it is in the base path of my repository: @devicename = $mobileDevice. When I run my test on the command line, I pass in the value for $mobileDevice with the following argument "/pa:mobileDevice=iPhone5". I've tried testing this with a device attach via USB on the Ranorex Runtime machine and with the iOS Simulator running on a Mac. The Service App is installed on the physical phone, but not on the iOS Simulator. Also, our application is running and is in focus when I kick off the test.
My Jenkins CI build setup is as follows:
Master - Mac, 10.10.3
Slave - PC, Windows 7
Ranorex 5.3.1.22939
On the Slave PC, Jenkins is not running as a service, but started with a batch file placed under the Startup folder. The PC automatically logs in with a the user when it boots up. When I kick off the test via Jenkins, on the Slave PC I can see the Ranorex pop up showing the test is running. Additionally, the $mobileDevice variable is getting resolved correctly because I can see the value in the report.
On another note, where is the device information saved? I want to put this information under Source Control so that it automatically gets distributed to all the Runtime PCs.
Thanks for the help,
Tung