API Tester - considerations
-
Understand API requirements
-
What is the workflow of the application; and where is the API in that flow?
-
Specify the API output status
-
The code follows global standard classes
-
The code is specified in the requirement.
-
Focus on small functional APIs
-
You should avoid testing more than one API in a test case.
- It is painful if errors occur because you will have to debug the data flow generated by API in a sequence.
- Organize API endpoints
-
Leverage automation capability for API testing
-
Automate as much as you can *(if applies)
-
Choose a suitable automation tool
-
Does the tool support testing the API/Web service types that your AUT (Application Under Test) is using?
-
Does the tool support the authorization methods that your AUT services require?
-
Choose suitable verification methods
-
Compare the whole response body content with the expected information
- Compare each attribute value of the response
- Compare matching with regular expression
Last update:
2022-07-31