Internet Explorer 11 User Agent Definition for Visual Studio Load Tests


If you want to add Internet Explorer 11 as a Browser Type when you configure a Load Test with Visual Studio 2013 you simply have to create a file named IE11.browser with the following contents:

<Browser Name="Internet Explorer 11.0" MaxConnections="6">
  <Headers>
    <Header Name="User-Agent" Value="Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko" />
    <Header Name="Accept" Value="*/*" />
    <Header Name="Accept-Language" Value="{{$IEAcceptLanguage}}" />
    <Header Name="Accept-Encoding" Value="GZIP" />
  </Headers>
</Browser>

Save the file to the following directory:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Templates\LoadTest\Browsers

When you go through the Load Test Wizard after adding a Load Test to your Test Project you will be able to select Internet Explorer 11 as a browser.

Load Test Wizard | Browser Type

About wesmacdonald

Wes MacDonald is a Visual Studio ALM MVP, PSD, MCT, MCTS, MCITP (SharePoint) and a Principal Consultant for LIKE 10 INC., a SharePoint Server, Visual Studio and Team Foundation Server Consulting Firm providing premium support and guidance services.

One Response to “Internet Explorer 11 User Agent Definition for Visual Studio Load Tests”

  1. Thats awsome! and works perfect! ;)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 1,192 other followers

%d bloggers like this: