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

2023-05-17,,

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

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

下载本文的Word格式文档,以方便收藏与打印。