31-10-2012, 01:16 PM
HOW TO WRITE BETTER TEST CASES
testcase.pdf (Size: 143.41 KB / Downloads: 209)
What is a good test case?
Accurate - tests what it’s designed to test
Economical - no unnecessary steps
Repeatable, reusable - keeps on going
Traceable - to a requirement
Appropriate - for test environment, testers
Self standing - independent of the writer
Self cleaning - picks up after itself
Types of test cases
“A rose by any other name smells as sweet”
Step-by-step or word/action instructions
Table, matrix
Script for record/playback or performance test
All need the same structure (anatomy)
Anatomy of a test case
Statement of purpose, what is being tested
Method, how it will be tested
Setup, environment, data
Steps - actions and expected results, implied in a
table or matrix
Proofs, files, printouts, reports, screen grabs
(optional)