I have a an endpoint that takes a specifically formatted XML. I'm trying to use a similar function as circular on the XML file for the feed. I'm able to do this with a CSV file, but I can't seem to get this with an XML file. Is this even possible to do?
I've also read this: https://gatling.io/docs/3.0/session/feeder/?highlight=feeder#file-based-feeders
I'm also fairly new at gatling and have only written one load test thus far.
Here's the sample code I have:
object ProcessXml {
val createProcessHttp = http("Process XML")
.post("/myEndpointPath")
.body(RawFileBody("data/myXml.xml"))
.asXML
.check(status is 200)
val createProcessShipment = scenario("Process Shipment XML")
.feed(RawFileBody("data/myXml.xml).circular) // feed is empty after first user
.exec(createProcessHttp)
}
For some reason, the .feed() argument for csv works (csv(Environment.createResponseFeedCsv).circular; where createResponseFeedCsv is defined in my Environment file under utils).
Any help on this issue would be greatly appreciated. Thanks in advance.