Measuring design testability of a UML class diagram

被引:25
作者
Baudry, B
Le Traon, Y
机构
[1] France Telecom R&D, F-22307 Lannion, France
[2] IRISA, F-35042 Rennes, France
关键词
object-oriented software measurement; UML; object-oriented testing; software design quality; testability; anti-patterns;
D O I
10.1016/j.infsof.2005.01.006
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Design-for-testability is a very important issue in software engineering. It becomes crucial in the case of OO designs where control flows are generally not hierarchical, but are diffuse and distributed over the whole architecture. In this paper, we concentrate on detecting, pinpointing and suppressing potential testability weaknesses of a UML class diagram. The attribute significant from design testability is called 'class interaction' and is generalized in the notion of testability anti-pattern: it appears when potentially concurrent client/supplier relationships between classes exist in the system. These interactions point out parts of the design that need to be improved, driving structural modifications or constraints specifications, to reduce the final testing effort. In this paper, the testability measurement we propose counts the number and the complexity of interactions that must be covered during testing. The approach is illustrated on application examples. (c) 2005 Elsevier B.V. All rights reserved.
引用
收藏
页码:859 / 879
页数:21
相关论文
共 32 条
[1]  
Abdurazik A, 2000, LECT NOTES COMPUT SC, V1939, P383
[2]  
AKIF K, 2001, P ECOOP 01 EUR C OBJ, P381
[3]   Criteria for testing polymorphic relationships [J].
Alexander, RT ;
Offutt, AJ .
11TH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING, PROCEEDINGS, 2000, :15-23
[4]  
[Anonymous], 1999, TESTING OBJECT ORIEN
[5]  
Baudry B, 2000, SEVENTH INTERNATIONAL SOFTWARE METRICS SYMPOSIUM - METRICS 2001, PROCEEDINGS, P272, DOI 10.1109/METRIC.2001.915535
[6]   ESTIMATING THE NUMBER OF TEST CASES REQUIRED TO SATISFY THE ALL-DU-PATHS TESTING CRITERION [J].
BIEMAN, JM ;
SCHULTZ, JL .
PROCEEDINGS OF THE ACM SIGSOFT 89: THIRD SYMPOSIUM ON SOFTWARE TESTING, ANALYSIS, AND VERIFICATION ( TAV 3 ), 1989, 14 :179-186
[7]   DESIGN FOR TESTABILITY IN OBJECT-ORIENTED SYSTEMS [J].
BINDER, RV .
COMMUNICATIONS OF THE ACM, 1994, 37 (09) :87-101
[8]  
Briand L.C., 2002, SOFTW SYST MODEL, V1, P10, DOI [DOI 10.1007/S10270-002-0004-8, 10.1007/s10270-002-0004-8]
[9]   Revisiting strategies for ordering class integration testing in the presence of dependency cycles [J].
Briand, LC ;
Labiche, Y ;
Wang, YH .
12TH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING, PROCEEDINGS, 2001, :287-296
[10]   Property-based software engineering measurement [J].
Briand, LC ;
Morasca, S ;
Basili, VR .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1996, 22 (01) :68-86