Computer method and system for automatically creating tests for checking software
First Claim
1. A method for automatically generating a test source code for checking validity of a subject application written in an object oriented language, the subject application having objects accessible through an interface implementing programming rules and object behavior rules, said method comprising the steps of:
- a—
selecting one of the objects of the subject application and reading information defining the one object;
b—
using computer automation, extracting from the selected object a definition, object methods and attributes of the object interface which are impacted by the object behavior rules and object identification; and
c—
using computer automation, filling the variable fields of a template of source code with the extracted information, said template non variable source code being in conformance with the programming rules and implementing a scenario for checking a set of object behavior rules, said filled template forming a generated test source code.
1 Assignment
0 Petitions
Accused Products
Abstract
Computer system and method automatically generates a test source code for checking validity of an application written in an object oriented language. The application includes objects accessible through an interface implementing programming rules and object behavior rules. For each object, the invention extracts object methods and attributes of the object interface which are impacted by the object behavior rules and extracts the object identification. The invention fills the variable fields of a source code template with the extracted information. The template non variable source code is in conformance with the programming rules and implements a scenario for checking a set of object behavior rules; thus the filled template forms a generated test source code. For distributed applications, the specifications may be EJB or CORBA and the Test Generator uses templates for checking the life-cycle (creation, persistency, removal) of deployed objects.
204 Citations
20 Claims
-
1. A method for automatically generating a test source code for checking validity of a subject application written in an object oriented language, the subject application having objects accessible through an interface implementing programming rules and object behavior rules, said method comprising the steps of:
-
a—
selecting one of the objects of the subject application and reading information defining the one object;
b—
using computer automation, extracting from the selected object a definition, object methods and attributes of the object interface which are impacted by the object behavior rules and object identification; and
c—
using computer automation, filling the variable fields of a template of source code with the extracted information, said template non variable source code being in conformance with the programming rules and implementing a scenario for checking a set of object behavior rules, said filled template forming a generated test source code. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A computer program product for automatically generating a test source code for checking validity of a subject application, the computer program product comprising a computer usable medium having a computer readable program wherein the computer readable program when executed on a computer causes the computer to:
-
(a) select one object of the subject application and read information defining the object, wherein the subject application is written in an object oriented language and has objects accessible through an interface implementing programming rules and object behavior rules;
(b) extract from the selected object a definition, object methods and attributes of the object interface which are impacted by the object behavior rules and object identification;
(c) fill fields of a source code template with the extracted information, said template non variable source code being in conformance with the programming rules and implementing a scenario for checking a set of object behavior rules, said filled template forming a generated test source code. - View Dependent Claims (14, 15, 16)
-
-
17. Computer apparatus for automatically generating a test source code for checking validity of a subject application comprising:
-
means for selecting an object of the subject application and reading information defining the object, wherein the subject application is written in an object oriented language and has objects accessible through an interface implementing programming rules and object behavior rules;
means for automatically extracting from the selected object a definition, object methods and attributes of the object interface which are impacted by the object behavior rules and object identification; and
means for automatically filling fields of a template of source code with the extracted information, said template non variable source code being in conformance with the programming rules and implementing a scenario for checking a set of object behavior rules, said filled template forming a generated test source code. - View Dependent Claims (18, 19, 20)
-
Specification