分享
 
 
 

关于Fault Modeling using the Program Dependence Graph 的读书笔记(4)

王朝other·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

关于Fault Modeling using the Program Dependence Graph 的读书笔记(4)

MSE 2004,perdubug,2004.6.1

E. Mutation Testing(变异测试)

14.Mutation testing is a fault-based testing technique [10, 19] that is based on the assumption that a program is well tested if all simple faults are predicted and removed; complex faults are coupled to simple faults and are thus, detected by tests that detects simple faults [10, 28, 38]. Mutation operators introduce simple faults into the program. Each change or mutation that is performed by a mutation operator produces a mutant program or simply, a mutant. A mutant is killed by a test that forces it to produce output that is different from the original program.

变异测试是一种基于故障的测试技术,它是基于这样一种假设:如果一个程序中所有的简单故障被预判和解决那么这个程序就称为是经过良好测试的;复杂的故障是由简单的故障组成的,也就是说复杂的故障可以和简单故障一样被检测到。Mutation operators将简单故障导入到被测试程序中,此时程序也可以被称为是一个”变形(mutant)”,一个变形被测试程序kill然后会产生输出,这是变形和原始程序的不同之处。

15.Figure 3 shows an example program with four mutants, in which each mutant has exactly one mutation.Equivalent mutants are mutant programs that are functionally equivalent to the original program and therefore cannot be killed by any test. In Figure 3, mutant 3 is an equivalent mutant because, if the value of X is 8, it makes no difference whether we check X > 0 or X >= 0.

Figure 3显示了一个例子程序,它具有四种变形,每一种变形确切的只包含一种变化。Equivalent mutants指的是功能上和原始程序等价的变形,所以它不能被任何测试程序kill。在Figure 3中的变形3就是一个Equivalent mutants,因为如果X=8的话那么X>0和X>=0这两个判别式就没有区别了。

16.Budd[5] defined mutation analysis as a method for evaluating the degree to which a set of tests exercise a program. His suggested procedure extends the test set until all nonequivalent mutants have been killed.Because the method of test generation is not significant here, we use the terms mutation analysis and mutation testing interchangeably.

Budd定义了一种叫做mutation analysis(变形分析)的方法来评价测试程序。他的建议扩展

测试集合直到所有的非等价的变形都被kill。因为测试方法的发展对这篇文章没有很大的意义所以我们可以混用”变形分析”和”变形”这两个术语。

F.Modeling Faults using the PDG(使用PDG来故障建模)

17.We characterize the types of faults that we model using the PDG as extensions to the domain/computation classification scheme developed by Howden [22]. Our goal in extending this scheme is to establish a relationship between existing fault categories and their PDG representations - not to provide an exhaustive fault classification. Section 3.1 details our extensions to the domain/computation classification that are based on fault manifestations in the PDG.

我们用Howden创立的PDG来刻画故障的类型。我们的目标是扩展Howden他老人家的设计:在现存的故障类型和它们(指的是现存的那些故障)的PDG之间建立一种关系而不是提供一个完备的故障分类。关于我们的扩展参看Section 3.1。

18.The relationship between our PDG-based fault classification and the domain/computation scheme is shown in our extended fault classification, given in Figure 4. We consider only faults that occur within procedures; we do not consider interface faults. In section 3.2, we describe

algorithms that transform the PDG to model the structural fault types detailed in Section 3.1. For these transformation algorithms, we consider only fault types that affect the PDG structure; we do not consider statement-level faults because they are modeled extensively by other methods such as mutation.

我们的基于PDG的故障分类和区域/计算方案之间的关系在Figure 4中体现出来。我们只考虑故障发生在过程内部,我们没有考虑接口故障。在Section 3.2中我们描述了将PDG转换到的Section 3.1中提到的故障类型的算法。对于这些转换算法我们只考虑影响PDG结构的故障类型,我们不考虑语句层面的故障,因为它们可以被其他的方法很好的处理,比如前面我们提到的变异测试法。

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有