简体   繁体   English

JSF View State Auto Change 无法在 JMETER 中处理

[英]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.我正在做负载测试,但面临与 ViewState 相关的问题,在我们的应用程序视图状态以及 csrf 令牌显示在登录中,因此通过使用 CSS Extractor 进行提取,我将登录并查看主页,但是一旦我导航到任何页面,例如使用 Post 请求命中的 TransactionHistory 我在请求中收到内部服务器错误,我们正在传递 ViewState 和页面详细信息,但作为响应,它显示 500 内部服务器错误我尝试提取 ViewState 但提取后它对我不起作用,因为 ViewState 不断变化,因此需要有关此方面的帮助,我们该如何处理。 [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 [在此处输入图像描述][1] [1]: https://i.stack.imgur.com/EL2jr.png [在此处输入图像描述][2] [2]: https://i.stack.imgur .com/iLLjn.png [在此处输入图像描述][3] [3]: https://i.stack.imgur.com/6zbW4.png [在此处输入图像描述][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")我的期望是您需要继续为每个后续请求提取视图状态,要么将CSS Selector Extractor复制为Manage Users请求的子级,要么将其移至更高级别 - 在这种情况下,它将应用于所有处于同一级别(或“更低”)的采样器

You can see all pre-defined and generated JMeter Variables with all their respective values using Debug Sampler and View Results Tree listener combination.您可以使用调试采样器查看结果树侦听器组合查看所有预定义和生成的 JMeter 变量及其所有值。

More information: JMeter Scoping Rules - The Ultimate Guide更多信息: JMeter 范围规则 - 终极指南

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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