整理笔记(八)

上一篇 / 下一篇  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、在确知已划分的等价类中各元素在程序处理中的方式不同的情况下,则应再将该等价类进一步的划分为更小的等价类。


TAG: 读书笔记

 

评分:0

我来说两句

我的栏目

日历

« 2024-01-05  
 123456
78910111213
14151617181920
21222324252627
28293031   

数据统计

  • 访问量: 36194
  • 日志数: 56
  • 建立时间: 2007-09-12
  • 更新时间: 2009-03-12

RSS订阅

Open Toolbar