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 条
  • [1] A Novel Assertions-Based Code Coverage Automatic CAD Tool
    El-Kharashy, Hatem
    Khamis, Mostafa
    Salah, Amr
    Korany, Mohammed
    17TH IEEE INTERNATIONAL CONFERENCE ON SMART TECHNOLOGIES - IEEE EUROCON 2017 CONFERENCE PROCEEDINGS, 2017, : 277 - 281
  • [2] Forward Slicing Algorithm based Test Data Generation
    Samuel, Philip
    Surendran, Anupama
    PROCEEDINGS OF 2010 3RD IEEE INTERNATIONAL CONFERENCE ON COMPUTER SCIENCE AND INFORMATION TECHNOLOGY (ICCSIT 2010), VOL 8, 2010, : 270 - 274
  • [3] PAIRWISE TEST DATA GENERATION BASED ON FLOWER POLLINATION ALGORITHM
    Nasser, Abdullah B.
    Alsewari, AbdulRahman A.
    Tairan, Nasser M.
    Zamli, Kamal Z.
    MALAYSIAN JOURNAL OF COMPUTER SCIENCE, 2017, 30 (03) : 242 - 257
  • [4] MC/DC Test Data Generation Algorithm Based on Whale Genetic Algorithm
    LIU Huiying
    LIU Ziyang
    YAN Minghui
    Instrumentation, 2022, 9 (02) : 1 - 12
  • [5] An Efficient SAT-Based Test Generation Algorithm with GPU Accelerator
    Osama, Muhammad
    Gaber, Lamya
    Hussein, Aziza I.
    Mahmoud, Hanafy
    JOURNAL OF ELECTRONIC TESTING-THEORY AND APPLICATIONS, 2018, 34 (05): : 511 - 527
  • [6] An Efficient SAT-Based Test Generation Algorithm with GPU Accelerator
    Muhammad Osama
    Lamya Gaber
    Aziza I. Hussein
    Hanafy Mahmoud
    Journal of Electronic Testing, 2018, 34 : 511 - 527
  • [7] Test Data Generation Algorithm of Combinatorial Testing Based on Differential Evolution
    Wang Jianfeng
    Wei Chang'an
    Jiang Shouda
    2013 THIRD INTERNATIONAL CONFERENCE ON INSTRUMENTATION & MEASUREMENT, COMPUTER, COMMUNICATION AND CONTROL (IMCCC), 2013, : 544 - 548
  • [8] Automated test data generation algorithm based on reversed binary tree
    Li, Jun-Yi
    Sun, Ha-Guang
    SNPD 2007: EIGHTH ACIS INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, ARTIFICIAL INTELLIGENCE, NETWORKING, AND PARALLEL/DISTRIBUTED COMPUTING, VOL 3, PROCEEDINGS, 2007, : 1124 - +
  • [9] EFFICIENT PATH-ORIENTED TEST DATA GENERATION ALGORITHM FOR EFSM WITH SIMULATED ANNEALING
    Cheng, Xichao
    Cheng, Yong
    Zhao, Ruilian
    THIRD INTERNATIONAL CONFERENCE ON COMPUTER ENGINEERING AND TECHNOLOGY (ICCET 2011), 2011, : 665 - 670
  • [10] Mutated Specification-Based Test Data Generation with a Genetic Algorithm
    Wang, Rong
    Sato, Yuji
    Liu, Shaoying
    MATHEMATICS, 2021, 9 (04) : 1 - 19