Editing a Web Test

Use the Web Test Editor to edit your Web tests after you have recorded them. Typically, you record your Web tests using the Web test Recorder, which is installed as part of Visual Studio Team Edition for Testers. For more information about how to record Web tests, see How to: Record a Web Test.

You have two main ways to carry out actions in the Web Test Editor: using the buttons on the toolbar; and right-clicking and selecting from the shortcut menu.

First you must open a Web test for editing. For more information, see How to: Edit an Existing Web Test.

Toolbar Tasks

  • Add Recording
    Displays the Web browser ready to record additional interaction with a Web application. For more information, see How to: Record a Web Test.
  • Generate Code
    Displays the Generate coded Web test dialog box so that you can generate a coded version of this Web test. For more information, see How to: Create a Coded Web Test.

Right-click Tasks

In the editor, you see a hierarchy tree of URLs, called the request tree. You can select nodes in the request tree to view and change the properties that are associated with requests using the Properties window of Visual Studio.

You can also expand a request to display the nodes and parameters of the request.

You can right-click any node and the tree to display a shortcut menu that contains the set of available operations for that node type. The operations are described in the following table.

Note

Not all these operation are available for all node types.

Insert Request

Insert an additional request in your Web test.

Insert Web Service Request

Insert an additional request with a string body. This is used for simulating Web Service Requests.

Insert Transaction

For more information, see How to: Add a Transaction to a Web Test.

Insert Comment

Insert a comment in your Web test as you would with any other code editing.

Insert Recording

Insert another HTTP request or set of requests through the Web Test recorder in the browser.

For more information, see How to: Record a Web Test.

Add Dependent Request

Add a dependent request.

Add Header

Add a header to this request.

Add URL QueryString Parameter

Add a Query String parameter to this request.

Add Form Post Parameter

Add a Form Post Parameter to this request.

Add File Upload Parameter

Add a File Upload Parameter.

Add Validation Rule

For more information, seeHow to: Add a Validation Rule to a Web Test.

Add Extraction Rule

For more information, seeHow to: Add an Extraction Rule to a Web Test

Run Web Test

Run your Web test in the Web Test Viewer. For more information, see How to: Run a Web Test.

Cut

Cut the request to move it to another test or location within this test.

Copy

Copy the request to paste it to another test or location within this test.

Delete

Delete the request.

Properties

Display the properties for this node in the Properties window.

See Also

Tasks

How to: Record a Web Test
How to: Edit an Existing Web Test
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 Test
How to: Add a Transaction to a Web Test
How to: Set Credentials on a Web Test
How to: Run a Web Test
How to: Create a Coded Web Test
How to: Create a Web Test Plug-In
How to: Create a Web Test Request Plug-In