Building trust into OO components using a genetic analogy

被引:9
作者
Baudry, B [1 ]
Le Hanh, V [1 ]
Jézéquel, JM [1 ]
Le Traon, Y [1 ]
机构
[1] Inst Rech Informat & Syst Aleatoires, F-35042 Rennes, France
来源
11TH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING, PROCEEDINGS | 2000年
关键词
D O I
10.1109/ISSRE.2000.885856
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Despite the growing interest for component-based systems, few works tackle the question of the trust we can bring into a component. This paper presents a method and a tool for building trustable OO components. It is particularly adapted to a design-by-contract approach, tr hele the specification is systematically derived into executable assertions (invariant properties, pre/postconditions of methods). A component is seen as an organic set composed of a specification, a given implementation and its embedded test cases. We propose an adaptation of mutation analysis to the OO paradigm that checks the consistency between specification/implementation and tests. Faulty programs, called "mutants", are generated by systematic fault injection in the implementation. The quality of tests is related to the mutation score, i.e. the proportion of faulty programs it detects. The main contribution of this is to show how a similar idea can be used in the same context to address the problem of effective tests optimization. To map the genetic analogy to the rest optimization problem, we consider mutant programs to be detected as the initial pr population and test cases as the predators population. The test selection consists of mutating the "predator" test cases and crossing them over in ol-del to improve their. ability to kill the prey population. The feasibility of components validation using such a "Darwinian" model and ifs usefulness for test optimization are studied.
引用
收藏
页码:4 / 14
页数:11
相关论文
共 17 条
[1]  
[Anonymous], 1989, GENETIC ALGORITHM SE
[2]  
[Anonymous], 1999, TESTING OBJECT ORIEN
[3]  
[Anonymous], IEEE COMPUTER
[4]  
Beck K, 1998, JAVA REP, V3, P37
[5]   HINTS ON TEST DATA SELECTION - HELP FOR PRACTICING PROGRAMMER [J].
DEMILLO, RA ;
LIPTON, RJ .
COMPUTER, 1978, 11 (04) :34-41
[6]   CONSTRAINT-BASED AUTOMATIC TEST DATA GENERATION [J].
DEMILLO, RA ;
OFFUTT, AJ .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1991, 17 (09) :900-910
[7]  
HOLLAND JH, 1994, P 5 INT S SOFTW REL, P143
[8]  
HOWDEN WE, 1970, P IEEE S AD PROC DEC, V17
[9]  
Jeron T., 1999, Proceedings 10th International Symposium on Software Reliability Engineering (Cat. No.PR00443), P260, DOI 10.1109/ISSRE.1999.809331
[10]  
Jezequel J. Marc., 1999, DESIGN PATTERNS CONT