Sunday, June 17, 2007

Extending Load Testing Browser Support

The browser support Out Of The Box for Team Edition for Testers is minimal.

But, it can be extended by adding your own browsers (common ones you'll probably want to add are IE7, Firefox and Opera).

The configuration files for the browser types are stored in C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\Templates\LoadTest\Browsers.

The files end in the extension ".browser". These files simply contain the header information a browser sends with a request.

If you aren't sure of what information to enter in this file, simply open up your favorite browser that isn't in the list and go to and grab the appropriate values!

Use the IE6.browser file as a template. For example, if you wanted to add support to test Opera you might add the following and save it as Opera.browser:

<Browser Name="Opera 8.0">
<Header Name="User-Agent" Value="Opera/8.00+(Windows+NT+5.1;+U;+en)" />
<Header Name="Accept" Value="text/html, image/jpeg, image/gif, image/x-bitmap, */*" />
<Header Name="Accept-Language" Value="en" />
<Header Name="Accept-Encoding" Value="GZIP" />

There are obviously other values you can place here and some of this will be dependent on your locale, plug-ins you have loaded and other environmental factors. Once you save this file, you should be able to go in and create a new load test and Opera 8.0 will now show up as an option in your browser mix list.


Anonymous said...

Hey, I recently added a news widget from to my blog. It shows the latest news, and just took a copy and paste to implement. Might interest you too.

Noel said...

Thank you for your post. It is information of current importance for me.