博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Software Testing Homework2
阅读量:6901 次
发布时间:2019-06-27

本文共 1078 字,大约阅读时间需要 3 分钟。

1、Software Faults, Errors & Failures

Software Fault :

A static defect in the software 

Error是指实际值偏离你最初的期望,往往是由人为造成的。

Software Failure : External, incorrect behavior with respect to the requirements or other description of the expected behavior

fault通常是由于程序中不正确的步骤,过程或者数据定义,导致程序出现了非故意的、不可预料的行为。fault通常是由error导致的。

Software Error : An incorrect internal state that is the manifestation of some fault

fault通常是由于程序中不正确的步骤,过程或者数据定义,导致程序出现了非故意的、不可预料的行为。fault通常是由error导致的。

一些人为的error,使得程序中产生了不正确的步骤、过程和数据定义,从而使程序出现了一些不可预料的fualt,这些 fault最终又致使系统或者组件不能完成了最初要求的功能,也就是failure。

2、Homework 2

作业内容:

 

 

 (1)the fault

1:i > 0, it should be i ≥ 0

2: it should search from end to start to get the index of the LAST 0.

for(i=0; i<length; i++) should be for(i=length-1; i≥0; i--)

(2)a test case that does not execute the fault

1:x = null

2:x = null

(3)a test case that executes the fault, but does not result in an error state.

1:x = [1,2,3 ]; y = 3

2:x = [0]

(4) a test case that results in an error, but not a failure

1:x=[1, 2, 3],  y=4

 

2:x=[1, 2, 3]

转载于:https://www.cnblogs.com/zhuchenlu/p/8568490.html

你可能感兴趣的文章
Webpack4优化教程
查看>>
用OC认识设计模式(二) 结构型模式
查看>>
定投第2天:关于比特币的认知升级
查看>>
KVC计算平均值,最大值,最小值等
查看>>
比特币节点数量减少14%
查看>>
如何正确地给图像添加高斯噪声
查看>>
学习html我们从百度百科开始
查看>>
重启BarTender打印引擎没响应?你要的故障详解都在这!
查看>>
前后端分离那些事
查看>>
使用Vue-cli和NutUI快速撸一个Vue项目
查看>>
函数声明
查看>>
vue[源码]生命周期钩子的实现
查看>>
2 KD-Tree的构造与搜索
查看>>
Java POI处理大量数据导入导出
查看>>
(JS基础)DOM:遍历 与 范围
查看>>
MacBook Pro 安装 Windows 10
查看>>
如何Spring Cloud Zuul作为网关的分布式系统中整合Swagger文档在同一个页面上
查看>>
1分钟做出一个可爱鬼畜动图!
查看>>
实现一个炫酷的随机标签排列效果(颜色随机,大小随机,成菱形排列的列表)...
查看>>
flex 布局
查看>>