我进行了提升测试,每次在 Gatling 中都会增加用户数量。 对于用户的注射,我使用这些方法:
setUp(
Test.inject(incrementConcurrentUsers(1)
.times(4)
.eachLevelLasting(20)
.separatedByRampsLasting(1)
.startingFrom(4)
))
因此,根据此屏幕截图,对于一次模拟,我需要为每个用户在特定时间内的更改提供 4 个额外报告。 有没有什么办法可以根据用户的变化为每一层生成单独的报告?
答案 0 :(得分:1)
gatling 本身没有这样的功能。 不过,您可以使用您的 Simulation.log 并通过 bash 和 awk 对其进行处理,以生成每个级别的 Simulation.log,然后通过 https://github.com/nuxeo/gatling-report
创建报告