blog community
Adding Firefox browser to load test you websites in Team System
Marcel de Vries, MVP Team System

Syndication

At the many talks I give on Team System I always get the same question when demonstrating the options available to define a load test for a web application in Visual Studio Team System.

 

Because I have a new Talk on team system next Wednesday I decided I needed to find the way to do this. After some searching around my Beta 3 and RC1 setup I found a directory that contains the template files for the browsers you can pick when installing the default options. The folder is :

C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\Templates\LoadTest\Browsers

 

I found the list with templates that ship with Team system. The product now has the following definitions available:

 

  • IE 5.5
  • IE 6.0
  • Pocket IE 3
  • Smart Phone
  • Netscape 6

 

But when I take a look at my own blog, I see that the 99% of the traffic is generated by

  • IE6.0 (82%)
  • Firefox 1.x ( 13%)
  • Netscape 6 (1%)
  • Netscape 3.0(1%)
  • IE 7.0 (2%)

 

It appears that creating a new definition file to use with web tests is pretty easy to do. You just create a copy of e.g. the IE6 browser file and change the Browser agent string (and the browser name of course). A great list of browser agent strings can be found here.

 

So My FireFox definition now looks as follows:

<Browser Name="Firefox 1.0.7">

  <Headers>

    <Header Name="User-Agent"

Value="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050922 Firefox/1.0.7" />

    <Header Name="Accept" Value="*/*" />

    <Header Name="Accept-Language" Value="{{$IEAcceptLanguage}}" />

    <Header Name="Accept-Encoding" Value="GZIP" />

  Headers>

Browser>

 

I saved this file in the above mentioned folder and gave it the name FireFox.Browser (you can download it here (click save target as) if you are not willing to type this yourselfJ)

 

Now in the dropdown boxes for you load testing and performance sessions you will find Firefox 1.0.7 available.


Posted 23-10-2005 21:03 by marcelv

Comments

Thiro wrote re: Adding Firefox browser to load test you websites in Team System
on 30-07-2008 6:04

Is this only supported in Visual Studio 2008 ? I checked the same in Visual studio 2005 but could not get FIre Fox to the list. The file I created is as below. Since I have FireFox 2 I had to change the version from what you have given in the example.

<Browser Name="Firefox 2.0.0.3">

 <Headers>

   <Header Name="User-Agent" Value="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3" />

   <Header Name="Accept" Value="*/*" />

   <Header Name="Accept-Language" Value="{{$IEAcceptLanguage}}" />

   <Header Name="Accept-Encoding" Value="GZIP" />

 Headers>

Browser>

Jose's Blog wrote How To: Extend the Network Types for a Visual Studio Load Test
on 20-08-2008 19:19

Out-of-the-box Visual Studio allows testers to define a network mix for load tests with the following

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
Powered by Community Server (Commercial Edition), by Telligent Systems