Jmeter產生html格式測試報告

來源:互聯網
上載者:User

標籤:ram   sage   ice   override   apach   put   timestamp   and   操作   

使用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

Jmeter產生html格式測試報告

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.