[软件测试_hw2]Failure&Error
2016-03-04 21:58
489 查看
1.Identify the fault.
for循环的结束条件应该为i>=0,否则会漏掉检查数组第一个元素。
2.If possible, identify a test case that does not execute the fault. (Reachability)
test case: x = [], y = 2
3.If possible, identify a test case that executes the fault, but does not result in an error state.
test case: x = [3,2,5], y = 2
4.If possible identify a test case that results in an error, but not a failure.
test case: x = [3,2,5], y = 0
1.Identify the fault.
寻找最后一个0应该从后往前遍历数组,应为for( int i = x.length-1 ; i >= 0 ; i-- )
2.If possible, identify a test case that does not execute the fault. (Reachability)
test case: x = []
3.If possible, identify a test case that executes the fault, but does not result in an error state.
test case: x = [3]
4.If possible identify a test case that results in an error, but not a failure.
test case: x = [0,2,2]
相关文章推荐
- How To Reclaim Wasted Space on The Segment (Table, Index and LOB) and Tablespace Levels (文档 ID 16827
- 应用实例:照片识别 机器学习基础(10)
- traincascade相关结构体
- 认知计算是2万亿美元的盛宴,IBM喊你到碗里来!
- 【GDKOI2016】染色大战 Code&Details
- mailto用法
- 【GDKOI2016】寻宝Code&Details
- 【GDKOI2016】不稳定的传送门Code&Details
- LeetCode219题:Contains Duplicate II
- 【GDKOI2016】魔卡少女Code&&Details
- http://blog.csdn.net/luxiaoyu_sdc/article/details/7333024
- HDU 2674 N!Again [Ad Hoc]
- retain、strong、weak、assign区别
- Git配置全局和独立仓库的username和email配置
- 进阶篇:以IL为剑,直指async/await
- 使用WebDriverWait类处理等待(sleep)的问题
- HDOJ-1789 Doing Homework again
- 使用AFN 的POST请求出现错误"Error Domain=NSCocoaErrorDomain Code=3840 "决绝方案
- HDU 3356 ||POJ 3996Air Strike(贪心)
- hdu 4630 No Pain No Game 线段树离线处理