温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

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

发布时间:2020-06-19 17:43:39 来源:网络 阅读:1165 作者:niedongri 栏目:软件技术

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


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI