Running Web Performance Tests Locally in Visual Studio 2013

Running Web Performance Tests Locally in Visual Studio 2013

3 July 2024 Stephan Petzl Leave a comment QA

When working with Visual Studio 2013 Ultimate, you may encounter an issue where attempts to run a Web Performance Test are met with errors prompting a connection to Visual Studio Online. This can be particularly frustrating if your intention is to run the test on a local network. This guide will walk you through the steps to configure your test settings to run locally, avoiding the need for cloud-based testing.

Understanding the Error

The error message typically states:

An unexpected error occurred. Please close this page and re-open it using Load Test Manager, available in the Load Test menu. Failed to queue test run [test name] The active test settings is configured to run test using Visual Studio Online. Connect to a Visual Studio Online account using Team Explorer and try again.

To resolve this, you need to change the active test settings from Visual Studio Online to your local computer.

Steps to Run Tests Locally

  1. Open your existing project in Visual Studio 2013.
  2. In the Solution Explorer, expand the Solution Items folder.
  3. Open the Local.testsettings file.
  4. Edit the test settings file to configure your project to run your tests on the local computer.

Managing Multiple Test Settings

In some projects, it is beneficial to maintain multiple .testsettings files. For example:

  • Local.testsettings – For test development and low load tests on a single computer.
  • Agent.testsettings – For testing with a controller and multiple agents to handle larger loads.
  • Cloud.testsettings – For running tests on Visual Studio Online.

To switch between these settings:

  1. Right-click in the Solution Explorer.
  2. Select the context menu option Active load and web test settings.
  3. Tick the appropriate test settings file you wish to activate.

Additional Resources

For more detailed information on configuring virtual test devices, you can refer to our documentation.

Enhancing Test Automation with Repeato

While configuring and running tests in Visual Studio is essential, integrating a no-code test automation tool like Repeato can significantly streamline your testing process. Repeato allows you to create, run, and maintain automated tests for your iOS and Android apps effortlessly. Leveraging computer vision and AI, Repeato ensures fast editing and execution of tests, making it an excellent choice for quality assurance teams looking for a simple and effective solution.

Learn more about how Repeato can enhance your testing strategy by visiting our documentation.

Like this article? there’s more where that came from!