Ask a Question

Executing Multiple projects Parallel in Ready API

Senthil007
Occasional Contributor

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,

11 REPLIES 11
Nastya_Khovrina
SmartBear Alumni (Retired)

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. ⬇️⬇️⬇️

I see that teardown script is part of Security Testing. Not sure how to use it for executing parallel projects in SOAP UI.

 

Nastya_Khovrina
SmartBear Alumni (Retired)

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. ⬇️⬇️⬇️
nmrao
Champion Level 2

UI is to design & test phase of your tests.

The best thing would be to use commandline method (using %READYAPI_HOME%\bin\testrunner.bat )than executing them from UI.



Regards,
Rao.
Senthil007
Occasional Contributor

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

Nastya_Khovrina
SmartBear Alumni (Retired)

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. ⬇️⬇️⬇️

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

 

 

nmrao
Champion Level 2

Yes, it is different. You are running the tests from UI while I was suggesting to execute them from command line (no soapui tool is used).

Run each command on a command-line or put them together in a single bat file and run them with fork.


Regards,
Rao.
Senthil007
Occasional Contributor

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.

cancel
Showing results for 
Search instead for 
Did you mean: