Alcatel-Lucent__10
14 years agoOccasional Contributor
[Resolved] How to stop loadtest from groovy script
Hi,
I have a testcase, which contains a small groovy script that is performing some checks.
In case the checks fail, I want to stop the testcase.
Now I want to run this testcase as a load test, using several threads.
In the groovy script, I use following statement to stop :
testRunner.fail("Failed testcase")
This command is stopping the thread where it happens, but not the other running threads of the loadtest.
Is there a way to have all threads of a load test stopped from a groovy script ?
Thanks for the help.
Philip
I have a testcase, which contains a small groovy script that is performing some checks.
In case the checks fail, I want to stop the testcase.
Now I want to run this testcase as a load test, using several threads.
In the groovy script, I use following statement to stop :
testRunner.fail("Failed testcase")
This command is stopping the thread where it happens, but not the other running threads of the loadtest.
Is there a way to have all threads of a load test stopped from a groovy script ?
Thanks for the help.
Philip