You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gat...@googlegroups.com
hi,
The user reaches my application via a hand-off from another application, which sets a certain cookie. I want to run the gatling tests starting from my application (after the hand-off).
MLN
Stéphane Landelle
unread,
Jan 9, 2013, 8:06:16 AM1/9/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gat...@googlegroups.com
OK, makes sense
Currently, you'll have to hack and manually initialize the CookieStore that's stored in the user Session.
val customCookie = new Cookie("TODOdomain", "TODOname", "TODOvalue", "TODOpath", 100000000, false)
val cookieStore = CookieStore(new URI("TODOuri"), List(customCookie))
session.set("gatling.http.cookies", cookieStore)
})
You'll probably have to first use a Feeder in order to populate the TODOXXX values into the session, and then use session.getAttribute in order to retrieve them.
I guess it could be interesting to have a built-in for populating cookies... I will open an issue for 2.0.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gat...@googlegroups.com
But if you do that, your "manual" cookie will only be sent on the request it's declared. Unless the server returns it in the response, it won't make it into the CookieStore, and won't be sent with the next requests.