JMeter的 - 邮件获取previous结果 [英] Jmeter - Getting previous results in mail
问题描述
我利用JMeter - 它会自动运行每4小时(通过crontab中)。我在试验结束时发送在邮件结果文件(CSV)。我总是看到 $ P $的文件pvious 的测试,而不是当前的(我可以按小时见)。
I'm using Jmeter - it runs automatically every 4 hours (through crontab). I'm sending the results file (csv) in the mail at the end of the test. I always see the file of the previous test, not the current one (I can see by the hour).
结构是这样的:一个人测试计划(我检查运行线程组连续的和运行拆卸螺纹主线程关闭后组),两个线程组 - 这在每年年底我写使用查看结果树结果到CSV文件,并在年底 - TearDown中的线程组使用SMTP采样送文件创建
the structure is this: one 'Test Plan' (I checked 'Run Thread Groups consecutively' and 'Run tearDown Thread Groups after shutdown of main threads), two 'Thread Groups' - which at the end of each I write results to csv file using 'View Results Tree', and at the end - 'TearDown Thread Group' that uses SMTP sampler to send the files created.
任何帮助将是AP preciated。
any help would be appreciated.
and this is the writing to the file:
推荐答案
这可能是由于自动刷新该刷新达到缓冲,只有当缓冲区的内容政策。
当你使用一个推倒线程组结果NIT保证,因为测试是不是真的完蛋被完全写入。
你认为你发送previous测试文件,可能是由于JMeter的数据附加到相同的结果文件的事实。
This might be due to Autoflush policy which flushes content of buffer only when buffer is reached. As you use a tear down thread group results are nit guaranteed to be fully written as test is not really finished. The fact that you think you are sending previous test file might be due to jmeter appending data to the same results file.
所以:
1 /保证让您移动或删除发送一次文件
1/ ensure you move or delete the file once sent
2 /编辑user.properties并添加:
2/ Edit user.properties and add:
jmeter.save.saveservice.autoflush = TRUE
这将使JMeter的写入立即AFTE执行它提交任何样本结果。
jmeter.save.saveservice.autoflush=true This will make jmeter write to file any sample result immediately afte it is executed.
这篇关于JMeter的 - 邮件获取previous结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!