DCSIMG
How To Extract A Web Test Out Of An Existing Web Test In Team System - SRL Group

SRL Group

This blog is about Team System, QA and Development methodologies and more...

VSTS Resources

Team System Bloggers

How To Extract A Web Test Out Of An Existing Web Test In Team System

There are times when you have a part of a scenario that needs to be repeated in other scenarios.

There are two options available:

  1. Record the steps each time for each of the scenarios.
  2. Create a Web Test that includes these scenario steps and embed the Web Test in other web tests.

Option 2 is obviously preferable because it saves valuable time, take in account that you are not just recording steps but you also adds roles to it and modify it, wouldn’t you prefer to do that one time only?

In Team System 2008 there is a nice feature that allow you to do option 2 very easily, extract the required steps, automatically create a web test and embed the web test in other web tests.

So how is it being done?

Step 1: Record your scenario, include the steps that will be later extracted.

Step 2: Modify your recorded Web Test, include roles to verify the results.

Step 3: Right click the first request and choose “Extract Web Test…” option.

Extract pic 1

You can see in the example that I have recorder a log-in scenario to facebook and checked my Inbox.

What I like to do is to extract the Log-In steps to reuse.

Step 4: Type the name of the new Web Test, choose the first step to extract and choose the last step to extract.

etract pic 2

Step 5: Click the OK button and you are done!

extract pic 3

 

 

You can see that the new Web Test is embedded in the web test I have first created, look at your test project and you will find there the new web test also.

What you can do from this point is use the new Web Test as stand allown Web Test or embed it to other Web Tests.

Have Fun!

Comments

Team System News said:

The SRL Team Blog on How To Add More Browsers and Network Types To The Web Test List and How To Extract

# March 26, 2009 3:05 PM

anna said:

Please need help....

# May 19, 2009 5:21 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: