Question: Your line manager has instructed you to write unit tests to determine the code coverage in the student management application. You are required to create
Your line manager has instructed you to write unit tests to determine the code coverage in the student management application. You are required to create a test package within the application you created in Section which will contain the required unit tests.
You are required to write the following unit tests:
tableTest Name,Test PurposeTestSaveStudenttableTo supply the student ID name, age, email,and course to the save student method. Thetest will determine whether the correctstudent will be saved to memory.TestSearchStudenttableTo supply the student ID to the searchstudent method. The test will determinethat the correct student details have beenreturnedTestiearchStudentStudentNotFoundtableTo supply an incorrect student ID to thesearch student method. The test willdetermine that no student was found.TestDeleteStudentitableTo supply the student ID to the deletestudent method. The test will determinethat the student has been successfullydeletedTestDeletestudentStudentMotFoundtableTo supply an incorrect student ID to thedelete student method. The test willdetermine that no student could be found todelete:
tableTeststudentAgeStudentAgeValidtableTo supply a valid student age to the studentage method. The test will determine that thestudents age is valid.TestStudentAgeStudentAgelnvalidtableTo supply an invalid student age to thestudent age method. The test will determinethat the student's age is less than TesistudentAgeStudentagelnvalid CharactertableTo supply an invalid character to the studentage method. The test will determine that thestudent age supplied is not a number.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
