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.
Toolbar Tasks
Run
Run test in the Web Test Viewer. For more information, see How to: Run a Web Test.Add Data Source
Adds a data source to the Web test that you can use for data-binding.For more information, see How to: Add Data Binding to a Web Request.
Set Credentials
Set the username and password for the user you want to simulate. For more information, see How to: Set Credentials on a Web Test.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.Add Test Plug-in
Displays a dialog box from which to select a Web test plug-in to add to your Web test. For more information, How to: Create a Web Test Plug-In.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.Parameterize Web Servers
Displays the Parameterize Web Server dialog box.For more information, see How to: Parameterize a Web Server.
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 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 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: 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 Request
How to: Add a Transaction to a Web Test
How to: Set Credentials on a Web Test
How to: Create a Coded Web Test
How to: Create a Web Test Plug-In