日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Jmeter生成html格式测试报告

發布時間:2024/7/19 编程问答 40 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Jmeter生成html格式测试报告 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

使用jmeter進行性能測試,運行完畢后生成html格式的測試報告,需要進行如下操作:

1.在C:\apache-jmeter-3.0\bin文件夾下的user.properties文本中添加如下信息:

?

jmeter.save.saveservice.assertion_results_failure_message=true

jmeter.save.saveservice.response_code=true

?

jmeter.save.saveservice.response_message=true

jmeter.save.saveservice.successful=true

jmeter.save.saveservice.thread_name=true

jmeter.save.saveservice.time=true

?

jmeter.save.saveservice.bytes=true

?

jmeter.save.saveservice.thread_counts=true

?

jmeter.save.saveservice.timestamp_format=ms

jmeter.save.saveservice.timestamp_format=yyyy/MM/dd HH:mm:ss.SSS

?

# 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 override the APDEX satisfaction threshold.

jmeter.reportgenerator.apdex_satisfied_threshold=1500

?

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

jmeter.reportgenerator.apdex_tolerated_threshold=3000

?

# 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

?

# 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)?

# Transactions per second suffixes Transactions with "-success" or "-failure" depending

# on the result

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

?

# Indicates whether series filter apply only on sample series

jmeter.reportgenerator.exporter.html.filters_only_sample_series=true

?

2.運行jmeter程序,在命令行輸入如下信息:

1)Windows系統

輸入格式如下:jmeter.bat -n -t <test JMX file> -l <test log file> -e -o <Path to output folder>

實際輸入:C:\apache-jmeter-3.0\bin\jmeter.bat -n -t Movie.jmx -l movie.jtl -e -o test

?

2)Linux系統

輸入格式如下:jmeter -n -t <test JMX file> -l <test log file> -e -o <Path to output folder>

實際輸入:/opt/apache-jmeter-3.0/bin/jmeter -n -t final-result.jmx -l final-result.jtl -e -o /opt/apache-jmeter-3.0/test

轉載于:https://www.cnblogs.com/baibaola/p/6386872.html

總結

以上是生活随笔為你收集整理的Jmeter生成html格式测试报告的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。