val header_with_secondCookie = Map("Cookie" -> "firstCookie=01; secondCookie=${secondCookie}")
val postLoginAndPass = exec(Maybe there is some way to add second cookie to session...?
http("request_1").post(uri2 + "/json/authenticate").headers(header_with_default_cookie)
.body(ElFileBody("authBody.json")).asJSON
.check(jsonPath("$.tokenId").saveAs("secondCookie"))
)
val schouldGetWithNewSecondCookie =
exec(
http("request_2")
.get(uri2 + "/user")
.headers(header_with_secondCookie)
)
val scn = scenario("BasicSimulation")
.exec(http("request_1").get("/"))
.exec { session => println("My session before: " + session)
session
}
.exec(addCookie(Cookie("name", "value")))
.exec { session => println("My session ater: " + session)
session
}--
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.
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<scala.version>2.11.7</scala.version>
<encoding>UTF-8</encoding>
<gatling.version>2.2.0-M3</gatling.version>
<scala-maven-plugin.version>3.2.2</scala-maven-plugin.version>
</properties>
gatling.http.cookies -> CookieJar(Map(CookieKey(amlbcookie,my.domain.com,/) -> StoredCookie(amlbcookie=01; domain=my.domain.com; path=/,false,false,1446644285856))))