First I save the session attribute named “profile”
.check(jsonPath("$.result").ofType[Map[String,Any]].find.saveAs(“profile”))
Then trying to set another session attribute “foo”
.exec(session => {
session.set(“foo”, “blablabla”)
session
})
Then I try to get this “foo”
.exec(session => {
println(session.get(“foo”))
session
})
But in fact I am getting the “profile” attribute
Besides, even when I do:
.exec(session => {
println(session.get(“doesnotexist”))
session
})
I get the same “profile” attribute