An efficient method to generate feasible paths for basis path testing

被引:23
作者
Yan, Jun [1 ]
Zhang, Jian [1 ]
机构
[1] Chinese Acad Sci, Inst Software, State Key Lab Comp Sci, Beijing 100864, Peoples R China
基金
中国国家自然科学基金;
关键词
software engineering; basis path testing; path feasibility; test data generation;
D O I
10.1016/j.ipl.2008.01.007
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Basis path testing is a very powerful structural testing criterion. The number of test paths equals to the cyclomatic complexity of program defined by McCabe. Traditional test generation methods select the paths either without consideration of the constraints of variables or interactively. In this note, an efficient method is presented to generate a set of feasible basis paths. The experiments show that this method can generate feasible basis paths for real-world C programs automatically in acceptable time. (C) 2008 Elsevier B.V. All rights reserved.
引用
收藏
页码:87 / 92
页数:6
相关论文
共 12 条
[1]  
[Anonymous], 1996, NIST SPECIAL PUBLICA
[2]   AUTOMATIC-GENERATION OF PATH COVERS BASED ON THE CONTROL FLOW-ANALYSIS OF COMPUTER-PROGRAMS [J].
BERTOLINO, A ;
MARRE, M .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1994, 20 (12) :885-899
[3]  
Hedley D., 1985, Proceedings of the 8th International Conference on Software Engineering (Cat. No.85CH2139-4), P259
[4]   SYMBOLIC EXECUTION AND PROGRAM TESTING [J].
KING, JC .
COMMUNICATIONS OF THE ACM, 1976, 19 (07) :385-394
[5]  
McCabe T. J., 1976, IEEE Transactions on Software Engineering, VSE-2, P308, DOI 10.1109/TSE.1976.233837
[6]  
POOLE J, 1995, 5737 NISTIR DEP COMM
[7]  
WATSON AH, 1996, THESIS PRINCETON U
[8]  
WILLIAMS N, 2005, EDCC, P281
[9]  
Xu ZX, 2006, INT CONF QUAL SOFTW, P107
[10]   The automatic generation of basis set of path for path testing [J].
Zhang, GM ;
Rui, C ;
Li, XW ;
Han, CY .
14TH ASIAN TEST SYMPOSIUM, PROCEEDINGS, 2005, :46-49