Forum Discussion
ChrisAdams
2 years agoChampion Level 3
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"
- readytester2 years agoNew 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?
Related Content
- 7 years ago
Recent Discussions
- 2 days ago