How to Pass FindAll.saveAS to String body part

Hi All,

How to pass vector (String) to comma separated Strong in body.

.check(jsonPath("$..couponCode").findAll.saveAs("C_CouponCode")). --> Saving vector list like C_CouponCode -> Vector(C5RBXGHB, DUITGK2E, JMQMXHRV, EW0EQFVT)

I want to pass on post req body string

body(StringBody("""{"masId":"100","storeId":"001","transactionId":11,"tId":"11","billAmount":1,"couponCodes":"C5RBXGHB, DUITGK2E, JMQMXHRV, EW0EQFVT)"}

Help me.

Gatling 3

Hi @sameer93,

Welcome aboard!

I think you will be interested in transforming documentation.

Cheers!

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