Different Types of API Testing

  1. Unit Testing: Testing the smallest unit of the code means testing a method (what should be the input and extracted output).

    Framework: Junit, Mockito

  2. Functional Testing: Testing a particular feature or complete flow of the feature ( flow means suppose one method is calling another method and that method is calling another method)

    Framework: TestNG, Selenium.

  3. Integration Testing: Testing the end to end sending a request and getting the response here we involve all the components

    It can be done by postman, selenium, Ui

  4. Regression Testing: when we add new feature it will not break the other functions.

    uses testNg, selenium

  5. Acceptance Testing: Business requirement will not fail it should pass

  6. Load Testing: we will put the stale traffic, and we get know the heap area, Gc, memory leaks

  7. Stress Testing: what if the traffic increase putting the peak traffic what means

    Apache Jmeter.

  8. Security Testing:

    owasp

    burp

    Black ducks which check any vulnerability in the library