rohitvarsha12
8 years agoContributor
Testing negative scenarios
Hello,
I have come across scenario, where I need to test negative scenarios for API. For my API testing i need to test for scenarios where in some cases API gives response with error code(Which I am able to validate and test) but some are invalid request format.
If i need to test these all scenarios for 1 API where some are returning API response with error code and some are invalid request.
1. How can i put assertions with Or Condition
2. How to assert if API has invalid request