jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Lloyd <>
Subject Re: JMeter - Browser
Date Sat, 16 Jul 2011 16:53:22 GMT
There're two possible scenarios here:

1. You page is using javascript to check the browser version and this is
what gives the message. 

Look for "navigator.userAgent" in the response / page source. If you find
this then you'll be looking at a little javascript that will also contain
the message you give to users about IE6. 

In this scenario you have no issue. This will always be present in the page
source (server response) but becasue JMeter is NOT a browser this javascript
never actually gets run. Just make sure that the rest of the response is
what you are expecting. Also remember the View Results Tree Listener is also
NOT a browser - again, no javascript gets run; the HTML display option is
simply a basic tool to help debugging.

2. The check is being done on the server, not the client. 

In this scenario the method by which the server will check the browser
version will almost certainly be using the user-agent string sent as a
header with your request. The header will contain something like:

"Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 4.0)" - It'll probably use a
regexp looking for "MSIE 6.0" and respond accordingly.

In this case you can easily spoof a user-agent header using HTTP Header

Most probably it is option 1 and you have no issue. But a quick chat with
the developer or even just a scan of the code will set you right.

View this message in context:
Sent from the JMeter - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message