Forum Discussion
hi Anton Egorov
I'm trying to use File Wait test step for reading a JSON request
But don't know if I'm usinf well.
What do you mean by "it reads its content to fileContent property"?
Thanks & regards
Anna
Hi Anna,
File Wait test step has custom property fileContent. After the step is executed, this property will have the content of your file. You can access it in the following test steps using property expansion string - "${File Wait#fileContent}", where "File Wait" is the name of your File Wait step. In most cases Get Data item in context menu will generate this string for you.
In case of JSON DataSource you should choose your File Wait step in Source Step and fileContent in Source property (see http://readyapi.smartbear.com/structure/sources/json/start). You should run the test case at least once to be able to select nodes from the actual file, using buttons next to Row Path and Column Paths fields.