← Back to Patent Explorer
US5606661A Expired / Lapsed US ⏱️ 0.0 years remaining

Apparatus and method for scan-based testing in an object-oriented programming environment

Assignee: Hewlett Packard Development Co LP
•
Filing: 1995-06-07
•
Granted: 1997-02-25
•
Expires: 2015-06-07
📄 Original PDF 🌐 Google Patents 🔄 Sync Now

Abstract

Abstract An apparatus and method for testing objects in an object-oriented programming environment. The object class hierarchy is defined so that a TopObject has a constructor function that initializes a linked list when the first class in the hierarchy is instantiated to create the first object. Each time an object of a class in the TopObject class hierarchy is instantiated, the TopObject constructor adds an entry for the new object to the linked list. A TestObject accesses the list to perform a predetermined testing function on one or more of the objects in the system. The object hierarchy class can also be defined as having multiple inheritance such that a class in the program inherits program functionality from one class and inherits testing functionality from the test class.

Inventors

  • 👤 Larry L. Wear
  • 👤 Diana L. Magrey

Bibliographic Details

Application Number —
Jurisdiction US
Data Source google_patents
Last Synchronized 2026-11-04 20:57
CPC Classifications
G; G06; G06F; G06F11/00; G06F11/36; G06F11/3668; G06F11/3672; G06F11/3688

Claims Analysis

Total Claims: 20
Claim 1
Independent Claim 137 words
A method of testing individual objects in an object-oriented programming environment, comprising the steps, performed by a data processing system, of: establishing a container object that will be updated to contain a pointer to each newly instantiated object; establishing a function for the TopObject class that places in the container object a pointer to each newly created object when each new object is created; creating a new object that belongs to the TopObject class, thereby causing the function to add a pointer in the container object for the new object, wherein the new object contains a respective testing function; and performing a global testing function that will traverse the object pointers in the container object and will invoke the respective testing function within each object pointed to, in accordance with the object pointers in the container object.
Claim 2
Independent Claim 137 words
A method of testing individual objects in an object-oriented programming environment, comprising the steps, performed by a data processing system, of: establishing a container object that will be updated to contain a pointer to each newly instantiated object; establishing a function for the TopObject class that places in the container object a pointer to each newly created object when each new object is created; creating a new object that belongs to the TopObject class, thereby causing the function to add a pointer in the container object for the new object, wherein the new object contains a respective testing function; and performing a global testing function that will traverse the object pointers in the container object and will invoke the respective testing function within each object pointed to, in accordance with the object pointers in the container object.
Claim 3
Dependent Claim 20 words
The method of claim 1, wherein each object in the object-oriented programming environment contains a testing function for that object.
Claim 4
Dependent Claim 40 words
The method of claim 1, wherein the performing step further includes the step of performing a plurality of respective testing functions, wherein each respective testing function is within respective new objects pointed to by the entries in the container object.
Claim 5
Dependent Claim 50 words
The method of claim 1, wherein the performing step further includes the step of performing a single testing function within an object that is associated with a predetermined one of the entries in the container object, the predetermined one of the entries being indicated in accordance with an iterator function.
Claim 6
Dependent Claim 33 words
The method of claim 1, wherein the step of performing a testing function includes the step of testing the integrity of a data structure local to the object containing a respective testing function.
Claim 7
Dependent Claim 31 words
The method of claim 1, wherein the step of performing a testing function includes the step of testing the integrity of data local to the object containing a respective testing function.
Claim 8
Dependent Claim 21 words
The method of claim 1, wherein at least one of the objects tested has a data structure internal to that object.
Claim 9
Dependent Claim 26 words
The method of claim 1, wherein the container object is a static data structure that can be accessed by all objects in the object-oriented programming environment.
Claim 10
Dependent Claim 15 words
The method of claim 1, wherein the performing step is performed by a test object.
Claim 11
Dependent Claim 20 words
The method of claim 1, wherein the container object is a linked list in a TopObject of the TopObject class.
Claim 12
Dependent Claim 192 words
A computer program product, including computer usable medium having computer readable code embodied therein for testing individual objects in an object-oriented programming environment, the computer program product comprising: computer readable program code devices configured to cause a computer to effect establishing a container object that will be updated to contain a pointer to each newly instantiated object; computer readable program code devices configured to cause a computer to effect establishing a function for the TopObject class that places in the container object a pointer to each newly created object when each new object is created; computer readable program code devices configured to cause a computer to effect creating a new object that belongs to the TopObject class, thereby causing the function to add a pointer in the container object for the new object, wherein the new object contains a respective testing function; and computer readable program code devices configured to cause a computer to effect performing a global testing function that will traverse the object pointers in the container object and will invoke the respective testing function within each object pointed to, in accordance with the object pointers in the container object.
Claim 13
Dependent Claim 192 words
A computer program product, including computer usable medium having computer readable code embodied therein for testing individual objects in an object-oriented programming environment, the computer program product comprising: computer readable program code devices configured to cause a computer to effect establishing a container object that will be updated to contain a pointer to each newly instantiated object; computer readable program code devices configured to cause a computer to effect establishing a function for the TopObject class that places in the container object a pointer to each newly created object when each new object is created; computer readable program code devices configured to cause a computer to effect creating a new object that belongs to the TopObject class, thereby causing the function to add a pointer in the container object for the new object, wherein the new object contains a respective testing function; and computer readable program code devices configured to cause a computer to effect performing a global testing function that will traverse the object pointers in the container object and will invoke the respective testing function within each object pointed to, in accordance with the object pointers in the container object.
Claim 14
Dependent Claim 22 words
The computer program product of claim 11, wherein each object in the object-oriented programming environment contains a testing function for that object.
Claim 15
Dependent Claim 62 words
The computer program product of claim 11, wherein the computer readable program code devices configured to cause a computer to effect performing further includes computer readable program code devices configured to cause a computer to effect performing a plurality of respective testing functions, wherein each respective testing function is within respective new objects pointed to by the entries in the container object.
Claim 16
Dependent Claim 54 words
The computer program product of claim 11, wherein the computer readable program code devices configured to cause a computer to effect performing a testing function includes computer readable program code devices configured to cause a computer to effect testing the integrity of a data structure local to the object containing a respective testing function.
Claim 17
Dependent Claim 52 words
The computer program product of claim 11, wherein the computer readable program code devices configured to cause a computer to effect performing a testing function includes computer readable program code devices configured to cause a computer to effect testing the integrity of data local to the object containing a respective testing function.
Claim 18
Dependent Claim 23 words
The computer program product of claim 11, wherein at least one of the objects tested has a data structure internal to that object.
Claim 19
Dependent Claim 28 words
The computer program product of claim 11, wherein the container object is a static data structure that can be accessed by all objects in the object-oriented programming environment.
Claim 20
Dependent Claim 22 words
The computer program product of claim 11, wherein the container object is a linked list in a TopObject of the TopObject class.

References Cited (Backward Citations)

US5129083A Cited
US5255385A Cited
US5416900A Cited
US5357452A Cited
US5485617A Cited

USPTO Annuity & Maintenance Windows

Annuity Stage Window Opens Payment Deadline Surcharge Period Until Estimated Fee Status
3.5 Years (Year 4) 2000-02-25 2000-08-26 2001-02-25 $2000.00 Window Closed / Lapsed
7.5 Years (Year 8) 2004-02-25 2004-08-26 2005-02-25 $3760.00 Window Closed / Lapsed
11.5 Years (Year 12) 2008-02-25 2008-08-26 2009-02-25 $7700.00 Window Closed / Lapsed

Assigned Categories & Tags

No categories assigned to this patent yet.

Assign Category Tag