Can we parameterize the request file name to the Read method in Karate?

Please ensure the variable is set:

* def varXmlFile="some-xml-file.xml"
Given request read(varXmlFile)

Or just use normally:

Given request read('some-xml-file.xml')

Leave a Comment