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] Directed Test Generation for Activation of Security Assertions in RTL Models
    Witharana, Hasini
    Lyu, Yangdi
    Mishra, Prabhat
    ACM TRANSACTIONS ON DESIGN AUTOMATION OF ELECTRONIC SYSTEMS, 2021, 26 (04)
  • [32] An Efficient Algorithm for Computing Elected Assertions in Partially Preordered Ontologies
    Belabbes, Sihem
    Benferhat, Salem
    2021 IEEE 33RD INTERNATIONAL CONFERENCE ON TOOLS WITH ARTIFICIAL INTELLIGENCE (ICTAI 2021), 2021, : 1332 - 1336
  • [33] Efficient Generation of Test Data with Extended Cardinality Constraints
    Larouche, Michael
    Halle, Sylvain
    2019 IEEE 19TH INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY (QRS 2019), 2019, : 386 - 393
  • [34] Automatic Test Data Generation Using a Genetic Algorithm
    Aleb, Nassima
    Kechid, Samir
    COMPUTATIONAL SCIENCE AND ITS APPLICATIONS - ICCSA 2013, PT II, 2013, 7972 : 574 - 586
  • [35] Research of Searching Algorithm for Path Test Data Generation
    Zhang Zhonglin
    Jia Limin
    Mei Lingxia
    ICCSSE 2009: PROCEEDINGS OF 2009 4TH INTERNATIONAL CONFERENCE ON COMPUTER SCIENCE & EDUCATION, 2009, : 842 - 844
  • [36] Evolutionary Algorithm for Prioritized Pairwise Test Data Generation
    Ferrer, Javier
    Kruese, Peter
    Chicano, Francisco
    Alba, Enrique
    PROCEEDINGS OF THE FOURTEENTH INTERNATIONAL CONFERENCE ON GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE, 2012, : 1213 - 1220
  • [37] Analysis of searching algorithm for path test data generation
    Software Engineering Department, Armed Force Engineering Institute, Beijing 100072, China
    Jisuanji Gongcheng, 2006, 1 (74-76):
  • [38] A HYBRID BACKTRACKING ALGORITHM FOR AUTOMATIC TEST DATA GENERATION
    Xing, Ying
    Gong, Yunzhan
    Zhou, Xiaoguang
    Wang, Ludi
    Yang, Mengke
    Zhang, Chi
    Dong, Yukun
    TEHNICKI VJESNIK-TECHNICAL GAZETTE, 2017, 24 (03): : 761 - 768
  • [39] AN EFFICIENT ALGORITHM FOR SEQUENTIAL-CIRCUIT TEST-GENERATION
    KELSEY, TP
    SALUJA, KK
    LEE, SY
    IEEE TRANSACTIONS ON COMPUTERS, 1993, 42 (11) : 1361 - 1371
  • [40] An Efficient Algorithm for Pairwise Test Case Generation in Presence of Constraints
    Gao, Shiwei
    Du, Binglei
    Jiang, Yaruo
    Lv, Jianghua
    Ma, Shilong
    2014 2ND INTERNATIONAL CONFERENCE ON SYSTEMS AND INFORMATICS (ICSAI), 2014, : 406 - 410