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 条
  • [41] Automatic test case generation using multi-protocol test method
    Lee, SI
    Park, YB
    Kim, MC
    Youn, HY
    Lee, B
    NINTH INTERNATIONAL CONFERENCE ON COMPUTER COMMUNICATIONS AND NETWORKS, PROCEEDINGS, 2000, : 360 - 366
  • [42] USING A TEST-SPECIFICATION FORMAT IN AUTOMATIC TEST-PROGRAM GENERATION
    VERHELST, B
    IEEE DESIGN & TEST OF COMPUTERS, 1990, 7 (01): : 39 - 45
  • [43] Boolean Games: Inferring Agents' Goals Using Taxation Queries
    Adiga, Abhijin
    Kraus, Sarit
    Maksimov, Oleg
    Ravi, S. S.
    PROCEEDINGS OF THE TWENTY-NINTH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, 2020, : 1585 - 1591
  • [44] Retesting Schemes That Improve Test Quality and Yield Using a Test Guardband
    Yeh, Chung-Huang
    Chen, Jwu-E
    ENG, 2023, 4 (04): : 3007 - 3025
  • [45] A Metric for Measuring Test Input Generation Effectiveness of Test Generation Methods for Boolean Expressions
    Ufuktepe, Deniz Kavzak
    Ufuktepe, Ekincan
    Ayav, Tolga
    2021 15TH TURKISH NATIONAL SOFTWARE ENGINEERING SYMPOSIUM (UYMS), 2021, : 8 - 13
  • [46] Towards Automatic Generation of Test Data using Branch Coverage
    Chen, Jifeng
    Yang, Luming
    ICCSSE 2009: PROCEEDINGS OF 2009 4TH INTERNATIONAL CONFERENCE ON COMPUTER SCIENCE & EDUCATION, 2009, : 921 - 925
  • [47] On the Evaluation of Software Maintainability Using Automatic Test Case Generation
    Nogueira, Ana Filipa
    Ribeiro, Jose C. B.
    Zenha-Rela, Mario A.
    2014 9TH INTERNATIONAL CONFERENCE ON THE QUALITY OF INFORMATION AND COMMUNICATIONS TECHNOLOGY (QUATIC), 2014, : 300 - 305
  • [48] Automatic analog test signal generation using multifrequency analysis
    Huynh, Sam D.
    Kim, Seongwon
    Soma, Mani
    Zhang, Jinyan
    IEEE Transactions on Circuits and Systems II: Analog and Digital Signal Processing, 1999, 46 (05): : 565 - 576
  • [49] Automatic analog test signal generation using multifrequency analysis
    Huynh, SD
    Kim, S
    Soma, M
    Zhang, JY
    IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS II-EXPRESS BRIEFS, 1999, 46 (05) : 565 - 576
  • [50] Automatic test generation using checkpoint encoding and antirandom testing
    Yin, HF
    LebneDengel, Z
    Malaiya, YK
    EIGHTH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING, PROCEEDINGS, 1997, : 84 - 95