Creating, Recording & Running Web Project using Visual Studio 2008 Team System Test Edition

Visual Studio 2008 Team system test Edition:

This Article explains how to create a web test from a browser recording and verify that it works properly. Using VSTS (Visual Studio 2008 Team System) we can play back actions when User runs the test.

To complete this Testing we need 'Test Edition' and the Application which we need to test.

Recording and Running a Web Test:

For recording & running web test we need to create Test Project first.

Creating a New Test Project:

  1. Open Your Microsoft Visual Studio 2008.
     
  2. Open File menu, point to New and then click Project.

    image1.JPG
     
  3. After Selecting New Project, the New Project dialog box appears.
     
  4. In Project Types, expand Visual Basic or Visual C# according to your preference, and select the Test.
     
  5. In Visual Studio installed templates, choose Test Project
     
  6. In the Name box, enter the Web Test Project
     
  7. In the Location box, enter the name of the folder where you want to save your Web application.
     
  8. Click OK.

    image2.JPG


Recording a Web Test: 

  1. Right Click on 'Test Project', point to Add and then click New Test.

    image3.JPG
     
  2. After Selecting New Test, Add New Test dialog box appears. 
     
  3. Select Web Test, and in the Name box, enter Login.webtest
     
  4. Click OK.

    image4.JPG

    A new Web test file Login.webtest is added to project, and the Web Test Recorder opens inside a new Internet Explorer.

    image5.JPG
     
  5. In the browser's address bar, type the address of the Web application and Press Enter 
     
  6. Click on Sign in for Login. 
     
  7. Enter Email & Password. 
     
  8. Click on Sign in button. 
     
  9. Default home page will open. 

    You can also Add Comment from folder icon in the recorder, when you click OK, you'll see your comment appear under the page. 
     
  10. Click on Sign out link. 
     
  11. Click Stop on the Web Test Recorder to stop recording. 

    You'll now see your web test in Visual Studio, in the Login.webtest tab

    image6.JPG

Running the Web Test:

At the top of the Login.webtest tab is a green arrow button. Click the button to run the web test.

The test starts to run, and a Web Test Viewer displays each request in the test. You would be able to see either a green check mark or a red cross to the left of the request. 

A red X indicates that the request failed, and green check mark indicates that the request Passed.

image7.JPG

image8.JPG

Up Next
    Ebook Download
    View all
    Learn
    View all