Forum Discussion
oleksii
10 years agoOccasional Contributor
I changed test suite teardown script to this:
def statisticsPath = "c:\\Programs\\SmartBear\\SoapUI-5.2.1\\loadteststatistics\\temp.txt"
def testCaseReportFile = new File("c:\\Programs\\SmartBear\\SoapUI-5.2.1\\loadteststatistics\\temp.txt")
testCaseReportFile.append("some text")And the file was not created after running loadtestrunner from console which proves that this test suite teardown script is not called when load tests are run - what a pitty.
The file was created when I run this script in GUI which confirms that the script is OK.
I will continue by adding extra load test in the end of my test suite which will execute the script.
rupert_anderson
10 years agoValued Contributor
Hi,
OK, are you saying those LoadTest Teardown / Startup tab scripts are not getting run when running via the command line? They should do.
Regards,
Rup
- rupert_anderson10 years agoValued Contributor
Also have you see this doc?
https://www.soapui.org/load-testing/scripting-possibilities.html
might be useful.