I have a question on global variables - i have created a number of simulation and chained them together running them in the sample below
val scn = scenario("RecordedSimulation").exec(Test1.Launcher,Test2.launcher)
the simulation are defined as objects like:
object Test1 {
val Launcher = exec(http(“Launch Site”)
.get("/")
.headers(headers_1)
.check(css("#__VIEWSTATE",“value”).saveAs(“ViewState”)))
}
object Test 2
val Launcher = exec)http(“launch site”)
.formParam("__VIEWSTATE", "${ViewState}")
}
The problem i have is that im not able save the view state as a variable and use it in the second test - do you have an example of how i can do this please.