ElFileBody

Hello,

I am an Intern and I have been asked to run performance tests on existing web apps. So far it has been going well, I have however ran into a problem with this piece of code:

.exec(http(“aSubmitDetails”)
.post("/PersonalDetails/Index")
.headers(headers_9)
.body(ElFileBody(“personalDetailSingleOption.json”)).asJSON)

the result in the logback is this:

compositeByteData={"__RequestVerificationToken":“8YTZD6827HEg0bLLB1nRETmqijQoD4ODoJMKHThC9EsfK0yYix0KFZ7oJdsxp8oevXLSvVAdTN6BdcZ9WkILmBSdTkPCOazh7nlmEr-L7t4JsPC90”,
“BenefitModel.Elections.SelectedPlan”:“0”}

This is not working however. It works fine from the recorder where the body looks like this:

params=
__RequestVerificationToken: 8YTZD6827HEg0bLLB1nRETmqijQoD4ODoJMKHThC9EsfK0yYix0KFZ7oJdsxp8oevXLSvVAdTN6BdcZ9WkILmBSdTkPCOazh7nlmEr-BenefitModel.Elections.SelectedPlan: 0

but for whatever reason, when trying to tidy up the code with ElFileBody, something is disliked.

Any help would be appreciated.

Cheers.

params=
__RequestVerificationToken: 8YTZD6827HEg0bLLB1nRETmqijQoD4ODoJMKHThC9EsfK0yYix0KFZ7oJdsxp8oevXLSvVAdTN6BdcZ9WkILmBSdTkPCOazh7nlmEr-L7t4JsPC90
BenefitModel.Elections.SelectedPlan: 0

here is my template:

{
“__RequestVerificationToken”:"${token}",
“BenefitModel.Elections.SelectedPlan”:“0”,
“BenefitModel.Elections.WasTobaccoSelected”:“True”
}