Stop load test when main test completes
-
Wednesday, August 08, 2012 9:07 PM
I have 4 webtests in my load test. One is the core test and the other 3 are just running to add load on the system, they are looped and never end.
I would like to stop all my running tests when the main one completes. Would I need to do this using a LoadTestPlugin ?
All Replies
-
Thursday, August 09, 2012 7:28 AMModerator
Hi MKT44,
Thank you for posting in the MSDN forum.
You can stop all the running tests when the main one completes by using a LoadTestPlugin.
But I would like to know the relationship between the core test and the other three tests in the scenario. What is the order that four tests are executed? And does the core test use the other tests’ results?
In addition, why do you add load on the system by running three tests? You can use more virtual users to general more load.
Best regards,
Amanda
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
-
Thursday, August 09, 2012 7:02 PMThere is really no relationship and they dont share any results. The core test has users that actually submit data, make changes etc... the other tests are users that only browse the site.
-
Friday, August 10, 2012 1:17 AMModerator
HiMKT44,
For your four tests, there is no relationship and they don’t share any results. So you can use a load test plugin to stop all the running tests when the main one completes. You need to find the main test and check if it finished. If so then you can use some events to perform the stopping action.
The link below about load test plug-ins may help you:
http://blogs.msdn.com/b/slumley/archive/2009/04/10/load-test-plug-ins.aspx
Also, you can see ED’s approach in the thread about stopping the test using a load test plugin when the test gets an error, it may help you:
Best regards,
Amanda
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Marked As Answer by MKT44 Friday, August 10, 2012 4:38 PM
-
Friday, August 10, 2012 4:38 PMThis is perfect. Thank you.

