首页 > 解决方案 > 我是 Gatling Tool 的新手。我们如何在 gatling 工具中进行协调和参数化?

问题描述

我是 Gatling Tool 的新手。我们如何在 gatling 工具中进行协调和参数化。如何在 gattle 中读取 csv 数据。

标签: scalagatling

解决方案


在使用不同用户登录的示例中:

scenario("JustLogin").feed(csv("users.csv"))
.exec(http("Login").post("https://app.under.test.com/login")
  .header("Referer", "https://app.under.test.com/login")
  .formParam("username", "${Username}")
  .formParam("password", "${Password}")
)

推荐阅读