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 条
[11]  
JONES BF, SOFTWARE ENG J SEP, P299
[12]   Self-testable components:: from pragmatic tests to design-for-testability methodology [J].
Le Traon, Y ;
Deveaux, D ;
Jézéquel, JM .
TOOLS 29: TECHNOLOGY OF OBJECT-ORIENTED LANGUAGES AND SYSTEMS, PROCEEDINGS, 1999, 29 :96-107
[13]  
LETRAON Y, 2000, IN PRESS IEEE T RELI
[14]  
OFFUTT AJ, 1992, ACM T SOFTW ENG METH, V1, P3
[15]  
OFFUTT J, 1996, SOFTWARE PRACTICE EX, V26
[16]  
Voas J. M., 1992, Software Testing, Verification and Reliability, V2, P25, DOI 10.1002/stvr.4370020105
[17]  
WADEKAR SA, 1999, P 10 INT S SOFTW REL