Basically, I need to restart particular service prior to each load test being run and there is no problem with the restart itself. I've researched for a while and haven't found a way to put some action or script or just another load test, so that I can be sure it is performed before each load test and only one time per load test.
Any ideas regarding how to make it behave this way are appreciated.
Another option, especially if you are calling something on the command-line anyway, is to specify a Setup script in the active TestSettings:
Create a LoadTest Plugin and use the
LoadTestStarting
event to call a method that restarts your service.Then in the Load Test Editor right click on the root and select
Add Load Test Plug-in...
to add the Plug-In to yourLoad Test
.