2017-04-21 34 views
-1

JMeter的结果,我通过不同的听众越来越空的结果,我想要的结果来邮件 我尝试了通过SMTP采样 但是,我越来越没有电子邮件的结果enter image description here我收到的SMTP连接采样

回答

0
  1. 我没有看到你的SMTP Sampler附加文件以电子邮件的任何迹象,您应该.jtl结果文件添加为附件:

    JMeter Email Attachment

  2. 您可能还需要修改一个JMeter的房产因为默认情况下JMeter的不尽快采样完成后存储结果,它刷新他们的块到文件

    # AutoFlush on each line written in XML or CSV output 
    # Setting this to true will result in less test results data loss in case of Crash 
    # but with impact on performances, particularly for intensive tests (low or no pauses) 
    # Since JMeter 2.10, this is false by default 
    #jmeter.save.saveservice.autoflush=false 
    

    所以在下一行添加到用户。性能文件:

    jmeter.save.saveservice.autoflush=true 
    

    ,并重新启动JMeter的挑财产了。或者你也可以通过类似-J命令行参数设置属性:

    jmeter -Jmeter.save.saveservice.autoflush=true -n -t test.jmx -l result.jtl 
    

    有关使用性能调整JMeter的更多信息,请参阅Configuring JMeterApache JMeter Properties Customization Guide

+0

谢谢你,我看到发布截图后,但即使设置自动闪光为真后,我只得到我以前的结果 – sasi