上篇文章中的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