JMeter - 如何加载结果文件?

9

我已经完成了一次JMeter测试,可以得到results.csv或result.jtl文件。

我该如何从GUI界面和命令行中将其加载到JMeter中?

2个回答

16

“load”是什么意思?你已经有了结果,现在需要分析它们。这可以通过不同的方式完成,具体取决于你计划如何表示结果以及需要报告什么指标,例如:

  1. Using Microsoft Excel or equivalent like Libre Office Calc
  2. Using JMeter GUI:

    • Open JMeter GUI
    • Add Listener of your choice to the Test Plan (for example Aggregate Report is quite good)
    • Using "Browse" button locate your results file and load it
    • JMeter will parse the results file, perform necessary calculations and display the metrics. If you need you can click "Save Table Data" to export the results for later re-use

      JMeter Listener display results

  3. You can plot some charts reflecting the test metrics using Graphs Generator Listener
  4. You can generate HTML Reporting Dashboard like:

    jmeter -g your_result_file.jtl -o /where/you/want/the/dashboard/to/be/generated
    
  5. You can use a 3rd-party analysis service like JAnalyzer or BM.Sense


2
您需要添加 listener 来创建 jtl 和结果文件。
在监听器文件名中写入:results.csv

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接