0
我打算使用Gatling進行功能測試。我遵循這個鏈接:https://gatling.io/docs/2.3/general/functional_specs/ 當我擴展'GatlingHttpFunSpec'時,有人能給我一個如何訪問會話變量的例子嗎?Gatling功能測試
我打算使用Gatling進行功能測試。我遵循這個鏈接:https://gatling.io/docs/2.3/general/functional_specs/ 當我擴展'GatlingHttpFunSpec'時,有人能給我一個如何訪問會話變量的例子嗎?Gatling功能測試
如果我知道你想什麼,你可能需要這樣:
.check(jsonPath("$.token") saveAs "token"))
.exec(session => {
println(session.get("token").as[String])
session
})