How to: Extract Requests in a Web Performance Test to Create a New Web Performance Test

This topic applies to:

Visual Studio Ultimate

Visual Studio Premium

Visual Studio Professional 

Visual Studio Express

Topic applies Topic does not apply Topic does not apply Topic does not apply

You can create new Web performance tests by extracting individual requests from an existing Web performance test. You can use this to factor your Web performance tests into reusable test components. For example, you could factor a shopping application into log in, browse, buy, and log out components. For more information, see Walkthrough: Creating a Web Performance Test that Requires a Login and Logout.

To extract new Web performance tests from an existing Web performance test

  1. In the Web Performance Test Editor, open a Web performance test.

  2. In the request tree, locate the root node that is the name of the Web performance test. Right-click the root node and then click Extract Web Test.

    - or-

    In the request tree, right-click a specific request and then click Extract Web Test.

    The Extract Web Test dialog box appears.

  3. In Web test name type a name for the new Web performance test component.

    In the Choose first item for the Web test list select the first request that you want to include in the new test.

  4. In the Choose last item for the Web test list select the last request that you want to include in the new test.

  5. Select or clear the Extracted test inherits test level properties check box.

    You can use this to automatically copy the test level properties to the new extracted test.

  6. Select or clear the Copy test level plug-ins and validation rules check box.

    You can use this to automatically copy the test level plug-ins and validation rules to the new extracted test.

  7. Click OK.

    A new Web performance test is created that has the specified name. In the Web Performance Test Editor the new test is added to the request tree in place of the individual requests that you extracted. In Solution Explorer, the new test is added to the project list.

  8. (Optional) Repeat steps 2 through 7 to create additional tests.

  9. On the File menu, click Save All.

See Also

Tasks

How to: Insert a Call in a Web Performance Test to Another Web Performance Test

How to: Create a New Web Performance Test Using the Web Performance Test Recorder

How to: Edit an Existing Web Performance Test Using the Web Performance Test Editor

Concepts

Running Web Performance Tests

Other Resources

Creating Web Performance Tests from Existing Web Performance Tests