Compartilhar via


How to: Specify if test failures are saved to test logs using the Load Test Editor

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

After you create your load test with the New Load Test Wizard, you can use the Load Test Editor to change the load test properties to meet your testing needs and goals. See Walkthrough: Create and run a load test. You can specify if you want to have the test log saved if a test fails in a load test by changing the Save Log on Test Failure property.

Note

For a complete list of the run settings properties and their descriptions, see Load test run settings properties.

Note

Web performance and load test functionality is deprecated. Visual Studio 2019 is the last version where web performance and load testing will be fully available. For more information, see the Cloud-based load testing service end of life blog post. To reduce the impact on users some minimum support is still available in Visual Studio 2022 Preview 3 or later. Users should also note web performance and load test functionality only supports Internet Explorer which is not available on Windows 11 and some versions of Windows 10. Read more on Internet Explorer Lifecycle policy.

To specify if the test log is saved when a test fails in a scenario

  1. Open a load test.

    The Load Test Editor appears. The load test tree is displayed.

  2. In the load test trees Run Settings folder, choose the run settings node that you want to specify the maximum number of test iterations for.

  3. On the View menu, select Properties Window.

    The run settings categories and properties are displayed in the Properties window.

  4. In the Save Log on Test Failure property, select either True or False to specify if you want to save the test log in the event of a test failure in the scenario.

    After you have finished changing the property, choose Save on the File menu.

    The data that is saved in the log can be viewed using the Load Test Analyzer's Tables view. For more information, see Analyze load test results and errors in the Tables view.

See also