Interview Questions

Why does JMeter behave differently from my browser?

Apache JMeter FAQ


(Continued from previous question...)

Why does JMeter behave differently from my browser?

There are various different reasons for this:

* Cookies - make sure you added a Cookie Manager. Browsers process cookies unless you set them up otherwise, but JMeter does not process cookies unless you add a Cookie Manager.
* User-Agent - the User-Agent is a header that is sent by browsers; it identifies the browser type. Some servers are sensitive to this setting and generate different results for what they think are different browsers. The Header Manager is used to add headers such as User-Agent.
* Hidden fields - if you did not use the JMeter Proxy (or other application) to record the test plan, then it is easy to miss hidden fields from forms.
* Dynamic field names/content - some servers use varying names for fields. So although the test plan may be correct at the time of creation, it does not work when replayed.
* URL rewriting - TBA

(Continued on next question...)

Other Interview Questions