【问题标题】:I want to save a CSV with Aggregate Report in JMeter. I need to save this file in my local repository where the JMX file is我想在 JMeter 中保存带有汇总报告的 CSV。我需要将此文件保存在 JMX 文件所在的本地存储库中
【发布时间】:2021-05-24 11:35:16
【问题描述】:

我想在 JMeter 中保存带有汇总报告的 CSV。我需要将此文件保存在 JMX 文件所在的本地存储库中。我如何指示路径?请帮忙。

【问题讨论】:

    标签: csv file jmeter report aggregate


    【解决方案1】:

    您可以使用 JMeter Plugins Command Line Graph Plotting Tool 从包含您的测试结果的 .jtl file 中生成包含聚合报告数据的 CSV 文件

    1. 使用JMeter Plugins Manager安装JMeter插件命令行工具

      如果没有Synthesis Report,可能还需要安装

    2. Run your JMeter test in command-line non-GUI mode点赞:

      jmeter -n -t test.jmx -l result.jtl
      
    3. 测试完成后,您可以生成聚合报告 CSV 表示,如下所示:

      JMeterPluginsCMD --generate-csv aggregate-report.csv --input-jtl result.jtl --plugin-type AggregateReport 
      

      aggregate-report.csv 是当前文件夹的相对路径,你可以将其设为绝对路径:

      JMeterPluginsCMD --generate-csv c:/somefolder/someotherfolder/aggregate-report.csv --input-jtl result.jtl --plugin-type AggregateReport
      

    更多信息:How to Use the JMeterPluginsCMD Command Line

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-19
      • 1970-01-01
      • 2017-09-22
      • 2017-11-09
      • 1970-01-01
      相关资源
      最近更新 更多