【问题标题】:Make Summary Report Jmeter output in CSV what it shows in table在 CSV 中制作摘要报告 Jmeter 输出,它在表格中显示
【发布时间】:2013-01-02 06:59:40
【问题描述】:

用于存储 Jmeter 摘要报告结果的文件名应该(据我了解)存储我在屏幕上看到的相同信息。但相反,它存储了这样发送的 HTTP 请求的简短响应:

<httpSample t="72" lt="66" ts="1305479685437" s="true" lb="login" rc="200" rm="OK" tn="Virtual users 1-1" dt="text" by="12978">

我将文件名定义为 .csv 文件

知道如何将其转换为屏幕摘要报告的副本(样本、平均值、最小值、最大值、Std.Dev 等)吗?

【问题讨论】:

    标签: testing jmeter load-testing stress-testing


    【解决方案1】:

    要生成 JMeter 输出的摘要报告,您需要执行以下操作:

    确保 jmeter.properties 文件中的“结果文件配置”不在注释中,并且您要使用的所有字段都标记为 true,如下所示。

    <pre><code>
        #---------------------------------------------------------------------------
        # Results file configuration
        #---------------------------------------------------------------------------
    
        # This section helps determine how result data will be saved.
        # The commented out values are the defaults.
    
        # legitimate values: xml, csv, db.  Only xml and csv are currently supported.
        jmeter.save.saveservice.output_format=csv
    
    
        # true when field should be saved; false otherwise
    
        # assertion_results_failure_message only affects CSV output
        #jmeter.save.saveservice.assertion_results_failure_message=false
        #
        # legitimate values: none, first, all
        #jmeter.save.saveservice.assertion_results=none
        #
        jmeter.save.saveservice.data_type=false
        jmeter.save.saveservice.label=true
        jmeter.save.saveservice.response_code=true
    </code></pre>
    

    然后通过单击配置按钮配置摘要报告。

    【讨论】:

      【解决方案2】:

      Jp@gc 具有用于将 jmeter 报告导出到 csv 的命令行工具。将保存的 jtl 文件提供给它并使用聚合报告模式。 看。 JMeterPluginsCMD Command Line Tool docs求帮助

      【讨论】:

        【解决方案3】:

        这是可能的,如果你想把它变成屏幕摘要报告的副本(样本、平均值、最小值、最大值、标准偏差等),只需点击保存表格数据按钮,然后将其保存为 .csv 格式。

        你会得到这样的 .csv 文件:

        【讨论】:

        • 这对我来说似乎是一个合理的答案,事实上,我来这里就是为了这个答案。
        猜你喜欢
        • 2023-03-13
        • 1970-01-01
        • 2021-09-28
        • 2015-08-06
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多