An algorithm for efficient assertions-based test data generation

被引:2
|
作者
Alakeel A.M. [1 ]
机构
[1] College of Telecomm and Electronics, Computer Technology Department, Jeddah
关键词
Assertion-based testing; Automated software testing; Rogram assertions; Software testing; Test data generation;
D O I
10.4304/jsw.5.6.644-653
中图分类号
学科分类号
摘要
Automated assertion-based test data generation has been shown to be a promising tool for generating test cases that reveal program faults. Because the number of assertions may be very large for complex programs, one of the main concerns to the applicability of assertion-based testing is the amount of search time required to explore a potentially large number of assertions. Since assertion-based test data generation is meant to be used after programs have been tested using regular testing methods, e.g. black-box and white box, it is expected that most faults have been removed previously, therefore, a large number of assertions will not be violated. If the number of unpromising assertions can be reduced, then the efficiency of assertion-based test data generation can be significantly improved. This paper presents an algorithm which uses data-dependency analysis among assertions in order to accumulate historical data about previously explored assertions which can then be utilized during future explorations. The results of a small experimental evaluation of this algorithm show that the algorithm may reduce the number of assertions to be explored, hence making assertion-based test data generation more efficient. This improvement my vary depending on the number and relationship among assertions found in each program. For example, in a program named MinMax2 with 5 assertions, there was no improvement while in another program named GCD with 24 assertions, there was more than 50% reduction in number of assertions to be explored. © 2010 ACADEMY PUBLISHER.
引用
收藏
页码:644 / 653
页数:9
相关论文
共 50 条
  • [21] Automatic test data generation tool based on genetic simulated annealing algorithm
    Li Bin
    Li Zhi-Shu
    Chen Yan-Hong
    Li Bao-Lin
    CIS WORKSHOPS 2007: INTERNATIONAL CONFERENCE ON COMPUTATIONAL INTELLIGENCE AND SECURITY WORKSHOPS, 2007, : 183 - 186
  • [22] A Genetic Algorithm-based System for Automatic Control of Test Data Generation
    Pocatilu, Paul
    Ivan, Ion
    STUDIES IN INFORMATICS AND CONTROL, 2013, 22 (02): : 219 - 226
  • [23] An algorithm on path-based automatic test data generation with arrays and loops
    Chen, JF
    Zhu, L
    Shen, JY
    Wang, ZH
    Zhang, CX
    Chen, Y
    Wei, W
    ISTM/2005: 6TH INTERNATIONAL SYMPOSIUM ON TEST AND MEASUREMENT, VOLS 1-9, CONFERENCE PROCEEDINGS, 2005, : 5340 - 5343
  • [24] A new automatic test data generation algorithm based on PSO-ACO
    Zhao, Xiaomin
    Wang, Yiting
    Ding, Xiaoming
    PROCEEDINGS OF THE 4TH INTERNATIONAL CONFERENCE ON MECHATRONICS, MATERIALS, CHEMISTRY AND COMPUTER ENGINEERING 2015 (ICMMCCE 2015), 2015, 39 : 1159 - 1165
  • [25] Test data generation with a Kalman filter-based adaptive genetic algorithm
    Aleti, Aldeida
    Grunske, Lars
    JOURNAL OF SYSTEMS AND SOFTWARE, 2015, 103 : 343 - 352
  • [26] Test Data Generation for Multiple Paths Coverage Based on Ant Colony Algorithm
    Liao W.-Z.
    Xia X.-Y.
    Jia X.-J.
    Tien Tzu Hsueh Pao/Acta Electronica Sinica, 2020, 48 (07): : 1330 - 1342
  • [27] An Output-Oriented Approach of Test Data Generation Based on Genetic Algorithm
    Zhang, Weixiang
    Wei, Bo
    Du, Huisen
    ALGORITHMS AND ARCHITECTURES FOR PARALLEL PROCESSING, ICA3PP 2015, 2015, 9532 : 100 - 108
  • [28] An Approach for Test Data Generation based on Genetic Algorithm and Delete Mutation Operators
    Rani, Shweta
    Suri, Bharti
    2015 SECOND INTERNATIONAL CONFERENCE ON ADVANCES IN COMPUTING AND COMMUNICATION ENGINEERING ICACCE 2015, 2015, : 714 - 718
  • [29] Software test data generation based on improved particle swarm optimization algorithm
    Liu, Dan
    Wang, Jianmin
    International Journal of Applied Mathematics and Statistics, 2013, 44 (14): : 210 - 217
  • [30] Improved algorithm for combinatorial test data generation based on particle swarm optimization
    Wang, Jianfeng
    Sun, Chao
    Jiang, Shouda
    Harbin Gongcheng Daxue Xuebao/Journal of Harbin Engineering University, 2013, 34 (04): : 477 - 482