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 条
  • [41] Modeling and Validating the Train Fare Calculation and Adjustment System Using VDM plus
    Nguyen Van Tang
    Souma, Daisuke
    Hatayama, Goro
    Ohsaki, Hitoshi
    VERIFIED SOFTWARE: THEORIES, TOOLS, EXPERIMENTS, 2012, 7152 : 163 - +
  • [42] Validation support for distributed real-time embedded systems in VDM plus
    Fitzgerald, John S.
    Larsen, Peter Gorm
    Tjell, Simon
    Verhoef, Marcel
    HASE 2007: 10TH IEEE HIGH ASSURANCE SYSTEMS ENGINEERING SYMPOSIUM, PROCEEDINGS, 2007, : 331 - +
  • [43] From Technological Specifications to Beta Version: The Development of the Imprint plus Web App
    Beca, Pedro
    Amado, Pedro
    Antunes, Maria Joao
    Matos, Milene
    Ferreira, Eduardo
    Alves, Armando
    Couto, Andre
    Marques, Rafael
    Pinho, Rosa
    Lopes, Lisia
    Carvalho, Joao
    Fonseca, Carlos
    CITIZEN, TERRITORY AND TECHNOLOGIES: SMART LEARNING CONTEXTS AND PRACTICES, 2018, 80 : 179 - 188
  • [44] Object Model Construction for Inheritance in C plus plus and Its Applications to Program Analysis
    Yang, Jing
    Balakrishnan, Gogul
    Maeda, Naoto
    Ivancic, Franjo
    Gupta, Aarti
    Sinha, Nishant
    Sankaranarayanan, Sriram
    Sharma, Naveen
    COMPILER CONSTRUCTION, CC 2012, 2012, 7210 : 144 - 164
  • [45] DeClassifier: Class-Inheritance Inference Engine for Optimized C plus plus Binaries
    Erinfolami, Rukayat Ayomide
    Prakash, Aravind
    PROCEEDINGS OF THE 2019 ACM ASIA CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY (ASIACCS '19), 2019, : 28 - 40
  • [46] A C plus plus framework for geometric semantic genetic programming
    Castelli, Mauro
    Silva, Sara
    Vanneschi, Leonardo
    GENETIC PROGRAMMING AND EVOLVABLE MACHINES, 2015, 16 (01) : 73 - 81
  • [47] Use of the Mediator Design Pattern in the LaSRS plus plus framework
    Cunningham, K
    AIAA MODELING AND SIMULATION TECHNOLOGIES CONFERENCE: A COLLECTION OF TECHNICAL PAPERS, 1999, : 531 - 537
  • [48] Motion Generation in the MRROC plus plus Robot Programming Framework
    Zielinski, Cezary
    Winiarski, Tomasz
    INTERNATIONAL JOURNAL OF ROBOTICS RESEARCH, 2010, 29 (04): : 386 - 413
  • [49] An Extension of the Athena plus plus Framework for General Equations of State
    Coleman, Matthew S. B.
    ASTROPHYSICAL JOURNAL SUPPLEMENT SERIES, 2020, 248 (01):
  • [50] Simulation of lithium transport using the BOUT plus plus framework
    Wang, Y. M.
    Xu, X. Q.
    Wang, Z.
    Li, N. M.
    Yang, X. D.
    Sun, Z.
    Xia, T. Y.
    Zhang, L.
    Wang, Z. H.
    Gao, X.
    COMPUTER PHYSICS COMMUNICATIONS, 2021, 269