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 条
  • [31] Algorithm design and empirical analysis for particle swarm optimization-based test data generation
    Mao, Chengying
    Yu, Xinxin
    Xue, Yunzhi
    Jisuanji Yanjiu yu Fazhan/Computer Research and Development, 2014, 51 (04): : 824 - 837
  • [32] Automatic test data generation for data flow testing using a genetic algorithm
    Girgis, MR
    JOURNAL OF UNIVERSAL COMPUTER SCIENCE, 2005, 11 (06) : 898 - 915
  • [33] Enhanced Genetic Algorithm for MC/DC Test Data Generation
    El-Serafy, Ahmed
    El-Sayed, Ghada
    Salama, Cherif
    Wahba, Ayman
    2015 INTERNATIONAL SYMPOSIUM ON INNOVATIONS IN INTELLIGENT SYSTEMS AND APPLICATIONS (INISTA) PROCEEDINGS, 2015, : 501 - 508
  • [34] Automated Test Data Generation Based on a Genetic Algorithm with Maximum Code Coverage and Population Diversity
    Avdeenko, Tatiana
    Serdyukov, Konstantin
    APPLIED SCIENCES-BASEL, 2021, 11 (10):
  • [35] A Search-Based Test Data Generation Method for Concurrent Programs
    Mirhosseini, Seyed Mohsen
    Haghighi, Hassan
    INTERNATIONAL JOURNAL OF COMPUTATIONAL INTELLIGENCE SYSTEMS, 2020, 13 (01) : 1161 - 1175
  • [36] A Search-Based Test Data Generation Method for Concurrent Programs
    Seyed Mohsen Mirhosseini
    Hassan Haghighi
    International Journal of Computational Intelligence Systems, 2020, 13 : 1161 - 1175
  • [37] Evolutionary generation of test data for EFSM based on irrelevant variable separation
    Pan X.
    Hao S.
    Yuan Z.
    Song N.
    Beijing Hangkong Hangtian Daxue Xuebao/Journal of Beijing University of Aeronautics and Astronautics, 2019, 45 (05): : 919 - 929
  • [38] Automatic Test Data Generation Based On Multi-Objective Ant Lion Optimization Algorithm
    Singh, Mayank
    Srivastava, Viranjay M.
    Gaurav, Kumar
    Gupta, P. K.
    2017 PATTERN RECOGNITION ASSOCIATION OF SOUTH AFRICA AND ROBOTICS AND MECHATRONICS (PRASA-ROBMECH), 2017, : 168 - 174
  • [39] Evolutionary generation of regression test data
    Ren, L.-N. (qianjie180@126.com), 1600, Science Press (37): : 489 - 499
  • [40] Test Data Generation for Mutation Testing Based on Markov Chain Usage Model and Estimation of Distribution Algorithm
    Wei, Changqing
    Yao, Xiangjuan
    Gong, Dunwei
    Liu, Huai
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2024, 50 (03) : 551 - 573