JMeter性能插件报告始终显示成功

时间:2015-07-22 13:25:18

标签: jmeter jenkins-plugins performance-testing

我有以下Jmeter测试,其中包含错误。请参阅下面的输出。

我在我的Jenkins项目中的" Publish Performance测试结果riport"中设置了错误阈值,但在构建之后,它是成功的。

test:
   [jmeter] Executing test plan: C:\Program Files (x86)\Jenkins\workspace\ANT\scripts\MyFolder\MyJmeterTest.jmx ==> C:\Program Files (x86)\Jenkins\workspace\ANT\results\129\jtl\MyFolder\MyJmeterTest.jtl
   [jmeter] Creating summariser <summary>
   [jmeter] Created the tree successfully using C:\Program Files (x86)\Jenkins\workspace\ANT\scripts\MyFolder\MyJmeterTest.jmx
   [jmeter] Starting the test @ Wed Jul 22 15:03:23 CEST 2015 (1437570203875)
   [jmeter] Waiting for possible shutdown message on port 4445
   [jmeter] summary =      2 in     1s =    3,0/s Avg:   139 Min:   103 Max:   175 Err:     1 (50,00%)
   [jmeter] Tidying up ...    @ Wed Jul 22 15:03:24 CEST 2015 (1437570204624)
   [jmeter] ... end of run

report:
     [xslt] Transforming into C:\Program Files (x86)\Jenkins\workspace\ANT\results\129\html
     [xslt] Processing C:\Program Files (x86)\Jenkins\workspace\ANT\results\129\jtl\MyFolder\MyJmeterTest.jtl to C:\Program Files (x86)\Jenkins\workspace\ANT\results\129\html\MyFolder\MyJmeterTest.html
     [xslt] Loading stylesheet C:\Program Files (x86)\Jenkins\workspace\ANT\apache-jmeter-2.13\extras\jmeter-results-detail-report_21.xsl
     [copy] Copying 1 file to C:\Program Files (x86)\Jenkins\workspace\ANT\results\html
     [copy] Copying 1 file to C:\Program Files (x86)\Jenkins\workspace\ANT\results\html

all:

BUILD SUCCESSFUL
Total time: 7 seconds
Performance: Percentage of errors greater or equal than 5% sets the build as unstable
Performance: Percentage of errors greater or equal than 10% sets the build as failure



Performance: Recording JMeter reports '**/*.jtl'
Performance: Parsing JMeter report file 'C:\Program Files (x86)\Jenkins\jobs\ANT\builds\129\performance-reports\JMeter\MYJmeterTest.jtl'.
Finished: SUCCESS

如果我的Jmeter测试中有错误,我想收到电子邮件通知,但我不知道怎么做,因为Build没有设置为不稳定或失败。

任何人都可以帮助我吗?

0 个答案:

没有答案