The check succeeded, so I guess it works.
It'll show the captured value..exec((s:Session) => println(s.getAttribute("myKey")); s)
Sure, that's just a more simple way of writing the same thing.The problem is exactly what you suspected: there's some special characters in your expression that have a regex meaning.You have to escape them:headerRegex("Set-cookie", (session: Session) => "aisakosSegs=" + session.getTypedAttribute[String]("SEGMENTS").replace("+", "\\+") + ".*")))
Cheers,Steph
PS: When will you stick to simple things?! <328.png>
--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
.check(header("Location").saveAs("authorizeRedirect"))
--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gatling/38dd2b00-c01b-4dee-be9f-5b309584eb38%40googlegroups.com.