IP Library Granted Patent US 7,865,779
Granted Patent B2
US 7,865,779 · App. 11/843,685 · Granted Jan 4, 2011

Server side logic unit testing

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 7,865,779
App. No.
11/843,685
Granted
Jan 4, 2011
Kind
B2
Abstract

A method for server side logic unit testing in an application server environment is provided. The method includes reading a plurality of input parameters from an XML input repository, where the input parameters define an initial state of a test environment, and configuring the test environment to the initial state using the input parameters. The method further includes executing a unit test case using a command test manager to interface between the unit test case and the test environment, where the command test manager translates a command from the unit test case into a test command. The method also includes passing the test command to controller command logic, and accessing test data stored in a database through an access bean using a bean simulator. The method additionally includes receiving test results, including catching an exception on an error condition, and outputting the test results to an XML output repository.

Claims (21)

1. A method for server side logic unit testing in an application server environment, comprising:

reading a plurality of input parameters from an eXtensible Markup Language (XML) input repository, wherein the input parameters define an initial state of a test environment;

configuring the test environment to the initial state using the input parameters, wherein the initial state of the test environment includes a command context, request properties, and a database state;

executing a unit test case from JUnit test cases using a command test manager to interface between the unit test case and the test environment, wherein the command test manager translates a command from the unit test case into a test command;

passing the test command to controller command logic, wherein the controller command logic passes the test command to a command simulator;

accessing test data stored in a database through an access bean using a bean simulator;

receiving test results from the test command and the test data produced via the command simulator and the bean simulator, including catching an exception on an error condition; and

outputting the test results to an XML output repository, wherein the XML output repository interfaces with the XML input repository such that the test results serve as input to other unit test cases.

2. The method of claim 1 wherein the XML input file includes serialized command context and request properties.

3. The method of claim 1 wherein the XML input repository and the XML output repository are interfaces to a common XML repository.

4. The method of claim 1 wherein the command test manager outputs the test results to the XML output repository in a serialized format.

5. The method of claim 1 wherein the command test manager logs an error message upon catching an exception, and the command test manager returns the exception to the unit test case.

6. A computer program product for server side logic unit testing in an application server environment, the computer program product comprising:

a storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for implementing a method, the method comprising:

reading a plurality of input parameters from an eXtensible Markup Language (XML) input repository, wherein the input parameters define an initial state of a test environment;

configuring the test environment to the initial state using the input parameters, wherein the initial state of the test environment includes a command context, request properties, and a database state;

executing a unit test case using a command test manager to interface between the unit test case and the test environment, wherein the command test manager translates a command from the unit test case into a test command;

passing the test command to controller command logic, wherein the controller command logic passes the test command to a command simulator;

accessing test data stored in a database through an access bean using a bean simulator;

receiving test results from the test command and the test data produced via the command simulator and the bean simulator, including catching an exception on an error condition; and

outputting the test results to an XML output repository, wherein the XML output repository interfaces with the XML input repository such that the test results serve as input to other unit test cases.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 13, 2015
From: INTERNATIONAL BUSINESS MACHINES CORPORATION
To: LINKEDIN CORPORATION
Reel/Frame 035201/0479 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 23, 2007
From: TSANG, KWONG P.
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 019735/0641 →