Forum Discussion

rajs2020's avatar
rajs2020
Frequent Contributor
4 years ago
Solved

ReadyAPI - Creating shared test data for a suite or project?

Does ReadyAPI have a way to create shared test data for a suite or a project?

In my example, I have one POST api whose body has 7 fields. There is one *suite* of negative tests in which each test calls the api with no/blank value for each field. All these tests have same test steps & same test data before the step which makes the main api call. I want to create shared test data for all these tests *and* make each iteration show up as a separate test in the transaction logs, i.e. as if it was a separate test. How do I do that?


Will the data source loop feature exactly match my needs or are there other ways to do it?
https://support.smartbear.com/readyapi/docs/testing/data-driven/tutorials/jtds/loop.html

 

  • Hi,

     

    Based on what you have described, I would say a data driven test using datasource and loop steps are the way to go.