
5 个回答
Hello, The key factor you need to check while doing API testing, 1. callout to external application 2. authentication and authorization3. output for your request JSON or XML or other types of data.4. response trafic.5. call to other API function, here some more other points about API Testing: Test Cases for API Testing: Return value based on input condition: it is relatively easy to test, as input can be defined and results can be authenticatedDoes not return anything: When there is no return value, behavior of API on the system to be checkedTrigger some other API/event/interrupt: If output of an API triggers some event or interrupt, then those events and interrupt listeners should be trackedUpdate data structure: Updating data structure will have some outcome or effect on the system, and that should be authenticatedModify certain resources: If API call modifies some resources then it should be validated by accessing respective resourcesApproach of API Testing: Following points helps the user to do API Testing approach:1.Understanding the functionality of the API program and clearly define the scope of the program2.Apply testing techniques such as equivalence classes, boundary value analysis and error guessing and write test cases for the API3.Input Parameters for the API need to be planned and defined appropriately4.Execute the test cases and compare expected and actual results.Hope this will clear. Mark Best ANSWER fi its clear. Thankskarthik