Method and apparatus for testing object-oriented programming constructs
First Claim
1. A method for testing a subject class in an object-oriented digital data processing system, said method comprising the step of:
- (A) responding to a source signal defining said subject class to generate an inspection signal defining an inspection class having one or more members for(i) creating a test object as an instantiation of any of said subject class and a class derived therefrom,(ii) invoking one or more selected method members of said test object,(iii) generating a signal, hereinafter referred to as a report signal, reporting an effect of such invocation.
11 Assignments
0 Petitions
Accused Products
Abstract
The invention provides methods and apparatus for generating, from a source signal defining a subject class to be tested, an inspection signal defining an inspection class that has one or more members for (i) generating a test object as an instantiation of the subject class or a class derived therefrom, (ii) invoking one or more selected method members of the test object, and (iii) generating a reporting signal based upon an outcome of invocation of those members. he inspection class, as defined by the inspection signal, can include one or more method members, referred to as "inspection members," for testing corresponding method members of the test object (and, therefore, in the subject class). So-called "test suite members," that are also defined as part of the inspection class, exercise the inspection members. The invention also provides methods and apparatus for responding to an inspection signal to create an inspection object instantiating the inspection class. Members of the inspection object are invoked to create the test object, to invoke method members thereof and to generate a signal reporting an effect of such invocation. The test object members can be invoked by corresponding inspection members of the inspection class, which in turn can be invoked by test suite members of the inspection class.
-
Citations
92 Claims
-
1. A method for testing a subject class in an object-oriented digital data processing system, said method comprising the step of:
(A) responding to a source signal defining said subject class to generate an inspection signal defining an inspection class having one or more members for (i) creating a test object as an instantiation of any of said subject class and a class derived therefrom, (ii) invoking one or more selected method members of said test object, (iii) generating a signal, hereinafter referred to as a report signal, reporting an effect of such invocation. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33)
-
34. A method for testing a subject class in an object-oriented digital data processing system, said method comprising:
-
(A) creating an inspection object as an instantiation of an inspection class having one or more members for (i) creating a test object as an instantiation of any of said subject class and a class derived therefrom, (ii) invoking one or more selected method members of said test object, (iii) generating a signal, hereinafter referred to as a report signal, reporting an effect of such invocation (B) invoking one or more members of said inspection object to (i) create said test object, (ii) invoke one or more selected method members of said test object, (iii) generate a signal, hereinafter referred to as a report signal, reporting an effect of such invocation. - View Dependent Claims (35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49)
-
-
50. Apparatus for testing a subject class in an object-oriented digital data processing system, said apparatus comprising:
-
(A) code generator means for responding to a source signal defining said subject class to generate an inspection signal defining an inspection class having one or more members for (i) creating a test object as an instantiation of any of said subject class and a class derived therefrom, (ii) invoking one or more selected method members of said test object, (iii) generate a signal, hereinafter referred to as a report signal, reporting an effect of such invocation, and (B) test harness means, coupled to said code generator means, for responding to said inspection signal for creating an inspection object instantiating said inspection class, and for generating an inspection object invocation signal for invoking one or more members thereof. - View Dependent Claims (51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68)
-
-
69. Apparatus for testing a subject class in an object-oriented digital data processing system, said apparatus comprising:
-
test harness means for responding to an inspection signal defining an inspection class having one or more members for (i) creating a test object as an instantiation of any of said subject class and a class derived therefrom, (ii) invoking one or more selected method members of said test object, (iii) generating a signal, hereinafter referred to as a report signal, reporting an effect of such invocation for creating an inspection object instantiating an inspection class, and for generating an inspection object invocation signal for invoking one or members thereof, (B) inspection object execution means, coupled to said test harness means, for responding to said inspection object invocation signal for (i) creating said test object, (ii) generating a test object invocation signal to invoke one or more selected method members of said test object, (iii) generate a signal, hereinafter referred to as a report signal, reporting an effect of such invocation, (C) test object execution means, coupled to said inspection object execution means, for responding to said test object invocation signal to execute one or more selected method members thereof. - View Dependent Claims (70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80)
-
-
81. An object-oriented computer program having a subject class tested by a method comprising the step of:
(A) responding to a source signal defining said subject class to generate inspection signal defining an inspection class having one or more members for (i) creating a test object as an instantiation of any of said subject class and a class derived therefrom, (ii) invoking one or more selected method members of said test object, (iii) generating a signal, hereinafter referred to as a report signal, reporting an effect of such invocation. - View Dependent Claims (82, 83, 84)
-
85. An object-oriented computer program having a subject class tested by a method comprising:
-
(A) creating an inspection object as an instantiation of an inspection class having one or more members for (i) creating a test object as an instantiation of any of said subject class and a class derived therefrom, (ii) invoking one or more selected method members of said test object, (iii) generating a signal, hereinafter referred to as a report signal, reporting an effect of such invocation (B) invoking one or more members of said inspection object to (i) create said test object, (ii) invoke one or more selected method members of said test object, (iii) generate a signal, hereinafter referred to as a report signal, reporting an effect of such invocation. - View Dependent Claims (86, 87, 88, 89, 90, 91, 92)
-
Specification