• Design techniques
• Black Box techniques
• White Box Techniques
• Experienced Based Techniques
• Factors in Choosing Techniques
0 70
0 70
-1 +1 69 71
Test Case Expected
Hotel Charge Boundary Tested
ID Output
1 -1 Error Message
2 0 0 Error Message
3 1 OK
4 69 OK
5 70 70 OK
6 71 Error Message
Semester 2, 2009/2010 Fakulti Teknologi Maklumat dan Komunikasi
Black Box : Use Cases/Scenario
Tests
• Use case is used to show the user interaction
with system, any action which of tangible value
to the user
• Design various cases that reflect challenging real
world uses of product
• Each flow can be mapped to one test case.
• Some object oriented design methodologies
include use cases, so this can be an easy source
of tests
EXAMPLE : A person who is married and has worked for 5 years will follow the
path B1/A2/B2/A3, resulting in a salary of 7000
Specifications Explanation
Start
1
B1
2 3
A2 A1
4
B2 A3
6 5
End
Semester 2, 2009/2010 Fakulti Teknologi Maklumat dan Komunikasi
Example : Path Analysis
• Key concepts
• Reasons for writing test cases based on intuition,
experience, and knowledge
• Comparing experienced based techniques with
specification based techniques