sukanya
7 years agoContributor
How to read JSON file using FileWait
Hi, I have used the below code to read the Json file using File Wait step in Ready API: uploaded .json file in File Wait Step def jsonfile = context.expand( '${File Wait#fileContent}' ) d...
- 7 years ago
Is your property expansion correct? You can use the right click menu item Get Data to ensure you have the correct value.
Also you could add the following line between your two line to help see what is going on.
def jsonfile = context.expand( '${File Wait#fileContent}' ) log.info(jsonfile) def baselineResp = new JsonSlurper().parseText(jsonfile)