A framework for inheritance testing from VDM plus plus specifications

被引:0
|
作者
Nadeem, Aamer [1 ]
Lyu, Michael R. [2 ]
机构
[1] Mohammad Ali Jinnah Univ, Ctr Software Dependabil, Islamabad, Pakistan
[2] Chinese Univ Hong Kong, Dept Comp Sci & Engn, Hong Kong, Hong Kong, Peoples R China
关键词
formal specification; test-case generation; specification-based testing;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The benefits offered by the use of formal methods are not limited to avoidance of specification errors and elimination of ambiguities only - a formal specification also provides a sound basis for generating test suites. Inheritance is a powerful mechanism in object-oriented paradigm by which a subclass inherits data and functionality of a super class. Testing of inheritance relationships is crucial in object-oriented testing, as an inheritance error may lead to subtle bugs such as due to overridden functionality. In this paper, we introduce a technique to generate test cases for inheritance testing, using a VDM++ formal specification. The proposed technique is based on the flattening of a VDM++ specification class, and then generating operation sequences from the trace structure specified in the VDM++ specification. The input space for each operation is partitioned, and a test model is constructedfrom the operation sequences and the input partitions. Test paths are generated from the test model, which cover the different operation sequences as well as the partitions. We also define various coverage criteria for test path generation.
引用
收藏
页码:81 / +
页数:2
相关论文
共 50 条
  • [21] Devil is Virtual: Reversing Virtual Inheritance in C plus plus Binaries
    Erinfolami, Rukayat Ayomide
    Prakash, Aravind
    CCS '20: PROCEEDINGS OF THE 2020 ACM SIGSAC CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY, 2020, : 133 - 148
  • [22] LiteMat, an Encoding Scheme with RDFS plus plus and Multiple Inheritance Support
    Cure, Olivier
    Xu, Weiqin
    Naacke, Hubert
    Calvez, Philippe
    SEMANTIC WEB: ESWC 2019 SATELLITE EVENTS, 2019, 11762 : 269 - 284
  • [23] Formal Verification of Object Layout for C plus plus Multiple Inheritance
    Ramananandro, Tahina
    Dos Reis, Gabriel
    Leroy, Xavier
    ACM SIGPLAN NOTICES, 2011, 46 (01) : 67 - 79
  • [24] Testing C plus plus Generic Libraries
    Sutton, Andrew
    Zalewski, Marcin
    2012 28TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE (ICSM), 2012, : 36 - 45
  • [25] What You Simulate Is What You Synthesize: Designing a Processor Core from C plus plus Specifications
    Rokicki, Simon
    Pala, Davide
    Paturel, Joseph
    Sentieys, Olivier
    2019 IEEE/ACM INTERNATIONAL CONFERENCE ON COMPUTER-AIDED DESIGN (ICCAD), 2019,
  • [26] Measuring Function Points from VDM-SL Specifications
    Miyawaki, Tomoko
    Iijima, Junichi
    Ho, Sho
    2008 5TH INTERNATIONAL CONFERENCE ON SERVICE SYSTEMS AND SERVICE MANAGEMENT, VOLS 1 AND 2, 2008, : 76 - 81
  • [27] Automating the transformation from BPMN models to CSP plus T specifications
    Capel, Manuel I.
    Mendoza, Luis E.
    PROCEEDINGS OF THE 2012 IEEE 35TH SOFTWARE ENGINEERING WORKSHOP (SEW 2012), 2012, : 100 - 109
  • [28] CatlNet: Learning Communication and Coordination Policies from CaTL plus Specifications
    Liu, Wenliang
    Leahy, Kevin
    Serlin, Zachary
    Belta, Calin
    LEARNING FOR DYNAMICS AND CONTROL CONFERENCE, VOL 211, 2023, 211
  • [29] Robust Multi-Agent Coordination from CaTL plus Specifications
    Liu, Wenliang
    Leahy, Kevin
    Serlin, Zachary
    Belta, Calin
    2023 AMERICAN CONTROL CONFERENCE, ACC, 2023, : 3529 - 3534
  • [30] SpecEdit: Projectional Editing for TLA plus Specifications
    Cuinat, Riwan
    Teodorov, Ciprian
    Champeau, Joel
    2020 IEEE WORKSHOP ON FORMAL REQUIREMENTS (FORMREQ 2020), 2020, : 1 - 7