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 Microsoft Visual Studio Team System Test Edition. For more information about how to record Web tests, see How to: Record a Web Test.
You have two ways to carry out actions in the Web Test Editor, You can use the buttons on the toolbar or you can right-click and select items from the shortcut menu.
For more information about Web tests, see How to: Edit an Existing Web Test.
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.
Not all these operation are available for all node types.
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.
For more information, see How to: Add a Transaction to a Web Test.
Insert a comment in your Web test as you would with any other code editing.
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 Call to Web Test
Into one Web test, insert a call to another Web test. For more information, see How to: Insert a Call to Another Web Test.
Add Dependent Request
Add a dependent request.
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 the request to move it to another test or location within this test.
Copy the request to paste it to another test or location within this test.
Delete the request.
Display the properties for this node in the Properties window.