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 Wes MacDonald

Wes MacDonald is a Developer Technologies MVP, PSD, MCT and a Principal Consultant for LIKE 10 INC., a DevOps Consulting firm providing premium support, guidance and services for Azure and VSTS.

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

  1. Thats awsome! and works perfect! 😉

    Like

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: