Gatling 报告描述定制

aho*_*b7x 4 gatling

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

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

rka*_*zyk 9

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

  1. gatling.conf文件中运行 description参数,它显示在报告的顶部(在报告时间和持续时间旁边)

    gatling {
      core {
        runDescription = "Test description of report"
      }
    }  
    
    Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

  1. 场景名称- 测试代码中场景的参数,显示在报告之一(模拟中的活动用户)

    scenario("Scenario name")
      .exec(http("Action name").get("http://localhost"))
    
    Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

  1. 操作名称- 测试代码中的 http 参数,显示在统计表

    scenario("Scenario name")
      .exec(http("Action name").get("http://localhost"))
    
    Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明