Hi,
i tried to run exec in foreach like this:
val scn = scenario(“MyScenario”)
.exec(http(“AAA”)
…
.exec{session =>
var cblSiteIDValues = session(“cblSiteIDValues”).as[Seq[String]]
var index = 0
cblSiteIDValues.foreach(cblSiteIDValue => {
println(cblSiteIDValue)
exec(http(“LoadUser”)
.get("""/User.aspx""")
.queryParam(""“MyParam”"", cblSiteIDValue)
)
}
index = index + 1
})
session
}
.exec(http(“BBB”)
…
setUp(scn.inject(atOnceUsers(1))).protocols(httpProtocol)
But it doesn’t run http(“LoadUser”), how can i do this?
Thanks in advance