So far, we have been building the RESTful API and hitting the URL for the root URL to see the response and to understand whether the different methods are working properly in the backend or not. Since it's new code, everything should be tested 100% to make sure it works fine in the production environment. In this section, we will write the test cases, which should work individually, and also as a system, to make sure that the complete backend service is good to go for production.
There are different types of testing, which are defined as follows:
- Functional testing: This is basically used to test the functionality of a component or a system. We do this test against the functional specification of a component.
- Non-function testing: This kind of testing is done against the quality characteristics of a component, which includes efficiency testing, reliability...