test case meaning code example
Example 1: Test Case
It is documentation which describes step by step how to perform testing.
A Test Case contains test steps, test data, precondition,
postcondition developed for specific test scenario
to verify any requirement.
It includes:
- test case ID (TC ID)
- test case name (TC Name)
- pre-condition
- step definitions
- test data
- expected/actual result
- pass/fail
Tester creates test cases.
Example 2: what is the test case
A good test case should be:
- small, isolated and atomic
- easy to understand
- executed as fast as possible
- independent with each other
- describe its expected result
- avoided from repetition
- written with end user's perspective