Forum Discussion

jkrier's avatar
jkrier
Regular Contributor
11 years ago

Running multiple projects load tests sequentially

I have 9 projects that all contain their own load test (They cannot be combined due to duplicate SoapBinding names). Is there a way to run them all one after another? Could it be done from a tear down script in each load test to call the next? I've tried searching and could not find any documentation on this specifically.

 

Any help would be gratefully apprecitated.

1 Reply

  • jkrier's avatar
    jkrier
    Regular Contributor

    I've tried the following

    def fcdcc =
    context.LoadTestRunner.LoadTest.testSuite.project.getTestSuiteByName('MyTestSuite').getLoadTestByName('MyLoadTest') def properties = new com.eviware.soapui.support.types.StringToObjectMap () def async = false fcdcc.run (properties, async)

     but it errors

    Tue Feb 24 12:52:18 MST 2015:ERROR:java.lang.NullPointerException: Cannot get property 'LoadTest' on null object
       java.lang.NullPointerException: Cannot get property 'LoadTest' on null object
       	at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:56)
       	at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:169)
       	at org.codehaus.groovy.runtime.callsite.NullCallSite.getProperty(NullCallSite.java:44)
       	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227)
       	at Script5.run(Script5.groovy:1)
       	at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:92)
       	at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SourceFile:79)
       	at com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTest.runTearDownScript(WsdlLoadTest.java:845)
       	at com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTestRunner.tearDown(WsdlLoadTestRunner.java:252)
       	at com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTestRunner.stop(WsdlLoadTestRunner.java:312)
       	at com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTestRunner.finishRunner(WsdlLoadTestRunner.java:289)
       	at com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTestRunner$InternalTestCaseRunner.run(WsdlLoadTestRunner.java:503)
       	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
       	at java.util.concurrent.FutureTask.run(Unknown Source)
       	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
       	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
       	at java.lang.Thread.run(Unknown Source)