This paper presents an approach for extending the constraint model defined for conformity testing of a given method of class to its overriding method in subclass using inheritance principle. The first objective of the proposed work is to find the relationship between the test model of an overriding method and its overridden method using the constraint propagation. In this context the approach shows that the test cases developed for testing an original method can be used for testing its overriding method in a subclass and then the number of test cases can be reduced considerably. The second objective is the use of invalid data which do not satisfy the precondition constraint and induce valid output values for introducing a new concept of test called secure testing. The implementation of this approach is based on a random generation of test data and analysis by formal proof.
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.
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.