I’m new to Gatling and Scala and this time facing the following challenge.
I have a low-level action (function that returns HttpRequestBuilder) which I call twice in my scenario. The first time all works OK, but the second time it seems that when following a redirection the JSESSIONID cookie is not sent and the virtual is effectively logged out hence the test fails.
Here is the log of the first (successful) call. Some details have been removed:
18:17:35.127 [DEBUG] i.g.h.e.t.HttpTxExecutor - Sending request=Add Products to Basket uri=https://mywebsite.com/productPage.html: scenario=My Simulation, userId=1
JSESSIONID=2b-0~D70931583B864103095D98B840D60423, path=/, secure, HTTPOnly