Missing cookie

Hello

I’ve build simple JSF+Primefaces website. Test case looks like this:

  1. Load web site (GET)
  2. Press button which stores value in JSF’s flash (POST)
  3. Displays value from JSF’s flash. (GET)

Works fine in browser, not so fine with Gatling. Value from flash disappears. After headers check I found that POST request creates cookie which is not passed in last GET header (step 3).
At the same time cookie created by GET in step 1 works fine through all the test steps.

Why session cookie (JSESSIONID) is stored OK, but flash cookie (csfcfc) is not? Is it bug, or am I doing something wrong?

Below I attached: my scenario, browser headers step 2, browser headers step 3 (works fine), Gatling headers step 2, Gatling headers step 3 (cookie missed).

Any help appreciated. Thank you.

MM

Could you try upgrading to current snapshot please? IIRC, I fixed a bug on cookies some time ago.
https://oss.sonatype.org/content/repositories/snapshots/io/gatling/highcharts/gatling-charts-highcharts/2.0.0-SNAPSHOT

Beware, the inject DSL have changed a bit. ex ramp(5 users) becomes rampUsers(5)

Two questions about latest snapshot:

  1. How do I configure proxy?
  2. How do I set up pom.xml to use maven?

Two questions about latest snapshot:
1. How do I configure proxy?

Right, that changed too.

.proxy(Proxy(host, port).httpsPort(port2).credentials(username, password))

httpsPort and credentials are optional

2. How do I set up pom.xml to use maven?

<repository>
<id>sonatype-snapshots</id>
<name>Sonatype snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots&lt;/url&gt;
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>

Indeed, bug does not appear any more. I can see my flash value in last GET response.
Many thanks for help.

MM

That’s great news!
Thanks for your feedback