How do I set the culture for a web test

Have a web application which actively detects the client's preferred browser cultures to decide what to render (using Request.UserLanguages).

I've recorded a web test - fine.

When I play it back the client's preferred culture list is empty.

How do I get the web test to present a list of preferred cultures?

[316 byte] By [Mattxxxxxx] at [2008-3-6]
# 1
Matt,
You probably need to add an Accept-Language header to your request(s). For English, the header value is "en-us". You can find a list of all the language values by going into Internet Explorer's Internet Options dialog and clicking the Lanuages button at the bottom of the General tab. Adding multiple languages is as easy as comma separating the list of language values.

I hope that helps.

Josh

JoshChristie at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...

Visual Studio Team System

Site Classified