Forum Discussion
- ChrisAdamsChampion Level 2
Hi,
ReadyAPI does not automatically class a 404 or 500 as a fail, you need to tell ReadyAPI what to do.
You need to add an assertion to each service call. There are various assertions you can apply to a test step. E.g. check for specific content. There are also assertions for status codes; Invalid Status Codes and Valid Status Codes.
I usually do this...
In the valid service codes assertion, I put "200".
In the invalid service codes assertion, I put "404, 500"
- readytesterNew Contributor
Hi ChrisAdams, yes I have eventually discovered that but I have more than 100+ tests - is there any way to apply the same assertion to all of them?
- ChrisAdamsChampion Level 2Hi, not that I’m aware of.
Related Content
- 7 years ago
Recent Discussions
- 5 days ago
- 8 days ago
- 19 days ago