kg220
12 years agoNew Contributor
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..
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!
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!