Forum Discussion
There are multiple ways to achieve the same.
- Using testrunner utility of SOAPUI. Call this utility from Jenkins
- Using apache-ant, which internally calls testrunner of SoapUI. Call the respective target. You need to write the build scripts.
- Using maven, there are plug-in available for free version.
You may have a look at this short demo
https://hub.docker.com/r/nmrao/soapui/
Thanks you folks for all your suggestions ! I opted to choose to integrate our existing soapUI tests (created using soap UI Free version) and to call test runner utility from Jenkins .
I followed these below steps however job seems to never finish : I had to abort the job , Not sure how we can check if utility is getting called at this point ? Any advise is much appreciated . Let me know if i missed any configuration steps or not calling utility correctly via windows command line options
Downloaded jenkins locally -Jenkins ver. 2.76
Create a job in jenkins and configured job to execute window command line option :
start "" "C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\testrunner.bat" -sGetRenBatchesTestSuite -cGetRenbatches -r -a -f"C:\Program Files\SmartBear\SoapUI-5.2.1\bin\TestResults" -I C:\Users\xyzusername\GitHub\ren-api2\Tests\Automated_Test\GetRenBatches-soapui-project.xml
click build now on new job created
Job never finished so aborted the job and console output log shows as
Started by user admin
Building in workspace C:\Program Files (x86)\Jenkins\workspace\SoapUIAutomatedTests
[SoapUIAutomatedTests] $ cmd /c call C:\Windows\TEMP\jenkins2966446162621249649.batC:\Program Files (x86)\Jenkins\workspace\SoapUIAutomatedTests>start "" "C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\testrunner.bat" -sGetRenBatchesTestSuite -cGetRenbatches -r -a -f"C:\Program Files\SmartBear\SoapUI-5.2.1\bin\TestResults" -I C:\Users\xyzuser\GitHub\ren-api2\Tests\Automated_Test\GetRenBatches-soapui-project.xml
Build was aborted
Aborted by admin
Finished: ABORTED- Does the same command work form command line? what if you remove start in the command?
when start gets removed .....i don't see the build running on the build exectutor status window however build still got executed and failed with this below message. I tried command line option and testrunner.bat is gettting called from commandline with no issues
Console Output
Started by user admin
Building in workspace C:\Program Files (x86)\Jenkins\workspace\SoapUIAutomatedTests
[SoapUIAutomatedTests] $ cmd /c call C:\Windows\TEMP\jenkins3244711319342882945.batC:\Program Files (x86)\Jenkins\workspace\SoapUIAutomatedTests>"C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\testrunner.bat" -sGetRenlBatchesTestSuite -cGetRenbatches -r -a -f"C:\Program Files\SmartBear\SoapUI-5.2.1\bin\TestResults" -I C:\Users\XYZuser\GitHub\ren-api2\Tests\Automated_Test\GetRenBatches-soapui-project.xml
The system cannot find the path specified.C:\Program Files (x86)\Jenkins\workspace\SoapUIAutomatedTests>exit 3
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE