Forum Discussion
SmartBear_Suppo
Alumni
12 years agoHi Alejandro,
Teardown script will run just once after the load test ends.
Also for loadtest response length, you will have to use the API call for getContentLength,
Try this,
testRunner.testCase.testSteps["Request name"].testRequest.getResponse().getContentLength()
So here are the API calls,
http://www.soapui.org/apidocs/com/eviwa ... ponse.html
http://www.soapui.org/apidocs/com/eviwa ... entLength()
If you want teardown script to be executed for each run please add it in the load test Groovy script testStep. May be as last step in the load test.
Thanks,
Jeshtha
Teardown script will run just once after the load test ends.
Also for loadtest response length, you will have to use the API call for getContentLength,
Try this,
testRunner.testCase.testSteps["Request name"].testRequest.getResponse().getContentLength()
So here are the API calls,
http://www.soapui.org/apidocs/com/eviwa ... ponse.html
http://www.soapui.org/apidocs/com/eviwa ... entLength()
If you want teardown script to be executed for each run please add it in the load test Groovy script testStep. May be as last step in the load test.
Thanks,
Jeshtha