Hi,
I have request body in a variable which has feeder variables. Is it possible to replace those variables with feeders ?
I need to replace $var1 with test1 from feeder.
For other logic which do some changes to the file before I actual use it as payload, so i can not call directly file with ElFileBody.
is it possible ?
test.xml
========
<?xml version="1.0" encoding="UTF-8"?>
<note>
<heading>$var1</heading>
</note>
users.csv
========
var1,var2
test1,test1
test2,test2
val feeder = csv("users.csv").random
exec {
session =>
var bodystr = getFile("test.xml")
session.set("bodystr", bodystr)
}
...
http
.body(StringBody("#{bodystr}")