Ready API data driven testing
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022
10:12 AM
05-18-2022
10:12 AM
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 tried to use the same file as txt file, now struggling to iterate json formatted data from txt file. thanks in advance!
Solved! Go to Solution.
Labels:
3 REPLIES 3
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022
11:55 AM
05-18-2022
11:55 AM
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
Karel@apimate.eu
https://apimate.eu
https://apimate.eu
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2022
04:04 AM
05-20-2022
04:04 AM
Hey @zokirsalomov
KarelHusa has provided a good option, which i've used a number of times. I've also used many others depending on the technical and business requirements of the system i'm testing.
Have a look at the following and have a go at some of the tutorials....they will help guide you on how to go about setting things up.
https://support.smartbear.com/readyapi/docs/testing/data-driven/concepts.html
Once you start, come back with any questions and we'll sort the answers out for you.
One tip....if you're thinking about using .xls/.xlsx as a datasource, you might want to use .csvs instead. They allow the same data manipulation, but without the problems that can arise from using .xls/.xlsx
Cheers,
Rich
KarelHusa has provided a good option, which i've used a number of times. I've also used many others depending on the technical and business requirements of the system i'm testing.
Have a look at the following and have a go at some of the tutorials....they will help guide you on how to go about setting things up.
https://support.smartbear.com/readyapi/docs/testing/data-driven/concepts.html
Once you start, come back with any questions and we'll sort the answers out for you.
One tip....if you're thinking about using .xls/.xlsx as a datasource, you might want to use .csvs instead. They allow the same data manipulation, but without the problems that can arise from using .xls/.xlsx
Cheers,
Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2022
03:28 PM
05-26-2022
03:28 PM
Solved my issue, thank you!
