Generating Test Data for Structural Testing Based on Ant Colony Optimization

被引:14
|
作者
Mao, Chengying [1 ,2 ]
Yu, Xinxin [1 ]
Chen, Jifu [1 ]
Chen, Jinfu [3 ]
机构
[1] Jiangxi Univ Finance & Econ, Sch Software & Commun Engn, Nanchang 330013, Peoples R China
[2] Wuhan Univ, State Key Lab Software Engn, Wuhan 430072, Peoples R China
[3] Jiangsu Univ, Sch Comp Sci & Telecom Engn, Zhenjiang, Jiangsu 212013, Peoples R China
基金
中国国家自然科学基金;
关键词
Test data generation; ant colony optimization; branch coverage; fitness function; meta-heuristic search;
D O I
10.1109/QSIC.2012.12
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Software testing has been always viewed as an effective way to ensure software quality both in academic and industry. In fact, the quality of test data set plays a critical role in the success of software testing activity. According to the basic line of search-based software testing, we introduced ant colony optimization (ACO) to settle this problem and proposed a framework of ACO-based test data generation. In our algorithm TDG_ACO, the local transfer rule, global transfer rule and pheromone update rule are re-defined to handle the continuous input domain searching. Meanwhile, the most widely-used coverage criterion, i.e., branch coverage, is adopted to construct fitness function. In order to validate the feasibility and effectiveness of our method, five real-world programs are utilized to perform experimental analysis. The results show that our algorithm outperforms the existing simulated annealing and genetic algorithm in most cases.
引用
收藏
页码:98 / 101
页数:4
相关论文
共 50 条
  • [1] Adapting ant colony optimization to generate test data for software structural testing
    Mao, Chengying
    Xiao, Lichuan
    Yu, Xinxin
    Chen, Jinfu
    [J]. SWARM AND EVOLUTIONARY COMPUTATION, 2015, 20 : 23 - 36
  • [2] Generating Test Data for Software Structural Testing Based on Particle Swarm Optimization
    Mao, Chengying
    [J]. ARABIAN JOURNAL FOR SCIENCE AND ENGINEERING, 2014, 39 (06) : 4593 - 4607
  • [3] Generating Test Data for Software Structural Testing Based on Particle Swarm Optimization
    Chengying Mao
    [J]. Arabian Journal for Science and Engineering, 2014, 39 : 4593 - 4607
  • [4] Test Case Prioritization for Regression Testing Based on Ant Colony Optimization
    Gao, Dongdong
    Guo, Xiangying
    Zhao, Lei
    [J]. PROCEEDINGS OF 2015 6TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND SERVICE SCIENCE, 2015, : 275 - 279
  • [5] Structural test data generation using a memetic ant colony optimization based on evolution strategies
    Sharifipour, Hossein
    Shakeri, Mojtaba
    Haghighi, Hassan
    [J]. SWARM AND EVOLUTIONARY COMPUTATION, 2018, 40 : 76 - 91
  • [6] Prioritization for Regression Testing Using Ant Colony Optimization Based on Test Factors
    Ahmad, Sheikh Fahad
    Singh, Deepak Kumar
    Suman, Preetam
    [J]. INTELLIGENT COMMUNICATION, CONTROL AND DEVICES, ICICCD 2017, 2018, 624 : 1353 - 1360
  • [7] Generating Test Data Using Ant Colony Optimization (ACO) Algorithm and UML State Machine Diagram in Gray Box Testing Approach
    Arifiani, Siska
    Rochimah, Siti
    [J]. 2016 1ST INTERNATIONAL SEMINAR ON APPLICATION FOR TECHNOLOGY OF INFORMATION AND COMMUNICATION (ISEMANTIC): SCIENCE AND TECHNOLOGY FOR A BETTER FUTURE, 2016, : 217 - 222
  • [8] An Intelligent Testing System Embedded with an Ant Colony Optimization Based Test Composition Method
    Hu, Xiao-Min
    Zhang, Jun
    [J]. 2009 IEEE CONGRESS ON EVOLUTIONARY COMPUTATION, VOLS 1-5, 2009, : 1414 - 1421
  • [9] Applying Ant Colony Optimization in Software Testing to Generate Prioritized Optimal Path and Test Data
    Biswas, Sumon
    Kaiser, M. S.
    Mamun, S. A.
    [J]. 2ND INTERNATIONAL CONFERENCE ON ELECTRICAL ENGINEERING AND INFORMATION COMMUNICATION TECHNOLOGY (ICEEICT 2015), 2015,
  • [10] Analysis of well testing data using ant colony optimization
    Jung, Jihun
    Seo, Hyeongjun
    Yoo, Inhang
    Kim, Hyuntae
    Kwon, Sunil
    [J]. GEOSYSTEM ENGINEERING, 2015, 18 (05) : 266 - 271