【问题标题】:How to change Sampler name in Jmeter results output如何在 Jmeter 结果输出中更改采样器名称
【发布时间】:2011-03-30 03:00:47
【问题描述】:

我在我的一个测试中添加了一个 Java 请求采样器,但是如果它们是非 http 采样器,Jmeter 不会区分采样器,例如,BeanShell 采样器也使用名称“sampler”记录,如下所示。有没有办法在 jmeter 中自定义它,以便我可以在 results.xml/output 中指定名称 sampler。

我在 jmeter 文档中找到了这个,但没有找到配置它的方法。

Java 请求采样器:

<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"/>

【问题讨论】:

    标签: jmeter


    【解决方案1】:

    这可以通过 Listener 范围轻松处理 - 测试计划中放置简单数据编写器、聚合报告等的地方。

    最简单的情况是将侦听器附加为采样器的子级。这将导致侦听器仅侦听此采样器。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-06-08
      • 1970-01-01
      • 2011-09-01
      • 2023-02-09
      • 2013-04-09
      • 1970-01-01
      相关资源
      最近更新 更多