How to trigger test using Jenkins with display
Posted: Fri Jul 15, 2016 3:00 pm
Hi,
I am automating a standard desktop (.Net) application. I am using Jenkins to trigger the test as scheduled locally on my Windows 7 machine.For which I am building my test and successfully able to generate the .EXE file using Jenkins.
I am executing the .EXE file using windows batch command where in the 1st step of the test it will try to launch the application and then will try to login to it and continue with the other tests but it seems as it is running in command line (without a desktop view) my Ranorex is not able to find the component for AUT which in turn failing all the subsequent steps.
Console Output :
C:\Program Files (x86)\Jenkins\workspace\Clone_App_Automation>cd C:\Program Files (x86)\Jenkins\workspace\Clone_App_Automation\App_Automation\bin\Debug
C:\Program Files (x86)\Jenkins\workspace\Clone_App_Automation\App_Automation\bin\Debug>"App_Automation.exe"
[2016/07/15 11:08:04.424][Debug ][Logger]: Console logger starting.
[2016/07/15 11:08:04.463][Info ][Test]: Test Suite 'App_Automation' started.
[2016/07/15 11:08:04.466][Info ][Test]: Test Module 'LaunchApp' started.
[2016/07/15 11:08:04.477][Info ][Application]: Run application 'C:\Program Files (x86)\.....\DotNet\AppDotNetLauncher.exe' with arguments 'PATCH' in normal mode.
[2016/07/15 11:08:06.576][Success][User]: App Logon window launched successfully
[2016/07/15 11:08:06.603][Info ][Screenshot]: Data logged: System.Drawing.Bitmap
[2016/07/15 11:08:06.603][Success][Test]: Test Module 'LaunchApp' completed with status 'Success'.
[2016/07/15 11:08:07.090][Info ][Test]: Test Case 'LoginToApp' started.
[2016/07/15 11:08:07.090][Failure][Test]: Test Case 'LoginToApp' completed with status 'Failed'.
Is it possible to launch my AUT through Jenkins in desktop mode (without display- not in command mode) so that everything will work fine ? If it is then How can I achieve that ?
Compose message
I am automating a standard desktop (.Net) application. I am using Jenkins to trigger the test as scheduled locally on my Windows 7 machine.For which I am building my test and successfully able to generate the .EXE file using Jenkins.
I am executing the .EXE file using windows batch command where in the 1st step of the test it will try to launch the application and then will try to login to it and continue with the other tests but it seems as it is running in command line (without a desktop view) my Ranorex is not able to find the component for AUT which in turn failing all the subsequent steps.
Console Output :
C:\Program Files (x86)\Jenkins\workspace\Clone_App_Automation>cd C:\Program Files (x86)\Jenkins\workspace\Clone_App_Automation\App_Automation\bin\Debug
C:\Program Files (x86)\Jenkins\workspace\Clone_App_Automation\App_Automation\bin\Debug>"App_Automation.exe"
[2016/07/15 11:08:04.424][Debug ][Logger]: Console logger starting.
[2016/07/15 11:08:04.463][Info ][Test]: Test Suite 'App_Automation' started.
[2016/07/15 11:08:04.466][Info ][Test]: Test Module 'LaunchApp' started.
[2016/07/15 11:08:04.477][Info ][Application]: Run application 'C:\Program Files (x86)\.....\DotNet\AppDotNetLauncher.exe' with arguments 'PATCH' in normal mode.
[2016/07/15 11:08:06.576][Success][User]: App Logon window launched successfully
[2016/07/15 11:08:06.603][Info ][Screenshot]: Data logged: System.Drawing.Bitmap
[2016/07/15 11:08:06.603][Success][Test]: Test Module 'LaunchApp' completed with status 'Success'.
[2016/07/15 11:08:07.090][Info ][Test]: Test Case 'LoginToApp' started.
[2016/07/15 11:08:07.090][Failure][Test]: Test Case 'LoginToApp' completed with status 'Failed'.
Is it possible to launch my AUT through Jenkins in desktop mode (without display- not in command mode) so that everything will work fine ? If it is then How can I achieve that ?
Compose message