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 条
  • [41] AN EFFICIENT ALGORITHM FOR SINGLE AND MULTIPLE FAULT TEST SETS GENERATION
    BANERJEE, SN
    THAKUR, RK
    BHATTACHARJEE, PR
    INTERNATIONAL JOURNAL OF COMPUTER MATHEMATICS, 1985, 18 (02) : 121 - 133
  • [42] EFSM-Based Test Data Generation with Multi-Population Genetic Algorithm
    Zhou, Xiaofei
    Zhao, Ruilian
    You, Feng
    2014 5TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND SERVICE SCIENCE (ICSESS), 2014, : 925 - 928
  • [43] Automatic test data generation based on reduced adaptive particle swarm optimization algorithm
    Jiang, Shujuan
    Shi, Jiaojiao
    Zhang, Yanmei
    Han, Han
    NEUROCOMPUTING, 2015, 158 : 109 - 116
  • [44] A Test Data Generation Method Based on Kalman Filter and Particle Swarm Optimization Algorithm
    Xue M.
    Jiang S.-J.
    Zhang Z.-G.
    Qian J.-Y.
    Zhang Y.-M.
    Cao H.-L.
    Jiang, Shu-Juan (shjjiang@cumt.edu.cn), 1600, Chinese Institute of Electronics (45): : 2473 - 2483
  • [45] Implementation of the Test Data Generation Algorithm Based on the Ant Colony Optimization Pheromone Model
    Konstantin, Serdyukov
    Avdeenko, Tatyana
    ADVANCES IN SWARM INTELLIGENCE, ICSI 2022, PT I, 2022, : 247 - 258
  • [46] TEST DATA GENERATION FOR SOFTWARE TESTING BASED ON QUANTUM-INSPIRED GENETIC ALGORITHM
    Mao, Chengying
    Yu, Xinxin
    INTERNATIONAL JOURNAL OF COMPUTATIONAL INTELLIGENCE AND APPLICATIONS, 2013, 12 (01)
  • [47] Genetic algorithm based test data generation for MPI parallel programs with blocking communication
    Tian, Tian
    Gong, Dunwei
    Kuo, Fei-Ching
    Liu, Huai
    JOURNAL OF SYSTEMS AND SOFTWARE, 2019, 155 : 130 - 144
  • [48] Test Data Generation and Selection Using Levy Flight-Based Firefly Algorithm
    Pandey, Abhishek
    Banerjee, Soumya
    INTERNATIONAL JOURNAL OF SOFTWARE INNOVATION, 2021, 9 (02) : 18 - 34
  • [49] Data Flow Based Test Case Generation Algorithm for Object Oriented Integration Testing
    Waheed, Shahzada Zeeshan
    Qamar, Usman
    PROCEEDINGS OF 2015 6TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND SERVICE SCIENCE, 2015, : 423 - 427
  • [50] Efficient Data-Mining Algorithm for Predicting Heart Disease Based on an Angiographic Test
    Banjoko, Alabi Waheed
    Abdulazeez, Kawthar Opeyemi
    MALAYSIAN JOURNAL OF MEDICAL SCIENCES, 2021, 28 (05): : 118 - 129