在 Jmeter 中哪里可以查看 xPath Extractor 结果
我是 Jmeter 新手,我想查看 Xpath Extractor 生成的结果。
我有
Reference Name : pt_idx
Xpath query : //patientList/patient/idnetifierList/identifier/text()
Default Value : 0
请澄清我的疑问,我可以在 Http 请求中使用 Xpath 查询生成的结果吗?
这些结果将存储在 pt_idx 变量中吗?
最后,哪里可以看到结果呢?
I am new to Jmeter, I want to see the Xpath Extractor generated results.
I have
Reference Name : pt_idx
Xpath query : //patientList/patient/idnetifierList/identifier/text()
Default Value : 0
Please clarify my doubts, can i use Xpath query generated results in Http Request?
Is those result will store in pt_idx variable?
Finally, where can i see the results?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,您可以在 Http 请求中使用它,我之前使用过几个 XPath 提取器< /a> 并能够使用占位符符号
${varname}
(对您来说是${pt_idx}
)在后续的 http 请求中将它们用作变量来验证变量的值,我可以通过查看 HTTP 请求(因为我使用变量来填充请求参数)来通过报告来完成此操作。
希望有帮助。
Yes, you can use it in an Http Request, I have previously used several XPath Extractors and been able to use them as variables in subsequent http request using the placeholder notation
${varname}
(for you it would be${pt_idx}
)To verify the value of the variable, I could do it via the report by looking at the HTTP Request (as I used the variable to fill a request parameter).
Hope it helps.
通过转到线程组并右键单击
Thread group -> 添加调试采样器添加->采样器->调试采样器。调试采样器将给出 XPath Extractor 检索的值。只需添加
查看结果树
并选择调试采样器
并查看响应数据
选项卡,信息就应该全部在那里。Add a Debug sampler by going to the thread group and right clicking
Thread group -> add -> sampler -> debug sampler
. The debug sampler will give the values that theXPath Extractor
retrieves. Simple add aView Results Tree
and select thedebug sampler
and view theResponse data
tab and the info should be all there.