Why does JMeter behave differently from my browser?

I've set up JMeter to sample the same URLs as my browser, why is JMeter not seeing the same responses?

There are various different reasons for this:

How do I solve this?

There are various methods for investigating this.

View Results Tree Listener

This can be used to show the cookies that are received and sent.

Browser add-ons

Some browsers have add-ons that allow one to log the HTTP requests and responses. The JMeter Tree View Listener shows the same data; comparison of the two should show where the JMeter test needs to be modified.

Protocol Analysers

These can analyse the HTTP traffic to and from the JMeter/browser host.

Compare the results to find out where the JMeter test needs to be modified.

Dynamic fields and content

As mentioned above, some servers may use variable names in forms. In this case, the JMeter plan needs to be adjusted to allow for it.

The way to do this is to add a Regular Expression Post Processor to the previous sampler - i.e. the one that returns the form - and extract the appropriate part(s) of the form into JMeter variables.

Then use the variables on the sampler that uses the form.

Example TBA

DifferentBehaviour (last edited 2009-09-20 21:56:42 by localhost)