Test-suite Reduction Based on K-medoids Clustering Algorithm

被引:5
作者
Liu, Feng [1 ]
Zhang, Jun [1 ]
Zhu, Er-Zhou [1 ]
机构
[1] Anhui Univ, Sch Comp Sci & Technol, Hefei, Anhui, Peoples R China
来源
2017 INTERNATIONAL CONFERENCE ON CYBER-ENABLED DISTRIBUTED COMPUTING AND KNOWLEDGE DISCOVERY (CYBERC) | 2017年
基金
中国国家自然科学基金;
关键词
test suite reduction; k-medoids; code coverage; cluster analysis;
D O I
10.1109/CyberC.2017.38
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Software testing is a key approach to guarantee the software quality. It is the objective unremittingly pursed by virtue of effective testing cases in the shortest time. The test suite optimization method is a NP-complete problem. Although some people apply k-means clustering algorithm to the test suite reduction, the algorithm is unstable and seldom considers the coverage rate of such test cases; as a result, it will waste many unnecessary testing time in redundant cases and always result in high cost. Therefore, this paper introduces k-medoids thought of the clustering algorithm and then proposes a method of parameter generation test suite characterized by cyclomatic complexity and code coverage rate. This method utilizes the greedy algorithm to process the streamlined test suite while guaranteeing the cases coverage rate and the error detection rate finally gain the minimal test suite. As indicated by the stimulation experimental results, our method features higher coverage rate with lower complexity under the streamlined test suite of the same quantity.
引用
收藏
页码:186 / 192
页数:7
相关论文
共 11 条
[1]  
[Anonymous], 2010, SIGSOFT SOFTWARE ENG
[2]  
Che Y. M., 2012, COMPUTER SCI, V39, P422
[3]   A new heuristic for test suite reduction [J].
Chen, TY ;
Lau, MF .
INFORMATION AND SOFTWARE TECHNOLOGY, 1998, 40 (5-6) :347-354
[4]   Regression Test Cases Prioritization Using Clustering and Code Change Relevance [J].
Haraty, Ramzi A. ;
Mansour, Nashat ;
Moukahal, Lama ;
Khalil, Iman .
INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2016, 26 (05) :733-768
[5]  
Harrold M. J., 1993, ACM Transactions on Software Engineering and Methodology, V2, P270, DOI 10.1145/152388.152391
[6]   An optimal representative set selection method [J].
Lee, JG ;
Chung, CG .
INFORMATION AND SOFTWARE TECHNOLOGY, 2000, 42 (01) :17-25
[7]  
Muthyala K., 2011, Indian J. Comput. Sci. Eng, V2, P500
[8]   Identifying Effective Test Cases Through K-means Clustering for Enhancing Regression Testing [J].
Pang, Yulei ;
Xue, Xiaozhen ;
Namin, Akbar Siami .
2013 12TH INTERNATIONAL CONFERENCE ON MACHINE LEARNING AND APPLICATIONS (ICMLA 2013), VOL 2, 2013, :78-83
[9]  
Yu Lei, 2007, IEEE INT C WORKSH EN, P549, DOI [10.1109/ECBS.2007.47, DOI 10.1109/ECBS.2007.47]
[10]   Approach for optimizing test suite based on testing requirement reduction [J].
School of Computer Science and Engineering, Southeast University, Nanjing 210096, China ;
不详 .
Ruan Jian Xue Bao, 2007, 4 (821-831) :821-831