Udostępnij za pośrednictwem


How to: Set Think Times in a Web Test

Think time is the time spent by a user perusing a Web page, including viewing the page and determining the next action. Think time does not include the time that is required for a page to load.

When you record a Web test, think times are recorded for each Web page. Later, when you run the Web test, the think time can be either used or ignored. In the Web Test Viewer, use the Think Time button to switch from using think times to not using them.

Think times are very important during load tests because they set the pace of the test. It is important to review the recorded think times of your Web tests to make sure they accurately reflect realistic wait times. It is easy to be distracted during a recording session and have unexpectedly long think times that have an adverse effect on a load test. To avoid this problem, you can pause the recorder.

For more information, see About Think Times.

To change a think time of a request in a Web test

  1. Open a Test project that contains a Web test.

    For more information about how to create a test project, see How to: Create a Test Project.

  2. From the Test project, open a Web test. Your Web test opens in the Web Test Editor.

    For more information about how to create a load test, see Creating a Web Test.

  3. In the Web Test Editor, select the request for which you want to change the Think Time property.

  4. In the Properties window, set the Think Time property to an appropriate value, in seconds. To display the Properties window, press F4.

  5. On the File menu, select Save. Click the Run button to run your Web test in the Web Test Viewer with the new think time.

See Also

Tasks

How to: Change the Think Profile

Concepts

About Think Times

Running and Viewing a Web Test