gpt4 book ai didi

Gatling 报告描述定制

转载 作者:行者123 更新时间:2023-12-01 11:27:02 29 4
gpt4 key购买 nike

Gatling 报告上唯一的全局自定义文本是模拟类名称。它出现在报告的右上角。

如何在不更改 Simulation 类的名称的情况下放置一些自定义消息(简短)?

最佳答案

据我所知,有 3 种方法可以将一些自定义消息添加到 Gatling 报告中

  • 运行说明 里面的参数 gatling.conf 文件,它显示在报告的顶部(在报告时间和持续时间旁边)
    gatling {
    core {
    runDescription = "Test description of report"
    }
    }

  • enter image description here
  • 场景名称 - 测试代码中的场景参数,显示在报告之一(模拟中的事件用户)
    scenario("Scenario name")
    .exec(http("Action name").get("http://localhost"))

  • enter image description here
  • 操作名称 - 测试代码中的 http 参数,显示在 统计 table
    scenario("Scenario name")
    .exec(http("Action name").get("http://localhost"))

  • enter image description here

    关于Gatling 报告描述定制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36458585/

    29 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com