Feeder values not stored in Session

Hi guys.

Been trying to make this work for a while now. I have read the documentation, but I guess there is something I just don´t grasp.

Problem is that Customer ID is always null.

protected ScenarioBuilder abcScenario = scenario("ABC")
            .feed(jdbcFeeder(url(), "user", "pass", "select CUSTOMERID as CUSTOMER_ID, from test_data ").shuffle().circular())
            .exec(session -> {
                            System.out.println("Customer ID: " + session.get("#{CUSTOMER_ID}"));
                            return session;
            });

You’re confusing Gatling Expression Language and Gatling Session API.

It should be session.get("CUSTOMER_ID").

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.