2017-04-21 31 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