Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

More informations about: JmxTestPlan or JtlTestLog

How do I ensure each http request for jsp is within one jsessionid ?

Just insert a http cookie manager. It will automatically handle the session for all the request within the threadgroup treating it like one session. Without http cookie manager, each request is a new session as no session state is kept. jsessionid is only shown for the very first request, subsequent request will not see the jsessionid. to use a variable in jmeter is ${name of variable}.

This is very useful when dealing with jsp form logins, as the first request is to login to the system and subsequent request is to do load testing on the target page. This will prevent redirection back into login page.