DCSIMG
How To Run A Recorded Web Test On Different Servers - SRL Group

SRL Group

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

VSTS Resources

Team System Bloggers

How To Run A Recorded Web Test On Different Servers

Many times when I record a web test, I do that on my local machine, the result is all the requests are directed to my localhost.

A very nice feature added in Team System 2008 is the “Parameterize Web Server” button added to my Web Test GUI.

server parameter

Clicking on it will open a new window with one new parameter with the default name of “WebServer1”.
We can also see that the “Web Server” parameter is the server that the web test was recorded on.

image

 

 

Click OK and see that two things have happened a folder was added to your Web Test with the name “Context Parameters” and in all the requests the server name section was replaced with the parameter “WebServer 1”.

image

In order to edit the server name just open the properties window of the “WebServer 1” parameter and change the value field.

image

 

 

You can change the value of the “WebServer 1” parameter in other ways too but it is out of the scope of this post.

Have Fun!!!

Comments

Team System News said:

Ognjen Bajic on [Inside TeamCompanion 2.1] Query by Example (QBE) The Data Dude Blog on Can the "real"

# March 31, 2009 2:37 PM

anna said:

I did follow the steps and created a web server parameterized -but when i run the tests some of requests are failed & when i checked the failed request in HTML editor wintdow -it is showing AppError.aspx.

Please help me with a solution to correct this issue.

Thanks in advance.

# April 2, 2009 5:35 AM

Eran Ruso said:

I will need some more information in order to locate the problem.

First I would run the scenario steps manualy on the target server defined in the parameter, most chanses you will get to the same result.

# April 2, 2009 2:47 PM

StuDotNet said:

I want to change the Web Server for all web tests at once. Can we do that or we have to change the web server for each Web Test individually..?

# July 3, 2009 8:45 AM

Eran Ruso said:

StuDotNet,

Web Server parameter is a setting of a script, you have the flexibility of using different settings for different scripts.

Currently you can't set a sheared setting among different scripts including the Server Parameter.

# July 3, 2009 9:00 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: