Seeing that karate.toJavaFile expects a path, is there any way I can modify a base file before providing it as parameter to the method?
For example, I have this xml in a file:
<object> <id>123</id> <name>Bob</name> </object>
Thing is, I need to replace the 123 in the id field with a real id which I get from another GET request before providing this file to the karate.toJavaFile. I'm unfortunately bounded by a Java method.
I tried reading the xml into a variable then modifying its content with * set, but that doesn't help since I need to provide a path and not a variable to karate.toJavaFile.