简体   繁体   English

在何处放置“查看结果树”以查看jmeter“调试采样器”的结果

[英]where to put 'view results tree' to see results of jmeter 'debug sampler'

I'm trying to use the 'debug sampler'(DS) in JMeter as I need to check that a 'regular expression extractor'(REE) is picking up an authentication token OK, but I can't work out how to get JMeter to show me what it's picking up. 我正在尝试在JMeter中使用“调试采样器”(DS),因为我需要检查“正则表达式提取器”(REE)是否正在获取身份验证令牌,但我无法弄清楚如何获取JMeter告诉我它正在捡起什么。 I don't have enough reputation points to post a screenshot of the tree inside JMeter, so I'll try to describe it(!) 我的信誉点不足,无法在JMeter中发布该树的屏幕截图,因此我将尝试对其进行描述(!)

Under the thread group I have 3 children, (1) the HTTP request which has a get for the page I'm after and the REE in it, (2) the DS, and (3) a 'view results tree' (VRT) listener in which I'm hoping to see the results from the DS. 在线程组下,我有3个子级,(1)HTTP请求,该请求具有要访问的页面的获取以及其中的REE,(2)DS,以及(3)“视图结果树”(VRT) )的侦听器,希望在其中查看DS的结果。

I can't put the DS under the REE in (1)(it won't move there) and the VRT just below the DS doesn't show any JMeter variables, only the same output as a VRT within the HTTP request group (1). 我无法将DS放在(1)中的REE下(它不会移动到那里),并且DS下方的VRT不会显示任何JMeter变量,仅显示与HTTP请求组内的VRT相同的输出( 1)。

Any suggestions where i could put things or how to configure them to see what the REE is picking up?. 我在哪里可以放东西或如何配置它们以查看REE正在拾取的任何建议? Thanks. 谢谢。

I believe you have used the Debug sampler as below 我相信您已经使用了Debug采样器,如下所示

Test Plan
--Thread Group
----Some HTTP Request
------Regular Expression Extractor
----Debug Sampler
----View Result Tree

In that case it should work. 在这种情况下,它应该可以工作。 But if your VRT was under HTTP request and DS under the TG then it wont work. 但是,如果您的VRT在HTTP请求下,而DS在TG下,则它将无法工作。 Also make sure in DS 'JMeter variables' is set to true. 还要确保在DS中将“ JMeter变量”设置为true。

If you put it as Child of Test Plan you will see all Sampler so you will see Debug Sampler. 如果将其作为“测试计划”的子项,则将看到所有的Sampler,因此将看到“ Debug Sampler”。 If you put it as a child of Debug Sampler you will only see results of this Debug Sampler. 如果将其作为Debug Sampler的子级,则只会看到此Debug Sampler的结果。

To see variables,in View Results Tree, click on Sampler and select Response Data Tab. 要查看变量,请在“查看结果树”中,单击“采样器”,然后选择“响应数据”选项卡。

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

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