简体   繁体   中英

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. I don't have enough reputation points to post a screenshot of the tree inside JMeter, so I'll try to describe it(!)

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.

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).

Any suggestions where i could put things or how to configure them to see what the REE is picking up?. Thanks.

I believe you have used the Debug sampler as below

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. Also make sure in DS 'JMeter variables' is set to true.

If you put it as Child of Test Plan you will see all Sampler so you will see Debug Sampler. If you put it as a child of Debug Sampler you will only see results of this Debug Sampler.

To see variables,in View Results Tree, click on Sampler and select Response Data Tab.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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