Executing Multiple projects Parallel in Ready API
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Executing Multiple projects Parallel in Ready API
I am trying to execute multiple projects in Parallel in Ready API - SOAPUI NG as below in a groovy script:
def project1 = ["C:/Program Files/SmartBear/ReadyAPI-2.0.0/bin/testrunner.bat", "-sSuite1", "-EDefault environment", "C:/gitRepo/service1"].execute()
def project2 = ["C:/Program Files/SmartBear/ReadyAPI-2.0.0/bin/testrunner.bat", "-sSuite2", "-EDefault environment", "C:/gitRepo/service2"].execute()
def project3 = ["C:/Program Files/SmartBear/ReadyAPI-2.0.0/bin/testrunner.bat", "-sSuite3", "-EDefault environment", "C:/gitRepo/service3"].execute()
def project4 = ["C:/Program Files/SmartBear/ReadyAPI-2.0.0/bin/testrunner.bat", "-sSuite4", "-EDefault environment", "C:/gitRepo/service4"].execute()
Upon executing, I get a message "Script-result: java.lang.ProcessImpl@198ab3m"
How do I find if the script has actually called the individual composite projects and executed the test? What am I missing here?
Thanks,
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sentil,
Thank you for your post. You can use TearDown Scripts and write some info to the log.
TearDown Scripts: https://support.smartbear.com/readyapi/docs/secure/scripts/teardown.html
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I see that teardown script is part of Security Testing. Not sure how to use it for executing parallel projects in SOAP UI.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, it was a wrong link. I meant this one: https://support.smartbear.com/readyapi/docs/soapui/scripts.html
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The best thing would be to use commandline method (using %READYAPI_HOME%\bin\testrunner.bat )than executing them from UI.
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How differently I can do that from my initial question. There I am running as testrunner.bat only. Problem is I cant find if the test is executing and not able to see the results too
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Senthil,
You can get the process output with the following command:
def project1 = ["C:/Program Files/SmartBear/ReadyAPI-2.0.0/bin/testrunner.bat", "-sSuite1", "-EDefault environment", "C:/gitRepo/service1"].execute()
log.info(project1.text)
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Anastasia,
I already have that log.info(project1.text) step.
When I execute the project the log.info doesn't wait for the test to complete, it immediately writes the message as
"Mon Oct 30 09:18:51 MDT 2017:INFO:"
No message is written
Thanks,
Senthil
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Run each command on a command-line or put them together in a single bat file and run them with fork.
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can u please share me a sample. I tried to run my project which has multiple Composite Ready API project.
The command line gets executed in seconds, and I dont see it actually executing any project.
