Forum Discussion
Hello N78A
As you said in your message that, you started looking at options with continuous integration tool like Jenkins you can achieve this there easily.
- Jenkins can help you to periodically schedule the job to run automatically. Ultimately your job would have your SoapUI projects and test suite
- Google for Jenkins + Periodically scheduling jobs with Cron expression if you are not aware of it. You will see plenty of articles
- You can design your soapUI project as a Maven project. And you can use Mavens SoapUI plugin to achieve running your suite. Please google the same
- Or if you do not want to use Maven, You can also use SoapUI command line runner and configure Jenkins job to use that . So please learn how to run soapUI project with commandline and not with SoapUI GUI itself
- You can use any of these 2 option and configure job in Jenkins and can schedule the job to run automatically
It will take some time to learn and figure out this . Have patience and try it . You would be able to do it :)
Hope it helps
Warm Regards
Musaffir
Thanks for the information Musaffir,
Out of the points you mentioned. I have tried doing - Use SoapUI command line runner and configure Jenkins job to use that.
I got some commnads to give to schedule , buit the build failed each time with different errors. When I tried to search the errors on internet, I got confusing stuff like plugins, maven etc.
I am new to Jenkins and know nothing about Maven :(
Also as mentioned by you in my other post -> "Then create Jenkins Job where you have your SoapUI project ( it could be either in a version control system, or in local jeknins dir itself)"
I could not understand what is meant by -> version control system, or in local jeknins dir itself
I have a jenkins url used by developers in my team and after login to that URL I did below:
1.Created a project . Please see attached images
2. Configured it .
3. Gave periodic run
4. Command sepecifying the loaction of project & reference to test suite.
Please let me know if this is the process to schedule soap ui test suites using jenkins or anything else is required whcih I am not doing ?.
Hi N78A,
You need to develop a script which can call soapui internally to process further.
After going through your screenshots I can see that directly you are mentioning the testrunner.bat command to execute but it will not work unless until you have SOAPUI installed there.
For testing purpose you can download soapui on your personal machine and then you can give the testrunner command from cmd line just to check.
I am using a tool named VSTS(Visual Studio Team Services) which does this scheduling part through soapui. I can not say that its similar to Jenkins but Job scheduling can be done there also.
Hi Pratap,
Thanks for your response, I have soapui installed and have all the projects & test suites in my local machine.
Can you please guide a little more on below point :
You need to develop a script which can call soapui internally to process further.
Please see attached image for soap ui projects.
Hi N78A,
I have executed successfully through command line in SOAPUI. First you need to go to the below path:
Program Files\SmartBear\SoapUI-5.4.0\bin
Then from here you should execute the testrunner.bat command,see below example for reference:
C:\Program Files\SmartBear\SoapUI-5.4.0\bin>testrunner.bat -sTESTSUITENAMEIFANY C:\XYX\XYZ\PROJECT.xml
Give it a try,this worked for me.
Hi Pratap,
Thanks much for the useful information you shared. I got the solution as suggested by you and some one else as well on my other post (by mistake I had created two posts for same query ) , using windows task scheduler .
You can find the complete solution in below post.
Thanks again for your time :)