标签:命令 建议 text 扩展模块 pac family bin thread str
该模块支持通过两种方式生成多维度图形化测试报告:
但是3.0直接生成报告会出现乱码,建议下载3.1之后的版本,我这里下载的是最新的3.2。
如何生成报告?
从cmd进入执行测试文件,
1
|
jmeter -n -t <test JMX file> -l <test log file> -e -o <Path to output folder> |
执行完成后会在\apache-jmeter-3.2\bin\output目录下产生如下文件(夹):
如果需要从已有的结果文件CSV生成html报告,则需要配置jmeter.properties:
jmeter.save.saveservice.bytes = true # Only available with HttpClient4 #jmeter.save.saveservice.sent_bytes=true jmeter.save.saveservice.label = true jmeter.save.saveservice.latency = true jmeter.save.saveservice.response_code = true jmeter.save.saveservice.response_message = true jmeter.save.saveservice.successful = true jmeter.save.saveservice.thread_counts = true jmeter.save.saveservice.thread_name = true jmeter.save.saveservice.time = true jmeter.save.saveservice.connect_time = true # the timestamp format must include the time and should include the date. # For example the default, which is milliseconds since the epoch: jmeter.save.saveservice.timestamp_format = ms # Or the following would also be suitable jmeter.save.saveservice.timestamp_format = yyyy/MM/dd HH:mm:ss
如果希望在Errors报告中展示更详细数据,需要确保如下配置
1
|
jmeter.save.saveservice.assertion_results_failure_message = true |
使用已有的CSV日志文件生成报告
1
|
jmeter -g <log file> -o <Path to output folder> |
标签:命令 建议 text 扩展模块 pac family bin thread str
原文地址:http://www.cnblogs.com/sunny-sl/p/7641126.html