How to maintain session in Jmeter for testing web application? -


how maintain session in jmeter each user should login, search tickets , logout ? , process kept going until loop completes users. trying test our web application multiple users.

each jmeter thread (representing virtual user) executes samplers upside down if have 3 samplers login, search , logout each thread execute them in order.

keep in mind that:

  1. you need provide different credentials each thread impersonate different users. common way of parametrization using csv data set config
  2. it's better add http cookie manager represent browser cookies.
  3. it may required perform correlation: in majority of cases application expects dynamic parameters need extracted previous page response , added next request. if fail may not logged in. commonly used test element correlation regular expression extractor depending on nature of response may worth using css/jquery extractor, xpath extractor or json path extractor

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -