What are Test Cases?
A test case is a set of conditions or variables under which a tester will determine whether an application, software system or one of its features is working as it should. There are three main types of test cases:
- Positive test cases: These are ones in which the system being tested is expected to work correctly. These tests are designed to show that the system can handle valid input and produce the expected output.
- Negative test cases: These are those in which the system being tested is expected to fail. These tests help ensure that the system can handle invalid input gracefully and produce error messages or other appropriate outputs when necessary.
- Destructive test cases: These are those in which the system being tested is deliberately broken in order to test its recovery capabilities. These tests help ensure that the system can withstand unexpected failures and still function properly.
Positive vs Negative vs Destructive Test Cases
A test case is a set of conditions or variables under which a tester will determine whether an application, software system or website meets specifications and performs as expected. A test case can be positive or negative, meaning that it tests for the correct functionality or missing functionality.