国内炫酷的网站首页,正规品牌网站设计品牌,jsp做网站,企业建设流程使用jmeter进行性能测试#xff0c;运行完毕后生成html格式的测试报告#xff0c;需要进行如下操作#xff1a; 1.在C:\apache-jmeter-3.0\bin文件夹下的user.properties文本中添加如下信息#xff1a; jmeter.save.saveservice.assertion_results_failure_messagetrue jme…使用jmeter进行性能测试运行完毕后生成html格式的测试报告需要进行如下操作 1.在C:\apache-jmeter-3.0\bin文件夹下的user.properties文本中添加如下信息 jmeter.save.saveservice.assertion_results_failure_messagetrue jmeter.save.saveservice.response_codetrue jmeter.save.saveservice.response_messagetrue jmeter.save.saveservice.successfultrue jmeter.save.saveservice.thread_nametrue jmeter.save.saveservice.timetrue jmeter.save.saveservice.bytestrue jmeter.save.saveservice.thread_countstrue jmeter.save.saveservice.timestamp_formatms jmeter.save.saveservice.timestamp_formatyyyy/MM/dd HH:mm:ss.SSS # Configure this property to change the report title #jmeter.reportgenerator.report_titleApache JMeter Dashboard # Change this parameter if you want to change the granularity of over time graphs. #jmeter.reportgenerator.overall_granularity60000 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_granularity500 # Change this parameter if you want to override the APDEX satisfaction threshold. jmeter.reportgenerator.apdex_satisfied_threshold1500 # Change this parameter if you want to override the APDEX tolerance threshold. jmeter.reportgenerator.apdex_tolerated_threshold3000 # 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_seriestrue 2.运行jmeter程序在命令行输入如下信息 1Windows系统 输入格式如下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 2Linux系统 输入格式如下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