Object-oriented class test data generation method
The invention discloses an object-oriented class test data generation method. The method comprises the following steps of establishing an object visual storage model according to class definition information and a class inheritance relational graph of a tested program; creating a semantic mapping be...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses an object-oriented class test data generation method. The method comprises the following steps of establishing an object visual storage model according to class definition information and a class inheritance relational graph of a tested program; creating a semantic mapping between a class member method and an object abstraction storage model, and generating method summary information of the class member method; generating a program logical path set according to a function flow chart and a function call relational graph; adopting a static symbolic execution method to execute a path in the program logical path set; obtaining a constraint set in the object abstraction storage model; and calculating the constraint set solution satisfied by the class members, and calling a special configuration method to assemble and generate the class object test data. Through the technical scheme of the object-oriented class test data generation method, the problem that the object-oriented software test cannot be accurately supported in the prior art is solved; and in addition, the generation efficiency and the test automation of the software test data are improved, and the purpose of automatic generation of the object-oriented class test data is fulfilled. |
---|