Hi, I am attempting to get Cookie value saved from one exec( ), and use it from the next exec( ).
This is what I have for that:
scenario(“Homepage”)
.exec(http("/homepage")
.get("/")
.check(headerRegex(“Cookie”, “”“SSID=([^”]+)""").saveAs(“sid”)))
.exec(session => {println("*** " + session(“sid”).as[String] + " ***");session})
However it doesn’t seem to work. Could someone show an example on read in data from a cookie and pass in to the next exec?
Thanks