• Author
    Posts
  • #12463
    @paul-madden

    How does a tester start testing an API? Assuming there is no GUI, how do you approach it?

    #12481
    @bigyellow

    I 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.

    #14504
    @jarilaakso

    Maaret Pyhäjärvi wrote about her experiences quite well here https://dojo.ministryoftesting.com/lessons/exploratory-testing-an-api.

    #14694
    @groza-alin88

    Hi 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,
    Alin

    #17260
    @archana

    Maaret 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

    #17319
    @tassaweramin

    @groza-alin88 gave a very useful insight how to approach an API testing.
    Hope @paul-madden it will help you going forward.

    #17365
    @emmablisa

    <b style=”color: #222222; font-family: arial, sans-serif;”>API testing</b><span style=”color: #222222; font-family: arial, sans-serif;”> is a type of software </span><b style=”color: #222222; font-family: arial, sans-serif;”>testing</b><span style=”color: #222222; font-family: arial, sans-serif;”> that involves </span><b style=”color: #222222; font-family: arial, sans-serif;”>testing</b><span style=”color: #222222; font-family: arial, sans-serif;”> application programming interfaces (</span><b style=”color: #222222; font-family: arial, sans-serif;”>APIs</b><span style=”color: #222222; font-family: arial, sans-serif;”>) directly and as part of integration </span><b style=”color: #222222; font-family: arial, sans-serif;”>testing</b><span style=”color: #222222; font-family: arial, sans-serif;”> to determine if they meet expectations for functionality, reliability, performance, and security. Since </span><b style=”color: #222222; font-family: arial, sans-serif;”>APIs</b><span style=”color: #222222; font-family: arial, sans-serif;”> lack a GUI, </span><b style=”color: #222222; font-family: arial, sans-serif;”>API testing</b><span style=”color: #222222; font-family: arial, sans-serif;”> is performed at the message layer.</span>

    #17366
    @tassaweramin

    @emmablisa please avoid pasting your text from office documents into the content field.

    #17708
    @abhilashawaghm11

    API 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]

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.