IP Library Granted Patent US 8,010,950
Granted Patent B1
US 8,010,950 · App. 11/775,467 · Granted Aug 30, 2011

Method and apparatus for testing a binding application programming interface

Assignee: Oracle America, Inc.
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 8,010,950
App. No.
11/775,467
Granted
Aug 30, 2011
Kind
B1
Abstract

One embodiment of the present invention provides a system for testing a binding Application Programming Interface (API) on a device, wherein the binding API is bound to a native API for the device and provides different commands than the native API. During operation, the system executes a native-API test on the device through the native API to produce a native-API test-result. The system subsequently receives the native-API test-result from the device at a test-harness. Next, the system sends a binding-API test to a test-agent on the device which enables the test-agent to execute the binding-API test through the binding API to produce a binding-API test-result. The system then receives the binding-API test-result from the test-agent. Finally, the system compares the native-API test-result to the binding-API test-result to determine if the binding API is functionally equivalent to the native API.

Claims (51)

1. A method for testing a binding Application Programming Interface (API) on a device, wherein the binding API is bound to a native API for a device and provides different commands than the native API, the method comprising:

executing a native-API test on the device through the native API to produce a native-API test-result;

receiving the native-API test-result from the device;

sending a binding-API test to a test-agent on the device which enables the test-agent to execute the binding-API test through the binding API to produce a binding-API test-result;

receiving the binding-API test-result from the test-agent; and

comparing the native-API test-result to the binding-API test-result to determine if the binding API is functionally equivalent to the native API.

2. The method of claim 1 , wherein the device can be a resource-constrained device.

3. The method of claim 1 , wherein the native-API test-result and the binding-API test-result can include:

images;

text;

video; and

audio.

4. The method of claim 1 , wherein comparing the native-API test-result to the binding-API test-result involves comparing function calls made while executing the native-API test to function calls made while executing the binding-API test.

5. The method of claim 1 , wherein the native-API test and the API test include equivalent command flows.

6. The method of claim 1 , wherein the native API can be:

a hardware API;

a software API; and

a combination of the hardware API and the software API.

7. The method of claim 1 , wherein the test-agent facilitates executing the binding-API test by processing binding API commands, which are associated with the binding API.

8. A computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for testing a binding Application Programming Interface (API) on a device, wherein the binding API is bound to a native API for a device and provides different commands than the native API, the method comprising:

executing a native-API test on the device through the native API to produce a native-API test-result;

receiving the native-API test-result from the device;

sending a binding-API test to a test-agent on the device which enables the test-agent to execute the binding-API test through the binding API to produce a binding-API test-result;

receiving the binding-API test-result from the test-agent; and

comparing the native-API test-result to the binding-API test-result to determine if the binding API is functionally equivalent to the native API.

9. The computer-readable storage medium of claim 8 , wherein the device can be a resource-constrained device.

10. The computer-readable storage medium of claim 8 , wherein the native-API test-result and the binding-API test-result can include:

images;

text;

video; and

audio.

11. The computer-readable storage medium of claim 8 , wherein comparing the native-API test-result to the binding-API test-result involves comparing function calls made while executing the native-API test to function calls made while executing the binding-API test.

12. The computer-readable storage medium of claim 8 , wherein the native-API test and the API test include equivalent command flows.

13. The computer-readable storage medium of claim 8 , wherein the native API can be:

a hardware API;

a software API; and

a combination of the hardware API and the software API.

14. The computer-readable storage medium of claim 8 , wherein the test-agent facilitates executing the binding-API test by processing binding API commands, which are associated with the binding API.

15. An apparatus that tests a binding Application Programming Interface (API) on a device, wherein the binding API is bound to a native API for a device and provides different commands than the native API, the apparatus comprising:

an execution mechanism configured to execute a native-API test on the device through the native API to produce a native-API test-result;

a receiving mechanism configured to receive the native-API test-result from the device;

a sending mechanism configured to send a binding-API test to a test-agent on the device which enables the test-agent to execute the binding-API test through the binding API to produce a binding-API test-result;

wherein the receiving mechanism is further configured to receive the binding-API test-result from the test-agent; and

a comparison mechanism configured to compare the native-API test-result to the binding-API test-result to determine if the binding API is functionally equivalent to the native API.

16. The apparatus of claim 15 , wherein the device can be a resource-constrained device.

17. The apparatus of claim 15 , wherein the comparison mechanism is further configured to compare function calls made while executing the native-API test to function calls made while executing the binding-API test.

18. The apparatus of claim 15 , wherein the native API can be:

a hardware API;

a software API; and

a combination of the hardware API and the software API.

19. The apparatus of claim 15 , wherein the test-agent is configured to facilitate executing the binding-API test, and wherein the test-agent comprises a processing mechanism configured to process binding API commands, which are associated with the binding API.

Assignments (2)
MERGER AND CHANGE OF NAME Recorded Dec 16, 2015
From: ORACLE USA, INC.; SUN MICROSYSTEMS, INC.; ORACLE AMERICA, INC.
To: ORACLE AMERICA, INC.
Reel/Frame 037311/0121 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 24, 2007
From: SILAEV, DMITRI; AVZAN, STANISLAV V.; KOPYL, VASILY; RICE, DANIEL S.
To: SUN MICROSYSTEMS, INC.
Reel/Frame 019603/0890 →