简体   繁体   中英

JSF View State Auto Change and not able to handle it in JMETER

I am doing load testing but facing an issue related to ViewState, In our application View state along with csrf token shows in login, So by extracting using CSS Extractor I am to login and see the homepage, but once I navigate to any of page eg TransactionHistory which hit using Post request i get an error of internal server inside request we are passing ViewState and page details but in response, it shows 500 internal server error I tried extracting ViewState but after extracting it did not work for me as ViewState keep changing, So need help regarding this how can we handle this. [enter image description here][1] [1]: https://i.stack.imgur.com/EL2jr.png [enter image description here][2] [2]: https://i.stack.imgur.com/iLLjn.png [enter image description here][3] [3]: https://i.stack.imgur.com/6zbW4.png [enter image description here][4] [4]: https://i.stack.imgur.com/r9Kv1.png

My expectation is that you need to continue extracting the viewstate for each and every subsequent request, either copy the CSS Selector Extractor to be a child of the Manage Users request or just move it one level higher - in this case it will be applied to all Samplers which are at the same level (or "lower")

You can see all pre-defined and generated JMeter Variables with all their respective values using Debug Sampler and View Results Tree listener combination.

More information: JMeter Scoping Rules - The Ultimate Guide

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM