Hi all,
my scenarios heavily rely on the Feeders using CSV. Is there global way for the chains after feeder not to share the same session object?
I ended up cleaning “gatling.http.cookies” to avoid collisions of tests against the same JSESSIONID on the backend, i.e :
val deliveryCostList = csv(“delivery_cost_details.csv”).queue
scn =
scenario(“Delivery Cost checks”)
.repeat(deliveryCostList.data.length) {
feed(deliveryCostList)
.exec( session => session.remove(“gatling.http.cookies”))
.exec(
http(“Add a new address for ‘${product_code}’ in ‘${storeId}’”)
.post("${storeId}/customers/current/addresses")
.param(“email”, “${email}”)
.param(“firstName”, “${first_name}”)
.param(“lastName”, “${last_name}”)
.param(“line1”, “${line1}”)
.param(“town”, “${town}”)
.param(“postcode”, “${postal_code}”)
.param(“countryIsoCode”, “${country_iso}”)
.param(“state”, “${state_iso}”)
.param(“phoneNumber”, “${phone_number}”)
.check(status is 200)
.check(jsonPath("$.id").saveAs(“addressId”))
)
.exec(
http(“Set delivery mode for ‘${product_code}’ in ‘${storeId}’”)
.put("${storeId}/cart/deliverymodes/${delivery_mode}")
.check(status is 200)
.check(jsonPath("$.deliveryCost.value").is("${delivery_cost}"))
)
thank you for the help!
regards,
Denys