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.
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.
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”.
In order to edit the server name just open the properties window of the “WebServer 1” parameter and change the value field.
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!!!