Number | Base of difference | API Testing | Unit Testing |
1 | Testing Type | When we say about the testing type of API it is a form of Black Box testing. | When we say about the testing type of Unit testing its a white box testing. |
2 | Scope of Testing | When we say about the API testing there is a wide scope of testing. | When we say about the scope in Unite testing there is a limited scope of testing . And here we can only test the basic functionality. |
3 | Performed after | When we say about the API testing it basically performed after the project completion during the test. | When we say about the Unit testing it is performed when we create the project. |
4 | done By | When we say about the API testing it is done by the testers. And the purpose of API testing is end to end testing of the functionality. | When we say about the Unit testing it is done by the developer it self and in Unit testing every functionality is separately tested. |