DCSIMG

 Subscribe in a reader

Web Test & Different Builds - Guy kolbis
Monday, November 24, 2008 4:18 AM kolbis

Web Test & Different Builds

Some Background...

I have a customer that uses Microsoft Load Test and Web Test tools in order to validate the performance for his web application. Web Tests and Load Tests get executed against each and every new build. A new build is published to a the web server (either an IIS or Tomcat) under the application name + the build number, for example:

"rcm41020"

So, the application name is rcm and the build is 41020.

The Problem

For each web test that we execute we need to change in the URL the application name:

image

in this screen shot I have marked the name of the application that we need to change.

Now, consider that we must replace the name of the application on each web test. Unfortunately, we do not have a tool that can help us do that and we have to go through all the web test manually and change it.

The Manual Solution

Ok, so I accepted the fact that I need to use a manual operations to complete the change. Still I would like to share with you my solution that might save you some time and anger...

1. Add a context parameter to you web test and name it ApplicationName. Set the name you want in the property grid, for example:

image

2. Open the web test with an XML editor:

3

3. Use the Find & Replace to replace all the privious application name with the context parameter you have added, such as ApplicationName. Please note that in order to bind to the context parameter, you need to add {{ApplicationName}}.

4

4. Open the design view and verify that you can now see the updated web test:

image 

That is it. Hope this helps!

Question: would you like to see an add-in that helps you with that?

תגים:, ,

תוכן התגובה

# re: Web Test & Different Builds

Maor David-Pur כתב/ה

Very helpful. Thanks.

Monday, November 24, 2008 5:47 AM

שלח תגובה

(שדה חובה) 
(שדה חובה) 
(אופציונלי)
(שדה חובה) 

Enter the numbers above: