Jmeter 3.0 生成图表报告(一)

1. 编辑bin目录下的user.properties文件,配置报告设置如下:

#---------------------------------------------------------------------------

# Reporting configuration

#---------------------------------------------------------------------------

# If you want to debug reporting, uncomment this line

log_level.jmeter.report=DEBUG

# Configure this property to change the report title

jmeter.reportgenerator.report_title=Apache JMeter Dashboard

# Change this parameter if you want to change the granularity of over time graphs.

jmeter.reportgenerator.overall_granularity=60000

# Change this parameter if you want to change the granularity of Response time distribution

# Set to 500 ms by default

jmeter.reportgenerator.graph.responseTimeDistribution.property.set_granularity=500

# Change this parameter if you want to keep only some samples.

# Regular Expression which Indicates which samples to keep for graphs and statistics generation.

# Empty value means no filtering

jmeter.reportgenerator.sample_filter=

# Change this parameter if you want to override the APDEX satisfaction threshold.

jmeter.reportgenerator.apdex_satisfied_threshold=500

# Change this parameter if you want to override the APDEX tolerance threshold.

jmeter.reportgenerator.apdex_tolerated_threshold=1500

# Indicates which graph series are filtered (regular expression)

# In the below example we filter on Search and Order samples

# Note that the end of the pattern should always include (-success|-failure)?

# TransactionsPerSecondGraphConsumer suffixes transactions with "-success" or "-failure" depending

# on the result

jmeter.reportgenerator.exporter.html.series_filter=(Search|Order)(-success|-failure)?

# Indicates whether only controller samples are displayed on graphs that support it.

jmeter.reportgenerator.exporter.html.show_controllers_only=false

# Sets the destination directory for generated html pages, it is better to change it for every generation

# This will override the value set through -o command line option

jmeter.reportgenerator.exporter.html.property.output_dir=/tmp/test-report

2.在 cmd里执行如下命令:

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容