Open WebTest1 in the Web Test Editor.
In the request tree, right-click WebTest1 and then click Extract Web Test.
The Extract Web Test dialog box appears.
In Web test name type Login.
In the Choose first item for the Web test drop-down select the first request. The request should resemble the following:
http://localhost:<PortNumber>/ShoppingWebApp/Default.aspx
In the Choose last item for the Web test drop-down select the third request. The request should resemble the following:
http://localhost:<PortNumber>/ShoppingWebApp/Login.aspx
Click OK.
A new Web test is created named Login. In the Web Test Editor, Login is added to the request tree in place of the individual requests that you extracted. In Solution Explorer, Login.webtest is added to the project list.
In the request tree, right-click WebTest1 and then click Extract Web Test.
The Extract Web Test dialog box appears.
In Web test name type BrowseAndBuy.
In the Choose first item for the Web test drop-down select the first request after Login. The request should resemble the following:
http://localhost:<PortNumber>/ShoppingWebApp/Default.aspx
In the Choose last item for the Web test list select the sixth request. The request should resemble the following:
http://localhost:<PortNumber>/ShoppingWebApp/Cart.aspx
Click OK.
A new Web test named BrowseAndBuy is created. In the Web Test Editor BrowseAndBuy is added to the request tree in place of the individual requests that you extracted. In Solution Explorer, BrowseAndBuy.webtest is added to the project list.
In the request tree, right-click WebTest1 and then click Extract Web Test.
The Extract Web Test dialog box appears.
In Web test name type Logout.
In the Choose first item for the Web test list select the first request after BrowseAndBuy. The request should resemble the following:
http://localhost:<PortNumber>/ShoppingWebApp/Default.aspx
In the Choose last item for the Web test list select the last request. The request should resemble the following:
http://localhost:<PortNumber>/ShoppingWebApp/Logout.aspx
Click OK.
A new Web test is created named Logout. In the Web Test Editor Logout is added to the request tree in place of the individual requests that you extracted. In Solution Explorer, Logout.webtest is added to the project list.
Confirm that there are no individual requests remaining in the Web test request tree. That is, WebTest1 now consists completely of calls to other Web tests.
On the File menu, click Save All.