Running Load Tests with a Remote VSTS Controller and Associated Agent

Running a multi-agent load test isn’t too complicated, compliments of Visual Studio Team Suite. Assuming you have a controller/agent environment set up, running the actual test requires a bit of modification to the test project so the local test machine doesn’t run the test itself; rather it runs them on a remote machine (the controller and its agents). To set this up…

Load in your test project

files/01_Open_Test.jpg

  • At the top of the window, select Test → Edit Test Run Configurations → Local Test Run (localtestrun.testrunconfig)
    files/02_Edit_Test_Run_Configurations.jpg

  • Select Controller and Agent at the top left. Select the ''Remote'' radio button. Select the controller.
    files/03_Select_Controller.jpg

  • Click Apply. Once you have selected Apply, you will receive a prompt saying
    files/04_Answer_Prompt.jpg

  • Click Ok

  • Click Close

Once all of that is done, it’s time to run your test. You’ll notice that once your test has been run, at the bottom left side of the results you’ll see a reference to the remote controller and that it controlled X many agents.

Happy Testing!

Category:Microsoft Category:Visual_Studio