11. All Pairs
List Textbox Checkbox1 (-x) Checkbox2 (x2)
0 1 On On
1 2 Off Off
2 3
3 4
4 ...
5 96
6 97
7 98
8 99
9
• 如何找到下列Bug: List=0 & Checkbox1=On
• 分析:1)Textbox 的值是与 Bug 无关
• 2)与Bug有关的唯 测试用例是:List=0 & Checkbox1=On
2)与Bug有关的唯一测试用例是:List=0
Ivar Jacobson International,
008
12. 结对的排列组合,找到测试用例(场景)
NIST analysis of medical software device failures
– Only three of 109 failure reports indicated that
y p
more than two conditions were required to cause the
failure ( a ace 2000)
a u e (Wallace 000)
ALL PAIRS:
- Don't test all combinations
- Test all-pairs.
all pairs
Ivar Jacobson International,
008
13. 结对的排列组合,找到测试用例(场景)
分类测试变量的值
List Textbox Checkbox1 ( x)
(-x) Checkbox2 (x2)
0 Valid int On On
Any other Invalid int Off Off
Alpha
Ivar Jacobson International,
008
14. 结对的排列组合,找到测试用例(场景)
Textbox(3) List(2) Negative(2) Square(2)
Valid integer 0 On Checked
Valid integer Other Off Unchecked
Invalid integer 0 Off Checked
Invalid integer Other On Unchecked
Alpha 0 On Unchecked
Alpha Other Off Checked
依 All Pairs, 只需 6 个 试 例
需 个测试用例
Ivar Jacobson International,
008
15. 工作迷思
–区分出那些测试用例正在进行开发,测试
Ivar Jacobson International,
008
16. 工作迷思: 直到测试通过.....
我已三天没回家....
我已三天没回家
Ivar Jacobson International,
008
17. 区分出那些测试用例正在进行开发,测试
持续集成环境
Name Error Failure Test
Test-Donkey 0 0 60
Test-ERP 0 0 6
WIP-Donkey 6 3 30
WIP-ERP 0 0 0
Total 6 3 96
Ivar Jacobson International,
008
18. 开发与测试的迷思
–测试开发同是一家人
Ivar Jacobson International,
008