Computer method and system for automatically creating tests for checking software
First Claim
1. A method of automatic testing 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 information from the selected object, the extracted information including a definition, object methods and attributes of the object interface which are impacted by the object behavior rules and object identification;
c—
using computer automation, providing a template of source code, the template having variable fields and fixed portions of source code; and
d—
using computer automation, filling the variable fields of the template with the extracted information, said template fixed portions of source code being in conformance with the programming rules and implementing a scenario for checking a set of object behavior rules, said filling resulting in an automatically generated test source code and in an automatic testing of the subject application by the generated test source code checking logic validity of the subject application independently of testing semantics.
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.
116 Citations
20 Claims
-
1. A method of automatic testing 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 information from the selected object, the extracted information including a definition, object methods and attributes of the object interface which are impacted by the object behavior rules and object identification;c—
using computer automation, providing a template of source code, the template having variable fields and fixed portions of source code; andd—
using computer automation, filling the variable fields of the template with the extracted information, said template fixed portions of source code being in conformance with the programming rules and implementing a scenario for checking a set of object behavior rules, said filling resulting in an automatically generated test source code and in an automatic testing of the subject application by the generated test source code checking logic validity of the subject application independently of testing semantics. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A computer program product for automatic testing of a subject application, the computer program product comprising a computer usable storage 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 information from the selected object, the extracted information including 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 template with the extracted information, the template being a template of source code and the template having variable fields and fixed portions of source code, said template fixed portions of source code being in conformance with the programming rules and implementing a scenario for checking a set of object behavior rules, said filled template resulting in an automatically generated test source code and in an automatic testing of the subject application by the generated test source code checking logic validity of the subject application independently of testing semantics. - View Dependent Claims (14, 15, 16)
-
-
17. Computer apparatus for automatic testing 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 information from the selected object including extracting 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 having fixed portions of source code being in conformance with the programming rules and implementing a scenario for checking a set of object behavior rules, said filled template resulting in an automatically generated test source code and in an automatic testing of the subject application by the generated test source code checking logic validity of the subject application independent of testing semantics. - View Dependent Claims (18, 19, 20)
-
Specification