Forum Discussion

kg220's avatar
kg220
New Contributor
12 years ago

Running soapui projects parallel

Hi Team,

I am trying to achieve the following,
My current jenkins job which runs all the SOAPUI integration tests is taking around 1hr, where i am running all the soapui projects parallel..is there any easy way to run those projects parallel?

I am doing the following to run the soapui tests programetically..


@DataProvider
public Object[][] getSoapuiFiles() throws Exception {
//returns array of soapui project files path
}

@Test(
dataProvider = "getSoapuiFiles"
public void runProjectFilesParallel(final String projectFile){
///
final SoapUITestCaseRunner runner = createRunner();
runner.setProjectFile(projectFile);
runner.setTestSuite("test.Suite);
final boolean result = runner.run();
///

}


I can use testNg data provider feature to execute the "runProjectFilesParallel" method in different threads..

But, i am getting the following exception..
java.lang.IllegalStateException: Task already scheduled or cancelled
at java.util.Timer.sched(Timer.java:401)
at java.util.Timer.schedule(Timer.java:248)
at com.eviware.soapui.SoapUI.initGCTimer(SoapUI.java:1729)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:144)


Any help is appreciated. Thank you!

1 Reply

  • kg220's avatar
    kg220
    New Contributor
    Actually, there was a typo in my previous message..on Jenkins we are running projects sequentially ..

    "where i am running all the soapui projects sequentially..is there any easy way to run those projects parallel? "