A Framework for Testing Object Oriented Software Using Formal Speci cations
نویسنده
چکیده
In this paper we develop a framework for semi-automated generation of test cases for object oriented programs from formal speci-cations. We use Object-Z as the formal speciication language. We have designed and prototyped a test system called OZTEST. It understands the characteristics of object-oriented speciications including inheritance. OZTEST maps the speciication to a corresponding implementation. Test shells generated from the given Object-Z speciication are stored as test scripts. OZTEST chooses the test shells to be executed in a particular test-session based on user given criteria. A test class is created by inheriting from the class being tested. The child class thus has all the features of the class being tested, in addition to the routines to test the parent. The results of the test are stored in a le for veriication.
منابع مشابه
A Theory-Based Representation for Object-Oriented Domain Models Accepted for publication IEEE Transations on Software Engineering
Formal software speci cation has long been touted as a way to increase the quality and reliability of software; however, it remains an intricate, manually intensive activity. An alternative to using formal speci cations directly is to translate graphically-based, semiformal speci cations into formal speci cations. However, before this translation can take place, a formal de nition of basic obje...
متن کاملExecutable Speci cations in Software Reliability Engineering
Bernhard K. Aichernig Technical University Graz, Institute for Software Technology (IST), M unzgrabenstr. 11/II, A-8010 Graz, Austria E-mail: [email protected] In the Handbook of Software Reliability, Lyu mentions the use of formal methods for fault removal [9]: \When formal methods are in full swing, formal design proofs might be available to achieve mathematical proof of correctnes...
متن کاملEnsuring Correctness of Java Frameworks A Formal Look at JCF
In this paper we propose a novel approach to speci cation development and veri cation of object oriented frameworks employing separate interface inheritance and implementation inheritance hierarchies In particular we il lustrate how our method of framework speci cation and veri cation can be used to specify Java Collections Framework which is a part of the standard Java Development Kit and ensu...
متن کاملRepresenting Object Models as Theories
Although techniques for using formal speci cations have been progressing, methods for developing formal speci cations themselves have improved little. To alleviate this problem, we propose a parallel re nement approach to speci cation acquisition where the designer uses an object-oriented speci cation representation while an underlying speci cation composition system manipulates an equivalent t...
متن کاملAutomatically verifying an object-oriented specification of the Steam-Boiler system
Correctness is a desired property of industrial software systems. Although the employment of formal methods and their veri(cation techniques in embedded real-time systems has started to be a common practice, the same cannot be said about object-oriented software. This paper presents an experiment of a technique for the automated veri(cation of a subset of the object-oriented language OBject LOG...
متن کامل