Hi Stephane,
Thanks for the reply.
No, I am using only the .body(RawFileBody("??")).
Please find the detailed observation below with the code trace
1. Scenario 1 ( Without import io.gatling.core.body.RawFileBody ) - Substitution of session values not happening
object A {
// First call from where I get the dynamic values and correlate it in the xml file given in request-bodies/xml
.exec(http("A")
.post(url + "/B")
.headers(C)
.body(RawFileBody("request-bodies/xml"))
}
2. Scenario 2 ( With import io.gatling.core.body.RawFileBody ) ( rest of the code trace remains the same)
Result - Unable to trigger the second request and getting the error Can't cast of type class java.lang.String into class io.gatling.core.body.ResourceAndCachedBytes.
I hope this will be helpful Stephane.
Note: The substitution works fine with ElFilebody and StringBody but the server couldn't accept those format
Regards,
Aravind G