Simply put, a test case is a scenario made up of a sequence of steps and conditions or variables, where test inputs are provided and the program is run using those inputs, to see how it performs. An expected result is outlined and the actual result is compared to it. Certain working conditions are also present in the test case, to see how the program handles the conditions.
Every requirement or objective that the program is expected to achieve, needs at least one test case. Realistically, it definitely takes more than one test case to determine the true functionality of the application being tested. The mechanism used to judge the result of the test case, i.e. whether the program has failed or passed the test, is called a test oracle.
Test cases, at root level, are used to measure how a program handles errors or tricky situations such as if one input is incorrect or if both inputs are incorrect. They are also expected to expose hidden logical errors in the program's code, that have gone undetected.
Types Of Test Cases:
1.Validation test case 2.Verification test cases 3.integration test case. 4.Functional Test case 5.Non-Functional Test cases( which include security, performance and usability) 6.User Acceptance Test cases( end to end scenario).
Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!