Forum Discussion

zokirsalomov's avatar
zokirsalomov
Occasional Contributor
3 years ago

Ready API data driven testing

Hi folks, I'm new to ReadyAPI and trying to automate Data Driven API testing with it. What is the best way to iterate through large data from json file? Data source test didn't accept json file and t...
  • KarelHusa's avatar
    3 years ago

    Hi zokirsalomov ,

    JSON data source uses another test step to read the JSON. For REST request getting a JSON response it is pretty straightforward.

     

    However, if we have a JSON in a file we have the following option:

    • use a File Wait test step to read the file
    • the JSON content will be available within fileContent property
    • make a JSON data source which takes File Wait as an input (see the TestCase bellow)

     

     

    This could be the Data Source configuration:

     

    I hope it helps.

     

    Best regards,

    Karel