Skip to content

Plan for Software Quality Assurance

Anthony Porporino edited this page Oct 25, 2019 · 8 revisions

The test coverage we wish to achieve for each business methods:

  • Create Data i.e. successfully create an object of that class
  • Test if error checks for null input successfully work. Make sure no data is created!
  • Test if we can successfully get specific created data using different inputs using repository interfaces.

To achieve this target coverage criteria we created a test suite (TestProjectGroup17Service) which contained tests for each business method. These tests covered the situations we wished to achieve (see above). An object of each class can be successfully created and persisted. Proper error checking for null pointers was also tested. Lastly, tests for getting specific data using specific parameters ex: getAvailabilityByTutor were tested. All tests were done using JUnit framework. Before each test the database was cleared and all tests run and work.

As shown above we completed our desired test coverage.


The test coverage we wish to achieve for RESTful services:

  • As required we only tested services the modify data. I.E. we wish to successfully test post requests for each service making sure that the response is appropriate.

Room, Person and Course were tested using a test suite (ProjectGroup17RestController) which used a mock database and tests if the response from post requests matched the required response. The other services (Appointment, Availability, Review, SpecificCourse) were tested using postman. We manually created a post request and made sure the response was proper and that data was persisted.

We completed our desired test coverage.