In this paper we present a new test model of object oriented (OO) programs for testing conformity and robustness from formal specifications. The main contribution of this work is a robustness approach based on invalid input data that do not satisfy the precondition constraint of the program under test. This additional test is used to strengthen the conformity test of programs and to enrich the concept of test by detecting other contract anomalies between user and programs. The approach of this work shows that the test cases developed for testing an original method can be used for testing its overriding method in derived classes by inheritance operation and then the number of test cases can be reduced considerably. In this context we can use a single generator of test data to verify both conformity and robustness, thus making it possible to increase the level of automation during the whole testing process.
The work presented in this paper proposes a formal model of constraints for testing the conformity of an implementation from its specification. The principal idea of our approach is based on an equivalence partitioning of input domains for each method type in an object oriented (OO) paradigm for detecting the different classes of errors. The main contribution of our approach is the use of invalid data which do not satisfy the precondition constraints for testing the robustness of entities in an OO model. Indeed, the first objective of the proposed work is to develop a theoretical model of constraint in order to test the conformity of classes. The second objective of our approach is to detect anomalies in invalid input data which induce valid output constraints. The implementation of this approach is based on a random generation of test data and analysis by formal proof.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.