正交表法
正交行数=素因数*(水平数-1)+1
l 行数(Runs):正交表中的行的个数,即试验的次数,也是通过正交实验法设计的测试用例的个数
l 因素数(Factors):正交表中列的个数,即要测试的功能点。
l 水平数(Levels):任何单个因素能够取得的值的最大个数,即要测试功能点的输入值
附录1:常用正交表
n=k*(m-1)+1
n=行数 k=因素 m=水平数(1)
L4(23)
列号 |
1 |
2 |
3 |
试验号 |
|||
1 |
1 |
1 |
1 |
2 |
1 |
2 |
2 |
3 |
2 |
1 |
2 |
4 |
2 |
2 |
1 |
(2)L8(27)
列号 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
试验号 |
|||||||
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
2 |
1 |
1 |
1 |
2 |
2 |
2 |
2 |
3 |
1 |
2 |
2 |
1 |
1 |
2 |
2 |
4 |
1 |
2 |
2 |
2 |
2 |
1 |
1 |
5 |
2 |
1 |
2 |
1 |
2 |
1 |
2 |
6 |
2 |
1 |
2 |
2 |
1 |
2 |
1 |
7 |
2 |
2 |
1 |
1 |
2 |
2 |
1 |
8 |
2 |
2 |
1 |
2 |
1 |
1 |
2 |
(3)L12(211)
列号 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
试验号 |
|||||||||||
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
2 |
1 |
1 |
1 |
1 |
1 |
2 |
2 |
2 |
2 |
2 |
2 |
3 |
1 |
1 |
2 |
2 |
2 |
1 |
1 |
1 |
2 |
2 |
2 |
4 |
1 |
2 |
1 |
2 |
2 |
1 |
2 |
2 |
1 |
1 |
2 |
5 |
1 |
2 |
2 |
1 |
2 |
2 |
1 |
2 |
1 |
2 |
1 |
6 |
1 |
2 |
2 |
2 |
1 |
2 |
2 |
1 |
2 |
1 |
1 |
7 |
2 |
1 |
2 |
2 |
1 |
1 |
2 |
2 |
1 |
2 |
1 |
8 |
2 |
1 |
2 |
1 |
2 |
2 |
2 |
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