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] A New Method of Test Data Generation for Branch Coverage in Software Testing Based on EPDG and Genetic Algorithm
    Chen, Ciyong
    Xu, Xiaofeng
    Chen, Yan
    Li, Xiaochao
    Guo, Donghui
    PROCEEDINGS OF THE 3RD INTERNATIONAL CONFERENCE ON ANTI-COUNTERFEITING, SECURITY, AND IDENTIFICATION IN COMMUNICATION, 2009, : 307 - +
  • [42] Eccentric Test Data Generation for Path Testing Using Genetic Algorithm
    Mishra, Punam
    Mishra, Bhabani Shankar Prasad
    PROCEEDINGS OF 2009 INTERNATIONAL CONFERENCE ON COMPUTER ENGINEERING AND APPLICATIONS, 2009, : 613 - 616
  • [43] An Evolutionary Generation Method of Test Data for Multiple Paths Based on Coverage Balance
    Fan, Shuping
    Yao, Nianmin
    Wan, Li
    Ma, Baoying
    Zhang, Yan
    IEEE ACCESS, 2021, 9 : 86759 - 86772
  • [44] Choreography Scenario-based Test Data Generation
    Ma, Kai
    Wang, Jin
    Yang, Hongli
    Yan, Jun
    Zhang, Jian
    Qin, Shengchao
    2014 THEORETICAL ASPECTS OF SOFTWARE ENGINEERING CONFERENCE (TASE), 2014, : 70 - 73
  • [45] XML-BASED AUTOMATIC TEST DATA GENERATION
    Bulbul, Halil Ibrahim
    Bakir, Turgut
    COMPUTING AND INFORMATICS, 2008, 27 (04) : 681 - 698
  • [46] A Path-Oriented Test Data Generation Approach Hybridizing Genetic Algorithm and Artificial Immune System
    Bhattacharjee, Gargi
    Saluja, Ashish Singh
    COMPUTATIONAL INTELLIGENCE IN DATA MINING, 2019, 711 : 649 - 658
  • [47] Research on Automatic Test Case Generation Based on Genetic Algorithm
    Liu, Yang
    Wang, Dan
    Fu, Li-Hua
    INTERNATIONAL CONFERENCE ON COMPUTER SCIENCE AND COMMUNICATION ENGINEERING (CSCE 2015), 2015, : 939 - 946
  • [48] Specification-based Test Case Generation with Genetic Algorithm
    Wang, Rong
    Sato, Yuji
    Liu, Shaoying
    2019 IEEE CONGRESS ON EVOLUTIONARY COMPUTATION (CEC), 2019, : 1382 - 1389
  • [49] Test data generation based on automatic division of path
    Liao W.-Z.
    Liao, Wei-Zhi (weizhiliao2002@aliyun.com), 1600, Chinese Institute of Electronics (44): : 2254 - 2261
  • [50] Rings: A Game with a Purpose for Test Data Generation
    Amiri-Chimeh, Saeed
    Haghighi, Hassan
    Vahidi-Asl, Mojtaba
    Setayesh-Ghajar, Kamyar
    Gholami-Ghavamabad, Farshad
    INTERACTING WITH COMPUTERS, 2018, 30 (01) : 1 - 30