Maven jmeter负载测试后的电子邮件摘要报告
我希望能够在jmeter负载测试后通过电子邮件将摘要报告发送到'abc@gmail.com" 我正在从maven运行jmeter负载测试 这方面的任何线索都会非常有用 谢谢Maven jmeter负载测试后的电子邮件摘要报告,maven,email,jmeter,Maven,Email,Jmeter,我希望能够在jmeter负载测试后通过电子邮件将摘要报告发送到'abc@gmail.com" 我正在从maven运行jmeter负载测试 这方面的任何线索都会非常有用 谢谢 首先,您需要生成一个摘要报告。我建议将与一起使用,命令行如下所示: JMeterPluginsCMD.bat --generate-csv report.csv --input-jtl result.jtl --plugin-type SynthesisReport 您可以使用安装JMeter插件命令行工具进行临时使用,或
JMeterPluginsCMD.bat --generate-csv report.csv --input-jtl result.jtl --plugin-type SynthesisReport
您可以使用安装JMeter插件命令行工具进行临时使用,或通过以下方式添加它:
我添加了maven postman插件来发送电子邮件
<plugin>
<groupId>ch.fortysix</groupId>
<artifactId>maven-postman-plugin</artifactId>
<version>0.1.6</version>
<executions>
<execution>
<id>send a mail</id>
<phase>package</phase>
<goals>
<goal>send-mail</goal>
</goals>
<inherited>false</inherited>
<configuration>
<from>abc@abc.in</from>
<subject>Load test Results</subject>
<failonerror>true</failonerror>
<mailhost>mail.abc.com</mailhost>
<receivers>
<receiver>abc@abc.in</receiver>
</receivers>
<fileSets>
<fileSet>
<directory>${basedir}/target/jmeter/results</directory>
<includes>
<include>*.csv</include>
</includes>
</fileSet>
</fileSets>
</configuration>
</execution>
</executions>
</plugin>
福提西教堂
maven邮递员插件
0.1.6
寄信
包裹
寄信
错误的
abc@abc.in
负载测试结果
符合事实的
mail.abc.com
abc@abc.in
${basedir}/target/jmeter/results
*.csv
这对我有用 你费心搜索了吗?可能是@OldProgrammer的复制品我看过了。但是我没有看到任何可以附加index.html并发送电子邮件的地方。测试运行后,报告将保存在目标文件夹中。我希望能够通过电子邮件发送index.html文件。
<plugin>
<groupId>ch.fortysix</groupId>
<artifactId>maven-postman-plugin</artifactId>
<version>0.1.6</version>
<executions>
<execution>
<id>send a mail</id>
<phase>package</phase>
<goals>
<goal>send-mail</goal>
</goals>
<inherited>false</inherited>
<configuration>
<from>abc@abc.in</from>
<subject>Load test Results</subject>
<failonerror>true</failonerror>
<mailhost>mail.abc.com</mailhost>
<receivers>
<receiver>abc@abc.in</receiver>
</receivers>
<fileSets>
<fileSet>
<directory>${basedir}/target/jmeter/results</directory>
<includes>
<include>*.csv</include>
</includes>
</fileSet>
</fileSets>
</configuration>
</execution>
</executions>
</plugin>