Hi,
I’m making many HTTP request with JSON Payload and I’m reading one file for every single request to get JSON Payload as below.
postPayload1 = val postPayload = ElFileBody(“Test_case1.json”)
val TC1 = feed(accountNumberFeeder1)
.exec(http(testCase1).post(appendPathToUrl).headers(common_header).body(postPayload).asJSON
.check(status.is(200)
)
But, it becomes so many JSON files inside my resources directory now. So can I merge all my JSON together in one file as below.
{“testCase1”:{
“activationSource”: “HH”,
“accountStatus”: null,
}
}
{“testCase2”:{
“activationSource”: “HH”,
“accountStatus”: null,
}
}
and access it with my keys “testCase1”, “testCase2” etc ?
postPayload = val postPayload = ElFileBody(“Test_case.json”)