- Last Updated: [[2020-12-04]]
- [[Load Testing]]
- # Context Parameters
- If you've added context parameters for each web test (ex: serverName, serverPort), you can add them again to the load test, and the values there will override any values set in the web test.
- To do this, click on the Run Settings in the relevant load test. Right click and select Add Context Parameter. Use the same parameter name that is used in the web test.
- # Think Time
- Think time can be set per request as well as per iteration.
- Enable think times by double clicking on Solution > Solution Items > Local.testsettings in the Solution Explorer, navigating to Web Test, and ticking "Simulate think times".
- Each request's properties allows you to set the think time you want for it.
- Pacing (think time between iterations) can be set on the Scenario node of the load test, in the properties pane. You can also set:
- Percentage of New Users - 100 to clear cache between iterations
- Think Profile: Normal Distribution - to vary the think time slightly
- Think Time Between Tests - this is pacing
- # Run Duration and Sampling
- Click on the load test. Select the Run Settings node. In its Properties pane, under Timing, you can set:
- Cool-down Duration
- Run Duration
- Sample Rate (granularity of results)
- Warm-up Duration
- # Step-load Pattern
- Click on the Step-load pattern node. The properties will allow you to change how many virtual users the test starts out with, how long to wait before adding more, how many to add at a time, and what the maximum number of users should be.
- # Test Mix
- Right click on the test mix to select which tests you want to add to the load test. The Test Mix Model should generally be set to "Test mix percentage based on the number of virtual users starting tests".
- # Results
- Click on the load test. Select the Run Settings node. In its Properties pane, under Results, check that:
- Storage Type = Database and
- Timing Details Storage = All Individual Details.