The following list covers a few essential aspects of test case preparation for API testing, as the test cases on API testing depend on their outputs:
- Assert a return value based on different input conditions and a combination of inputs.
- Assert the behavior of the API when there is no return value. Check for return codes.
- Assert the events and triggers of an API if the underlying/target API creates subsequent events.
- Assert not only the API results in case of update data structure but validate the effect on the system that it has updated.
- Assert by accessing impacted resources when the API is involved in modifying specific resources.