SIGN UP MEMBER LOGIN:    
ARTICLE

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

Posted by Divya Saxena Articles | Testing December 20, 2010
This Article explains how to create a web test using VSTS 2008 test edition.
Reader Level:

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

Login to add your contents and source code to this article
share this article :
post comment
 

Thnaks

Posted by Divya Saxena Dec 08, 2011

very nice article on Creating, Recording & Running Web Project

Posted by Dinesh Kumar Nov 02, 2011

Hi divya, Thanx for posting such a helpful article.It is quite easy to understand and helped me to learn the process but could you please explain it more. like where we can use this test editions and after recording and running web project how can we find the bugs or log the bugs. so please help me to learn this process more. so that i can use it properly. i am waiting for your reply. Thanks & Regards, Neelam Joshi

Posted by Neelam Joshi Dec 21, 2010

Hi divya This is a simple article to learn for beginners. Keep it up. Thanks.

Posted by Purushottam Rathore Dec 20, 2010
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
Nevron Gauge for SharePoint
Become a Sponsor