You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Wing Tang <wi...@gmail.com> on 2008/07/02 20:22:28 UTC

question regarding simulating different type of browsers

Hi,

I am wondering whether jmeter 2.3 can simulate different type/version
browsers. For instance I have a script when run I want to simulate the
behaviour as Internet Explorer 6 and when running the next time I want to do
it as Firefox 2.

Can you someone tell me whether this is possible, and how I can configure
it?

Thanks in advance,
Wing

Re: question regarding simulating different type of browsers

Posted by Wing Tang <wi...@gmail.com>.
thank you

On Thu, Jul 3, 2008 at 12:44 AM, sebb <se...@gmail.com> wrote:

> On 02/07/2008, Wing Tang <wi...@gmail.com> wrote:
> > Hi,
> >
> >  I am wondering whether jmeter 2.3 can simulate different type/version
>
> The current version is 2.3.2
>
> >  browsers. For instance I have a script when run I want to simulate the
> >  behaviour as Internet Explorer 6 and when running the next time I want
> to do
> >  it as Firefox 2.
> >
> >  Can you someone tell me whether this is possible, and how I can
> configure
> >  it?
>
> JMeter is not a browser, but it can send the same HTTP requests as a
> browser.
>
> So if you are asking whether JMeter can look like a particular browser
> as far as the server is concerned, then yes, provided that you send
> the correct requests to the server.
>
> The main way that the servers detect the browser type is via the
> header User-Agent.
>
> http://en.wikipedia.org/wiki/User-Agent
>
> You can set this using the header manager.
>
> Or use the JMeter Proxy to record identical sessions (one page will be
> enough) with each of the browsers and have a look at the captured
> headers.
>
> Then use variable(s) for the headers that differ, and pass the
> variable in to the test plan.
>
> >  Thanks in advance,
> >
> > Wing
> >
>



-- 
Met vriendelijke groet,

Wing Tang
mob: +31624870322

Re: question regarding simulating different type of browsers

Posted by sebb <se...@gmail.com>.
On 02/07/2008, Wing Tang <wi...@gmail.com> wrote:
> Hi,
>
>  I am wondering whether jmeter 2.3 can simulate different type/version

The current version is 2.3.2

>  browsers. For instance I have a script when run I want to simulate the
>  behaviour as Internet Explorer 6 and when running the next time I want to do
>  it as Firefox 2.
>
>  Can you someone tell me whether this is possible, and how I can configure
>  it?

JMeter is not a browser, but it can send the same HTTP requests as a browser.

So if you are asking whether JMeter can look like a particular browser
as far as the server is concerned, then yes, provided that you send
the correct requests to the server.

The main way that the servers detect the browser type is via the
header User-Agent.

http://en.wikipedia.org/wiki/User-Agent

You can set this using the header manager.

Or use the JMeter Proxy to record identical sessions (one page will be
enough) with each of the browsers and have a look at the captured
headers.

Then use variable(s) for the headers that differ, and pass the
variable in to the test plan.

>  Thanks in advance,
>
> Wing
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org