zoukankan      html  css  js  c++  java
  • Jmeter Dash Report(HTML Report)删除Hits Per Second graph的方法

    通过命令行 Non GUI的方式执行jmeter的jmx脚本可以生成HTML Report(Dash Report).

    这个report默认自带了很多种图表报告,比如statistics,Over time等等,但并不是所有报告我们都要,比如这个Hits Per Second对我们而言就没卵用。

    jmeter

    1)通过注释掉reportergenerator.properties里面相关语句的方法。

    这种方法并没有什么用,当你打开生成的HTML report的时候,“Hits Per Second”在左边列表和中间依然存在,只是里面没有任何数据。这样改简直是越改越烂,打开一看是空的,不奇怪么?

    2)这时我们做进一步修改,找到Throughput.html.fmkr这个文件,它的路径是:bin eport-templatecontentpages。
    如下图,把“Hits Per Second”注释掉。

    呵呵,你以为这就行了吗?太天真了,虽然在html report的左边栏看不到“Hits Per Second”了,但是这report里面还是有“Hits Per Second”。真是烦人的小妖精。

    3) 继续改。还是Throughput.html.fmkr这个文件,找到hitsPerSecond的DIV,加上 style="display:none"

    命令行执行jmx,打开html report,可见“Hits Per Second”终于完全消失了.

    注意:第一步可以不要。

  • 相关阅读:
    codevs 1450 xth 的旅行
    Loj #6287 诗歌
    Codeforces 323C Two permutations
    Spoj MKTHNUM
    [TJOI2015]弦论
    Spoj SUBLEX
    bzoj 4338: BJOI2015 糖果
    bzoj 3462: DZY Loves Math II
    bzoj 2843: 极地旅行社
    清北学堂模拟赛d4t5 b
  • 原文地址:https://www.cnblogs.com/majestyking/p/10666601.html
Copyright © 2011-2022 走看看