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:
- you need provide different credentials each thread impersonate different users. common way of parametrization using csv data set config
- it's better add http cookie manager represent browser cookies.
- 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
Post a Comment