Jmeter 将自定义数据添加到报告仪表板
Jmeter add custom data to report dashboard
几个关于 jmeter 报告仪表板的问题。
我想按以下方式修改 index.html.fmkr:在 "Test and Report informations" 我想使用我的自定义数据添加新行。
我看到行是这样的:
<tr>
<td>Source file</td>
<td>${testFile!""}</td>
</tr>
<tr>
<td>Start Time</td>
<td>${beginDate!""}</td>
</tr>
我很好奇 ${testFile!""}、${beginDate!""} 是从哪里获取的,我是否可以使用自己的?
testFile
是用来生成dashboard的jtl文件
beginDate
是考试的开始日期
两者都在内部添加到 JMeter 仪表板,无法自定义。
您可以根据Configuring Dashboard Generation定制部分仪表盘:
All report generator properties can be found in file reportgenerator.properties. To customize these properties, you should copy them in user.properties file and modify them.
例如,您可以在 user.properties
文件中添加仪表板标题的覆盖行:
jmeter.reportgenerator.report_title=My Customized Dashboard
几个关于 jmeter 报告仪表板的问题。
我想按以下方式修改 index.html.fmkr:在 "Test and Report informations" 我想使用我的自定义数据添加新行。 我看到行是这样的:
<tr>
<td>Source file</td>
<td>${testFile!""}</td>
</tr>
<tr>
<td>Start Time</td>
<td>${beginDate!""}</td>
</tr>
我很好奇 ${testFile!""}、${beginDate!""} 是从哪里获取的,我是否可以使用自己的?
testFile
是用来生成dashboard的jtl文件
beginDate
是考试的开始日期
两者都在内部添加到 JMeter 仪表板,无法自定义。
您可以根据Configuring Dashboard Generation定制部分仪表盘:
All report generator properties can be found in file reportgenerator.properties. To customize these properties, you should copy them in user.properties file and modify them.
例如,您可以在 user.properties
文件中添加仪表板标题的覆盖行:
jmeter.reportgenerator.report_title=My Customized Dashboard