UML Activity Diagram-Based Automatic Test Case Generation For Java']Java Programs

被引:29
作者
Chen, Mingsong [1 ]
Qiu, Xiaokang [1 ]
Xu, Wei [1 ]
Wang, Linzhang [1 ]
Zhao, Jianhua [1 ]
Li, Xuandong [1 ]
机构
[1] Nanjing Univ, Dept Comp Sci & Technol, State Key Lab Novel Software Technol, Nanjing 210093, Peoples R China
关键词
Software testing; test cases generation; UML activity diagrams; !text type='Java']Java[!/text;
D O I
10.1093/comjnl/bxm057
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Test case generation based on design specifications is an important part of testing processes. In this paper, Unified Modeling Language activity diagrams are used as design specifications. By setting up several test adequacy criteria with respect to activity diagrams, an automatic approach is presented to generate test cases for Java programs. Instead of directly deriving test cases from activity diagrams, this approach selects test cases from a set of randomly generated ones according to a given test adequacy criterion. In the approach, we first instrument a Java program under testing according to its activity diagram model, and randomly generate abundant test cases for the program. Then, by running the instrumented program we obtain the corresponding program execution traces. Finally, by matching these traces with the behavior of the activity diagram, a reduced set of test cases are selected according to the given test adequacy criterion. This approach can also be used to check the consistency between the program execution traces and the behavior of activity diagrams.
引用
收藏
页码:545 / 556
页数:12
相关论文
共 28 条
[1]  
Abdurazik A, 2000, LECT NOTES COMPUT SC, V1939, P383
[2]  
*AG, 2007, AG AG MAN DASHB 3 0
[3]   Test adequacy criteria for UML design models [J].
Andrews, A ;
France, R ;
Ghosh, S ;
Craig, G .
SOFTWARE TESTING VERIFICATION & RELIABILITY, 2003, 13 (02) :95-127
[4]  
[Anonymous], P 3 INT WORKSH DYN A
[5]  
Artho C, 2003, LECT NOTES COMPUT SC, V2589, P87
[6]  
Bartetzko D., 2001, Electronic Notes in Theoretical Computer Science, V55, DOI 10.1016/S1571-0661(04)00247-6
[7]  
Blaha Michael., 2005, OBJECT ORIENTED MODE
[8]  
BRORKENS M, 2002, ELECT NOTES THEOR CO, V70, P1
[9]  
Chen MS, 2006, P 2006 INT WORKSH AU, P2
[10]  
Chen TY, 2005, QSIC 2005: Fifth International Conference on Quality Software, Proceedings, P55