开发者

How to change Sampler name in Jmeter results output

开发者 https://www.devze.com 2023-02-21 05:11 出处:网络
I added a Java Request Sampler to one of my test, butJmeter doesn\'t differentiate between samplers if they are non-http samplers, for example, BeanShell sampler also is logged with the name \"sampler

I added a Java Request Sampler to one of my test, but Jmeter doesn't differentiate between samplers if they are non-http samplers, for example, BeanShell sampler also is logged with the name "sampler" as listed below. Is there a way to cust开发者_如何学JAVAomize this in jmeter so that i can specify the name sampler in the results.xml/output.

I have looked for this in the jmeter documentation, but did not find a way to configure it.

Java Request Sampler:

<sample t="1755" lt="0" ts="1301026564783" s="true" lb="get Connections for Current User" rc="200" rm="Total connections fetched: 30" tn="Thread Group 1-2" dt="" by="0"/>
<sample t="1980" lt="0" ts="1301026564640" s="true" lb="get Connections for Current User" rc="200" rm="Total connections fetched: 248" tn="Thread Group 1-1" dt="" by="0"/>


This easily handled with Listener scope - a place in Test Plan where you put your Simple Data Writer, Aggregate Report etc.

The simpliest case is to attach listener as child of sampler. This will cause listener to listen only to this sampler.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号