Skip to Main Content
A new polymorphism testing method for C++ software is presented in this paper, which is based on UML class diagram and UML sequence diagram. The testing course includes four steps. Firstly, the communicated messages among the classes are extracted from the UML sequence diagram file. Secondly, the classes messages are took out from UML class diagram file, which according with the polymorphism terms. Thirdly, instrumentations are inserted into the C++ software based on the results of second step. The communicated messages among the classes are recorded while software is running. Finally, two kinds of results are got from step one and step three, which are contrasted to obtain the testing results. The method is proved to be effective and feasible by an example.
Date of Conference: 15-17 April 2011