Home › Forums › Software Testing Discussions › How do you approach API testing?
- This topic has 7 replies, 7 voices, and was last updated 7 years, 1 month ago by sneha shinde.
-
AuthorPosts
-
June 20, 2016 at 8:54 am #12463
How does a tester start testing an API? Assuming there is no GUI, how do you approach it?
June 20, 2016 at 7:46 pm #12481I test many in-house API which are not well documented. Talk to developer, this is the only way. Then use Unit test framework, or some tools to implement the test, and try to automated the test.
December 1, 2016 at 8:44 pm #14504Maaret Pyhäjärvi wrote about her experiences quite well here https://dojo.ministryoftesting.com/lessons/exploratory-testing-an-api.
December 18, 2016 at 7:44 pm #14694Hi Paul,
If a tester has to make short / basic validations for calls or to perform exploratory testing, then the REST clients as browser add-ons are a good solution. It is also a good approach for those who are new to API testing.
For a framework with test suites and a CI integration system you have to use specific tools like SoapUI or unit test frameworks (e.g. jUnit for Java).
To know what to test, you have to read the documentation, understand the workflows and automate the tests. If there is no documentation, you must talk to developers or architect to decide what and how to test the application.
Regards,
AlinAugust 30, 2017 at 2:08 pm #17260Maaret Pyhäjärvi wrote about her experiences quite well here https://dojo.ministryoftesting.com/lessons/exploratory-testing-an-api. Like1
Very nice article. Thanks for sharing
September 5, 2017 at 1:45 pm #17319@groza-alin88 gave a very useful insight how to approach an API testing.
Hope @paul-madden it will help you going forward.September 11, 2017 at 11:36 am #17366@emmablisa please avoid pasting your text from office documents into the content field.
October 9, 2017 at 10:10 am #17708API stands for Application Programming Interface.
It triggers communication and information exchange between two different software systems. A software framework implementing an API consists of sub-routines/functions which can be implemented by some other software system.
API testing approach:
Here are a few pointers to API testing:
– Getting to know the functionality of a particular API program and defining the scope of the program in a clear manner.
– Make use of testing techniques such as boundary value analysis, equivalence classes and error guessing along with writing test cases for the API.
– Input parameters are required to be planned and defined accurately.
– Do a comparison of the actual and expected results.
Bug types detected in
Inappropriate warning/errors to caller
Multi-threading related issues
Flags that are unused
Security concerned issues
Performance related issues such as API response time is extremely high
Duplicate and missing functionality
[commercial content removed /mod]
-
AuthorPosts
- You must be logged in to reply to this topic.