Need help ! Ranorex multiple test suite execution in jenkins
Posted: Tue Aug 21, 2018 1:45 pm
Hello,
my project has got 2 test suite files with name 1) It.rxtst 2)Itte_Environment.rxtst and in Jenkins I scheduled a job to run with
the test suite file name as"Itte_Environment.rxtst" please take a look at the image attached.
when I run a new build I get this below error.
c:\ohj\jenkins.start\workspace\ITTE_Automation\ITTE_Single_Testruns>".\trunk\Itte\bin\Debug\Itte.exe" /reportfile:"c:\ohj\jenkins.start\workspace\ITTE_Automation\ITTE_Single_Testruns\.\Reports\378\ITTE.html" /junit /zipreport /zipreportfile:"c:\ohj\jenkins.start\workspace\ITTE_Automation\ITTE_Single_Testruns\.\Reports\378\ITTE-378.rxzlog" /pa:Domain=https://10.158.118.16:28443 /tc=CancelSSN
[2018/08/21 14:03:26.461][Debug ][Logger]: Console logger starting.
[2018/08/21 14:03:26.483][Error ][User]: Unexpected exception occurred: System.InvalidOperationException: There is more than one test suite and some arguments in '".\trunk\Itte\bin\Debug\Itte_Environment.rxtst .exe" [/u]/reportfile:"c:\ohj\jenkins.start\workspace\ITTE_Automation\ITTE_Single_Testruns\.\Reports\378\ITTE.html" /junit /zipreport /zipreportfile:"c:\ohj\jenkins.start\workspace\ITTE_Automation\ITTE_Single_Testruns\.\Reports\378\ITTE-378.rxzlog" /pa:Domain=https://10.158.118.16:28443 /tc=CancelSSN' require it to specify which test suite to use by using the 'testsuite' command line parameter.
at Ranorex.Core.Testing.TestSuiteRunner.Run(Type containerType, String cmdLineArgs, String testSuiteXml)
at Ranorex.Core.Testing.TestSuiteRunner.Run(Type containerType, String cmdLineArgs)
at Itte.Program.Main(String[] args) in c:\ohj\jenkins.start\workspace\ITTE_Automation\ITTE_Single_Testruns\trunk\Itte\Program.cs:line 39
[2018/08/21 14:03:26.621][Debug ][Logger]: Console logger stopping.
Build step 'Run a Ranorex test suite' changed build result to FAILURE
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level c:\ohj\jenkins.start\workspace\ITTE_Automation\ITTE_Single_Testruns\Reports\378 to C:\ohj\Jenkins\jobs\ITTE_Automation\jobs\ITTE_Single_Testruns\builds\378\htmlreports\ITTE
ERROR: Specified HTML directory 'c:\ohj\jenkins.start\workspace\ITTE_Automation\ITTE_Single_Testruns\Reports\378' does not exist.
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
Finished: FAILURE
my project has got 2 test suite files with name 1) It.rxtst 2)Itte_Environment.rxtst and in Jenkins I scheduled a job to run with
the test suite file name as"Itte_Environment.rxtst" please take a look at the image attached.
when I run a new build I get this below error.
c:\ohj\jenkins.start\workspace\ITTE_Automation\ITTE_Single_Testruns>".\trunk\Itte\bin\Debug\Itte.exe" /reportfile:"c:\ohj\jenkins.start\workspace\ITTE_Automation\ITTE_Single_Testruns\.\Reports\378\ITTE.html" /junit /zipreport /zipreportfile:"c:\ohj\jenkins.start\workspace\ITTE_Automation\ITTE_Single_Testruns\.\Reports\378\ITTE-378.rxzlog" /pa:Domain=https://10.158.118.16:28443 /tc=CancelSSN
[2018/08/21 14:03:26.461][Debug ][Logger]: Console logger starting.
[2018/08/21 14:03:26.483][Error ][User]: Unexpected exception occurred: System.InvalidOperationException: There is more than one test suite and some arguments in '".\trunk\Itte\bin\Debug\Itte_Environment.rxtst .exe" [/u]/reportfile:"c:\ohj\jenkins.start\workspace\ITTE_Automation\ITTE_Single_Testruns\.\Reports\378\ITTE.html" /junit /zipreport /zipreportfile:"c:\ohj\jenkins.start\workspace\ITTE_Automation\ITTE_Single_Testruns\.\Reports\378\ITTE-378.rxzlog" /pa:Domain=https://10.158.118.16:28443 /tc=CancelSSN' require it to specify which test suite to use by using the 'testsuite' command line parameter.
at Ranorex.Core.Testing.TestSuiteRunner.Run(Type containerType, String cmdLineArgs, String testSuiteXml)
at Ranorex.Core.Testing.TestSuiteRunner.Run(Type containerType, String cmdLineArgs)
at Itte.Program.Main(String[] args) in c:\ohj\jenkins.start\workspace\ITTE_Automation\ITTE_Single_Testruns\trunk\Itte\Program.cs:line 39
[2018/08/21 14:03:26.621][Debug ][Logger]: Console logger stopping.
Build step 'Run a Ranorex test suite' changed build result to FAILURE
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level c:\ohj\jenkins.start\workspace\ITTE_Automation\ITTE_Single_Testruns\Reports\378 to C:\ohj\Jenkins\jobs\ITTE_Automation\jobs\ITTE_Single_Testruns\builds\378\htmlreports\ITTE
ERROR: Specified HTML directory 'c:\ohj\jenkins.start\workspace\ITTE_Automation\ITTE_Single_Testruns\Reports\378' does not exist.
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
Finished: FAILURE