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

来源:互联网 发布:linux 安装hadoop2.7 编辑:程序博客网 时间:2024/06/03 15:25

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

原创粉丝点击