我无法使用常规 exp 提取器在 jmeter 中捕获 SRN 值
I am not able to capture SRN value in jmeter using regular exp extractor
enter image description here
即使响应中存在该值,调试采样器也显示未找到。
我已经尝试过 cookie 管理器、授权管理器、header 管理器、deflate、bean shell 预处理器。
该请求的响应断言也失败了。enter image description here
您可以改用 XPath 提取器,这样会更容易,这里是要使用的 XPath
//*[@name='SRN']/@value
请确保您检查了选项,在 XPath 提取器中使用 Tidy 和 Quiet
enter image description here
即使响应中存在该值,调试采样器也显示未找到。 我已经尝试过 cookie 管理器、授权管理器、header 管理器、deflate、bean shell 预处理器。
该请求的响应断言也失败了。enter image description here
您可以改用 XPath 提取器,这样会更容易,这里是要使用的 XPath
//*[@name='SRN']/@value
请确保您检查了选项,在 XPath 提取器中使用 Tidy 和 Quiet