API TESTING Questions and Answers

Difference API and Unit Testing?

                       API testing                         UNIT testing
  • API is owned by QA team
  • Unit testing is owned by development team
  • API is mostly black box testing
  • Unit testing is white box testing
  • Full functionality of the system is considered in API testing as it will be used by the end-user (external developers who will use your API )
  • Unit testing is done to verify whether each unit in isolation performs as expected or not
  • API test are often run after the build is ready and authors do not have access to the source code
  • For each of their module the developers are expected to build unit tests for each of their code modules and have to ensure that each module pass unit test before the code is included in a build