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 条
  • [21] USING BOOLEAN QUERIES WITH A CLUSTERED FILE ORGANIZATION
    CROFT, WB
    JOURNAL OF THE AMERICAN SOCIETY FOR INFORMATION SCIENCE, 1979, 30 (06): : 358 - 359
  • [22] Using genetic algorithms for Boolean queries optimization
    Husek, Dusan
    Snasel, Vaclav
    Owais, Suhail S. J.
    Kromer, Pavel
    Proceedings of the Ninth IASTED International Conference on Internet and Multimedia Systems and Applications, 2005, : 178 - 184
  • [23] Encoding the Certainty of Boolean Variables to Improve the Guidance for Search-Based Test Generation
    Vogl, Sebastian
    Schweikl, Sebastian
    Fraser, Gordon
    PROCEEDINGS OF THE 2021 GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE (GECCO'21), 2021, : 1088 - 1096
  • [24] Sampling Query Variations for Learning to Rank to Improve Automatic Boolean Query Generation in Systematic Reviews
    Scells, Harrisen
    Zuccon, Guido
    Sharaf, Mohamed A.
    Koopman, Bevan
    WEB CONFERENCE 2020: PROCEEDINGS OF THE WORLD WIDE WEB CONFERENCE (WWW 2020), 2020, : 3041 - 3048
  • [25] Using Mutation Testing To Improve and Minimize Test Suites for Smart Contracts
    Nicourt, Enzo
    Kushigian, Benjamin
    Nandi, Chandrakana
    Falcone, Ylies
    2024 IEEE CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION, ICST 2024, 2024, : 341 - 352
  • [26] Spectral Test Generation for Boolean Expressions
    Ayav, Tolga
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2023, 33 (08) : 1239 - 1260
  • [27] Automatic Generation of Local Repairs for Boolean Programs
    Samanta, Roopsha
    Deshmukh, Jyotirmoy V.
    Emerson, E. Allen
    2008 FORMAL METHODS IN COMPUTER-AIDED DESIGN, 2008, : 213 - +
  • [28] An efficient diagnostic test pattern generation framework using Boolean satisfiability
    Zheng, Feijun
    Cheng, Kwang-Ting
    Yan, Xiaolang
    Moondanos, John
    Hanna, Ziyad
    PROCEEDINGS OF THE 16TH ASIAN TEST SYMPOSIUM, 2007, : 288 - +
  • [29] A method for processing Boolean queries using a result cache
    Cheong, JH
    Lee, SG
    Chun, J
    DATABASE AND EXPERT SYSTEMS APPLICATIONS, 2001, 2113 : 974 - 983
  • [30] Automatic Test Generation for Coverage Analysis Using CBMC
    Augeletti, Damiano
    Giunchiglia, Enrico
    Narizzano, Massimo
    Puddu, Alessandra
    Sabina, Salvatore
    COMPUTER AIDED SYSTEMS THEORY - EUROCAST 2009, 2009, 5717 : 287 - +