将表侦听器中的视图结果保存为jmeter中的csv文件

时间:2016-12-02 03:02:45

标签: csv save jmeter performance-testing

我正在jmeter上运行测试脚本,我想保存从表格中查看结果中获得的结果'监听器。我只是不明白我将如何这样做,就像我在Summary Report和Aggregate Report监听器中保存结果一样;也就是说,没有“保存表格数据”。与其他侦听器不同,在表中查看结果的底部。我怎样才能做到这一点?

2 个答案:

答案 0 :(得分:1)

Summary Report and Aggregate Report have "Save Table Data" button because the majority of values in them are calculated.

View Results in Table listener just displays raw data therefore it does not require to calculate anything hence there is no "Save Table Data" button.


I am under impression that you are using JMeter a little bit wrong. Normally you should not be saving listeners output separately, moreover you don't even need the listeners during the test run.

  1. Run your test in command-line non-GUI mode like:

    jmeter -n -t test.jmx -l results.jtl
    
  2. After your test is done open JMeter GUI add a listener of your choice to Test Plan and open results.jtl file with that listener

Make sure that all the listeners are either disabled or deleted during the test execution as they cause huge memory overhead which may cause lesser throughput or even ruin your test. See Greedy Listeners - Memory Leeches of Performance Testing arcticle for more detailed explanation.

答案 1 :(得分:0)

查看表格中的结果'监听器,有Filename字段。

  1. 使用正确的本地路径填充文件名字段
  2. 单击“配置”按钮。然后配置如下图
  3. 运行测试并检查结果。将创建csv文件。 enter image description here