您的位置:首页 > 其它

ant_Jmeter持续集成测试报告优化之添加throughput显示

2017-06-16 11:52 381 查看
上篇文章中的build文件生成的测试报告数据显示比较标准,如果想把thoughput也显示在报告里面,只需要在build文件中加入下面的脚本即可
<!--以下为增加throughput项目显示=(请求总字节数)/(total time)
<xsl:variable name="nodeKB">
<xsl:call-template name="Throughput">
<xsl:with-param name="nodes" select="/testResults/*/@t" />
<xsl:with-param name="count" select="sum(/testResults/*/@by) div 1024" />
</xsl:call-template>
</xsl:variable>
<!--增加throughput结束-->
<!--以下为增加TPS项目显示=(总请求数)/(total time)
<xsl:variable name="nodeThroughput">
<xsl:call-template name="Throughput">
<xsl:with-param name="nodes" select="/testResults/*/@t" />
<xsl:with-param name="count" select="$allCount" />
</xsl:call-template>
</xsl:variable>
<!--增加TPS结束-->
add 90%line

很简单吧,加上去后自己去调试一下看看效果吧。有问题加群交流QQ群:610845268
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息