整理笔记(八)
上一篇 /
下一篇 2007-10-08 23:11:34
/ 个人分类:读书笔记
Test Matrices
1)A matrix is a concise organizer of simple tests, especially useful for function tests and domain tests
2)The matrix groups test cases that are essentially the same.
What is equivalence?
4 views of what makes values equivalent.
1)Intuitive Similarity: two test values are equivalent if they are so similar to each
other that it seems pointless to test both.
2)Specified As Equivalent: two test values are equivalent if the specification says
that the program handles them in the same way.
3)Equivalent Paths:two test values are equivalent if they would drive the
program down the same path (e.g. execute the same branch of an IF).对于子集中的任一数据,如果执行路径并不完全相同,那么这个子集不是等价类.
4)Risk-Based: two test values are equivalent if, given your theory of possible
error, you expect the same result from each.
6条确定等价类的原则:
1、在输入条件规定了取值范围或值的个数的情况下,则可以确立一个有效等价类和两个无效等价类。
2、在输入条件规定了输入值的集合或者规定了“必须如何”的条件的情况下,则可以确立一个有效等价类和一个无效等价类。
3、在输入条件是一个布尔量的情况下,可以确立一个有效等价类和一个无效等价类。
4、在规定了输入数据的一组值(假定n个),并且程序要对每一个输入值分别处理的情况下,可以确立n个有效等价类和一个无效等价类。
5、在规定了输入数据必须遵守的规则的情况下,可以确立一个有效等价类(符合规则)和若干个无效等价类(从不同角度违反规则)。
6、在确知已划分的等价类中各元素在程序处理中的方式不同的情况下,则应再将该等价类进一步的划分为更小的等价类。
相关阅读:
- 整理笔记(一) (zgnmgly, 2007-9-12)
- 整理笔记(二) (zgnmgly, 2007-9-17)
- 整理笔记(三) (zgnmgly, 2007-9-18)
- 整理笔记(四) (zgnmgly, 2007-9-26)
- 整理笔记(五) (zgnmgly, 2007-9-27)
- 整理笔记(六) (zgnmgly, 2007-9-28)
- 整理笔记(七) (zgnmgly, 2007-9-30)
- APITesting (iloveyouso, 2007-11-18)
- 基于反射的UI测试 (iloveyouso, 2007-11-27)
- CMM阅读笔记 (zgnmgly, 2007-12-06)
收藏
举报
TAG:
读书笔记