scala - 我是 Gatling Tool 的新手。我们如何在 gatling 工具中进行协调和参数化?
问题描述
我是 Gatling Tool 的新手。我们如何在 gatling 工具中进行协调和参数化。如何在 gattle 中读取 csv 数据。
解决方案
在使用不同用户登录的示例中:
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}")
)
推荐阅读
- arrays - 在 Powershell 中正确使用 ForEach -parallel?
- c++ - 如何在卡萨布兰卡将 std::list 解析为 json::value?
- c++ - std::sort 多态类型未按预期排序
- c++ - 做while循环..现在:无限,目标:不是无限(询问直到循环)
- python - 为什么 Tensorflow 2.4.1 找不到我的 GPU?
- excel - 如何刮桌子?
- python - 如何在python中返回字符串的中间字符?
- r - 用表中的值字符串汇总多个列
- python - 为什么谷歌colab与大矩阵崩溃?
- .net-core - 从 cli 发布项目