Using contracts and boolean queries to improve the quality of automatic test generation

被引:0
|
作者
Liu, Lisa [1 ]
Meyer, Bertrand [1 ]
Schoeller, Bernd [1 ]
机构
[1] ETH, Zurich, Switzerland
来源
TESTS AND PROOFS | 2007年 / 4454卷
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Since test cases cannot be exhaustive, any effective test case generation strategy must identify the execution states most likely to uncover bugs. The key issue is to define criteria for selecting such interesting states. If the units being tested are classes in object-oriented programming, it seems attractive to rely on the boolean queries present in each class, which indeed define criteria on the states of the corresponding objects, and - in contract-equipped O-O software - figure prominently in preconditions, postconditions and invariants. As these queries are part of the class specification and hence relevant to its clients, one may conjecture that the resulting partition of the state space is also relevant for tests. We explore this conjecture by examining whether relying on the boolean queries of a class to extract abstract states improves the results of black-box testing. The approach uses constraint-solving and proof techniques to generate objects that satisfy the class invariants, then performs testing by relying on postconditions as test oracles. The resulting strategy, in our experiments on library classes used in production software, finds significantly more bugs than random testing.
引用
收藏
页码:114 / +
页数:3
相关论文
共 50 条
  • [31] 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
  • [32] Automatic Test Image Generation using Procedural Noise
    Patrick, Matthew
    Castle, Matthew D.
    Stutt, Richard O. J. H.
    Gilligan, Christopher A.
    2016 31ST IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE), 2016, : 654 - 659
  • [33] Automatic Test Data Generation Using Particle Systems
    Bueno, Paulo M. S.
    Wong, W. Eric
    Jino, Mario
    APPLIED COMPUTING 2008, VOLS 1-3, 2008, : 809 - +
  • [34] Boolean and Pseudo-Boolean Test Generation for Feedback Bridging Faults
    Favalli, Michele
    Dalpasso, Marcello
    IEEE TRANSACTIONS ON COMPUTERS, 2016, 65 (03) : 706 - 715
  • [35] Automatic Generation of Service Composition Plans for Correlated Queries
    Zhang, Feng
    Wang, Guiling
    Han, Yanbo
    2013 10TH WEB INFORMATION SYSTEM AND APPLICATION CONFERENCE (WISA 2013), 2013, : 143 - +
  • [36] Incremental test data generation for database queries
    Jose Suarez-Cabal, Maria
    de la Riva, Claudio
    Tuya, Javier
    Blanco, Raquel
    AUTOMATED SOFTWARE ENGINEERING, 2017, 24 (04) : 719 - 755
  • [37] Incremental test data generation for database queries
    María José Suárez-Cabal
    Claudio de la Riva
    Javier Tuya
    Raquel Blanco
    Automated Software Engineering, 2017, 24 : 719 - 755
  • [38] Using Deep Autoencoders to Improve the Accuracy of Automatic Playlist Generation
    Jakheliya, Bhumil
    Kothari, Raj
    Darji, Sagar
    Joshi, Abhijit
    INNOVATIVE DATA COMMUNICATION TECHNOLOGIES AND APPLICATION, 2020, 46 : 626 - 636
  • [39] Provably Optimal Test Cube Generation using Quantified Boolean Formula Solving
    Sauer, Matthias
    Reimer, Sven
    Polian, Ilia
    Schubert, Tobias
    Becker, Bernd
    2013 18TH ASIA AND SOUTH PACIFIC DESIGN AUTOMATION CONFERENCE (ASP-DAC), 2013, : 533 - 539
  • [40] Multi-objective evolutionary algorithms in the automatic learning of Boolean queries: A comparative study
    Lopez-Herrera, A. G.
    Herrera-Viedma, E.
    Herrera, F.
    Porcel, C.
    Alonso, S.
    THEORETICAL ADVANCES AND APPLICATIONS OF FUZZY LOGIC AND SOFT COMPUTING, 2007, 42 : 71 - +