How to: Edit an Existing Web Test

After you have created a Web test, you can edit it. You can add validation rules, database connections, and other properties.

Web tests open in the Web Test Editor. In the editor, you see a hierarchy tree of HTTP requests, called the request tree. You can select nodes in the request tree to view and change the properties that are associated with requests. You can also expand a request to display the nodes and parameters of the request. Additionally, you can change the parameters and properties. Typically, changes are made by using the Properties window of Visual Studio.

You can also add parameters, rules, and dependent requests to a request.

To open and edit 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.

    For more information about how to create a Web test, see Creating a Web Test. Your Web test opens in the Web Test Editor.

  3. In the Web Test Editor, select the request or any node under a request that you want to edit and then press F4.

    The Properties window displays the properties for the request you have selected.

  4. (Optional) In the Properties window, change the values of properties.

  5. (Optional) You can add a request or modify a request by right-clicking it and selecting commands from the list.

See Also

Tasks

How to: Add a Validation Rule to a Web Test

How to: Add an Extraction Rule to a Web Test

How to: Add Data Binding to a Web Request

How to: Add a Transaction to a Web Test

How to: Set Credentials on a Web Test