Jen_ReadyAPI
4 years agoOccasional Contributor
Newbie Question: How to create a test case/step where a "no record found" is a pass in ReadyAPI?
Hi, I am new to API, HTML and ReadyAPI - so pls understand if my question may seem daft of if I have expressed myself incorrectly. My question is how do I create a test case/step where a "no rec...
- 4 years agoExcuse me if my understanding is not what you conveyed.
I believe that you have a service with a query parameter which takes a value and validating response.
- I think you have a test case with multiple tests with varying values which is fine. This is one of way doing it. However, need to have an appropriate assertion so that next time when the tests are run, you will come to know which case failed / passed
- Another way is data driven approach. Please check the below video how to do the same. If you are going to adopt this, then you can also pass the expected value from the same data file.
https://www.youtube.com/watch?v=nWXtt8hgp8I