how to find test cases code example
Example 1: how to write effective test cases
To write effective test case I have few criteria
1- I put myself into customer shoes by writing
test scenarios by end users perspective
2-I am trying to be specific by using clear statements
to make it understandable by everyone
3-And I am aiming %100 test coverage by
planing my test cases to make sure covers each
component and functionality specified in SRS document
4-And also I actively use test case management tool
jiraxray which helps me not only write text effective
test cases but also helps me in tracking the progress about them
5-Also I try to keep the description small
simple and informative. Nobody likes to read long stories :)
6-And most importantly I try to do things differently
I try to think exceptionally.
Example 2: what test case should contains
What does Test Case consist of?
It is documentation which describes step by step how to perform testing.
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.