更新时间:2022-05-09 00:06:22
在图片中,似乎以某种方式提取失败,或者您使用的是硬编码值而不是提取值.我建议使用调试采样器和查看结果树侦听器组合,并确保您在HTTP请求中使用${RequestVerificationToken}
.
Looking into the pictures it appears that somewhere somehow your extraction fails or you're using hard-coded value instead of extracted one. I would recommend double checking the extracted value using Debug Sampler and View Results Tree listener combination and ensuring you're using ${RequestVerificationToken}
in the HTTP Request.
此外,如果变量以 HTTP Cookie 您可以直接从 HTTP Cookie管理器中获取它,例如:
Also if the variable comes as a HTTP Cookie you can get it directly from the HTTP Cookie Manager like:
将下一行添加到 user.properties 文件(位于JMeter安装的"bin"文件夹中)
Add the next line to user.properties file (lives in "bin" folder of your JMeter installation)
CookieManager.save.cookies=true
${COOKIE____RequestVerificationToken}
.
${COOKIE____RequestVerificationToken}
where required.