软件测试作业4
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了软件测试作业4相关的知识,希望对你有一定的参考价值。
1.
2.令MAXPRIMES=4,会出现越界错误。
3.令n=1,不会经过while循环体。
(d)
点覆盖:{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16}
边覆盖:{(1,2),(2,3),(2,12),(3,4),(4,5),(5,6),(5,7),(6,4),(7,8), (4,8),(8,9),(8,10),(9,10),(10,2),(11,12),(12,13),(13,14),(14,12), (12,15)}
主路径覆盖:{(1,2,3,4,5,6),
(1,2,3,4,5,7,8,9,10),
(1,2,3,4,5,7,8,10),
(1,2,3,4,8,9,10),
(1,2,3,4,8,10),
(1,2,11,12,13,14),
(1,2,11,15),
(3,4,5,7,8,9,10,2,11,12,13,14),
(3,4,5,7,8,10,2,11,12,13,14),
(3,4,5,7,8,9,10,2,11,12,15),
(3,4,5,7,8,10,2,11,12,15),
(3,4,8,9,10,2,11,12,13,14),
(3,4,8,10,2,11,12,13,14),
(3,4,8,9,10,2,11,12,15),
(3,4,8,10,2,11,12,15),
(5,6,4,8,9,10,2,11,12,13,14),
(5,6,4,8,10,2,11,12,13,14),
(5,6,4,8,9,10,2,11,12,15),
(5,6,4,8,10,2,11,12,15),
(13,14,12,15),
(12,13,14,12),
(4,5,6,4),
(2,3,4,5,7,8,9,10,2),
(2,3,4,5,7,8,10,2),
(2,3,4,8,9,10,2),
(2,3,4,8,10,2),
}
以上是关于软件测试作业4的主要内容,如果未能解决你的问题,请参考以下文章