Methods and apparatus for testing components of a distributed transaction processing system
First Claim
1. A tool for enabling a test operator to create a test script comprising commands of a simplified test language and to execute the commands of the test script to test a component of a distributed transaction processing system implemented in accordance with X/Open Distributed Transaction Processing model and supporting the XATMI application programming interface of said model (XATMI API), each command of the simplified test language corresponding to a respective one of the function calls of the XATMI API and at least some of the commands of the test language having a syntax and semantics that requires a lesser number of parameters to be supplied with the command than the formal syntax of the corresponding function call of the XATMI API, said tool comprising:
- a parser for parsing the commands of the test script; and
an interpreter that (i) determines from a parsed command of the test script whether any parameters required by the formal syntax of the corresponding function call of the XATMI API have not been supplied, (ii) generates default values for any unsupplied parameters, (iii) constructs the corresponding function call of the XATMI API in accordance with its formal syntax using said generated default parameter values, and (iv) issues the constructed function call to the component under test.
12 Assignments
0 Petitions
Accused Products
Abstract
A computer executable test language is provided for testing a component of a distributed transaction processing system implemented in accordance with the X/Open Distributed Transaction Processing model and supporting the XATMI application programming interface of said model (XATMI API). The test language comprises a plurality of commands, each command corresponding to a respective one of the function calls of the XATMI API. At least some of the commands of the test language have a syntax and semantics that requires a lesser number of parameters to be supplied with the command than the formal syntax of the corresponding function call of the XATMI API, thus hiding the complexities of the XATMI API from the test operator. A client program of the test environment comprises an interpreter of the test language that determines from a parsed test command whether any parameters required by the formal syntax of the XATMI API have not been supplied, generates default values for any unsupplied parameters, constructs the corresponding function call of the XATMI API in accordance with its formal syntax using the generated defaults, and issues the constructed function call to the component under test. A server program of the test environment comprises at least one service that provides an expected response to a function call issued by the client program.
-
Citations
32 Claims
-
1. A tool for enabling a test operator to create a test script comprising commands of a simplified test language and to execute the commands of the test script to test a component of a distributed transaction processing system implemented in accordance with X/Open Distributed Transaction Processing model and supporting the XATMI application programming interface of said model (XATMI API), each command of the simplified test language corresponding to a respective one of the function calls of the XATMI API and at least some of the commands of the test language having a syntax and semantics that requires a lesser number of parameters to be supplied with the command than the formal syntax of the corresponding function call of the XATMI API, said tool comprising:
-
a parser for parsing the commands of the test script; and
an interpreter that (i) determines from a parsed command of the test script whether any parameters required by the formal syntax of the corresponding function call of the XATMI API have not been supplied, (ii) generates default values for any unsupplied parameters, (iii) constructs the corresponding function call of the XATMI API in accordance with its formal syntax using said generated default parameter values, and (iv) issues the constructed function call to the component under test. - View Dependent Claims (2, 3, 4, 5, 6)
a service that responds to an XATMI function call of the request/response type issued by the client program by returning any data transmitted with the function call back to the client program;
a service that responds to an XATMI function call of the request/response type issued by the client program by returning a message indicating that the function call failed;
a service that responds to an XATMI function call of the request/response type issued by the client program by terminating the server program; and
a service that establishes a connection with the client program in response to a tpconnect function call and that subsequently responds to successive tpsend function calls until the client program relinquishes control of the connection, at which time the service returns a message to the client program indicating successful termination of the connection.
-
-
7. A tool for enabling a test operator to create a test script comprising commands of a simplified test language and to execute the commands of the test script to test a component of a distributed transaction processing system implemented in accordance with the X/Open Distributed Transaction Processing model and supporting the XATMI application programming interface of said model (XATMI API), each command of the simplified test language corresponding to a respective one of the function calls of the XATMI API and at least some of the commands of the test language having a syntax and semantics that requires a lesser number of parameters to be supplied with the command than the formal syntax of the corresponding function call of the XATMI API, said tool comprising a client program and a server program, the client program comprising:
-
a parser for parsing the commands of the test script; and
an interpreter that (i) determines from a parsed command of the test script whether any parameters required by the formal syntax of the corresponding function call of the XATMI API have not been supplied, (ii) generates default values for any unsupplied parameters, (iii) constructs the corresponding function call of the XATMI API in accordance with its formal syntax using said generated default parameter values, and (iv) issues the constructed function call to the component under test;
the server program comprising at least one service that provides an expected response to an XATMI function call constructed and issued by the client program. - View Dependent Claims (8, 9, 10, 11)
a service that responds to an XATMI function call of the request/response type issued by the client program by returning any data transmitted with the function call back to the client program;
a service that responds to an XATMI function call of the request/response type issued by the client program by returning a message indicating that the function call failed;
a service that responds to an XATMI function call of the request/response type issued by the client program by terminating the server program; and
a service that establishes a connection with the client program in response to a tpconnect function call and that subsequently responds to successive tpsend function calls until the client program relinquishes control of the connection, at which time the service returns a message to the client program indicating successful termination of the connection.
-
-
12. A tool for enabling a test operator to create a test script comprising commands of a simplified test language and to execute the commands of the test script to test a component of a distributed transaction processing system implemented in accordance with the X/Open Distributed Transaction Processing model and supporting the XATMI application programming interface of said model (XATMI API), each command of the simplified test language corresponding to a respective one of the function calls of the XATMI API and at least some of the commands of the test language having a syntax and semantics that requires a lesser number of parameters to be supplied with the command than the formal syntax of the corresponding function call of the XATMI API, said tool comprising:
-
means for parsing the compound ofn the test script; and
means for (i) determining from a parsed command of the test script whether any parameters required by the formal syntax of the corresponding function call of the XATMI API have not been supplied, (ii) generating default values for any unsupplied parameters, (iii) constructing the corresponding function call of the XATMI API in accordance with its formal syntax using said generated default parameter values, and (iv) issuing the constructed function call to the component under test. - View Dependent Claims (13, 14, 15, 16, 17)
a service that responds to an XATMI function call of the request/response type by returning any data transmitted with the function call;
a service that responds to an XATMI function call of the request/response type by sending a return message indicating that the function call failed;
a service that responds to an XATMI function call of the request/response type by terminating said at least one service; and
a service that establishes a connection in response to a tpconnect function call and that subsequently responds to successive tpsend function calls until control of the connection is relinquished, at which time the service sends a return message indicating successful termination of the connection.
-
-
18. A method for enabling a test operator to create a test script comprising commands of a simplified test language and to execute the commands of the test script to test a component of a distributed transaction processing sytem implemented in accordance with the X/Open Distributed Transaction Processing model and supporting the XATMI application programming interface of said model (XATMI API), each command of the simplified test language corresponding to a respective one of the function calls of the XATMI API and at least some of the commands of the test language having a syntax and semantics that requires a lesser number of parameters to be supplied with the command than the formal syntax of the corresponding function call of the XATMI API, said method comprising of the steps;
-
parsing the commands of the test script;
determining from a parsed command of the test script whether any parameters required by the formal syntax of the corresponding function call of the XATMI API have not been supplied;
generating default values for any unsupplied parameters;
constructing the corresponding function call of the XATMI API in accordance with its formal syntax using said generated default parameter values; and
issuing the constructed function call to the component under test. - View Dependent Claims (19, 20, 21, 22)
a service that responds to an issued XATMI function call of the request/response type by returning any data transmitted with the function call back to the client program;
a service that responds to an issued XATMI function call of the request/response type issued by returning a message indicating that the function call failed;
a service that responds to an issued XATMI function call of the request/response type by terminating the server program; and
a service that establishes a connection with the client program in response to a tpconnect function call and that subsequently responds to successive tpsend function calls until the client program relinquishes control of the connection, at which time the service returns a message indicating successful termination of the connection.
-
-
23. A method of testing a component of a distributed transaction processing system implemented in accordance with the X/Open Disturbed Transaction Processing model and supporting the XATMI API application programming interface of said model (XATMI API), said method comprising the steps of:
-
providing a simplified test language comprising a plurality of commands from which a test operator can create a test script, each command of the test language corresponding to a respective one of the function calls of the XATMI API, at least ones of the commands of the test language having a syntax and semantics that requires a lesser number of parameters to be supplied with the command than the formal syntax of the corresponding function call of the XATMI API;
parsing a command of a test script written in said test language and determining therefrom whether any parameters required by the formal syntax of the corresponding function call of the XATMI API have not been supplied with the command;
generating default values for any unsupplied parameters;
constructing the corresponding function call of the XATMI API in accordance with its formal syntax using said generated default parameter values; and
issuing the constructed function call to the component under test. - View Dependent Claims (24, 25, 26, 27)
a service that responds to an issued XATMI function call of the request/response type by returning any data transmitted with the function call back to the client program;
a service that responds to an issued XATMI function call of the request/response type issued by returning a message indicating that the function call failed;
a service that responds to an issued XATMI function call of the request/response type by terminating the server program; and
a service that establishes a connection with the client program in response to a tpconnect function call and that subsequently responds to successive tpsend function calls until the client program relinquishes control of the connection, at which time the service returns a message indicating successful termination of the connection.
-
-
28. A computer-readable medium having stored thereon program code that implements a test tool that enables a test operator to create a test script comprising commands of a simplified test language and to execute the commands of the test script to test a component of a distributed transaction processing system implemented in accordance with the X/Open Distributed Transaction Processing model and supporting the XATMI application programming interface (XATMI API) of said model, said test language comprising a plurality of commands, each command of the simplified test language corresponding to a respective one of the function calls of the XATMI API and at least ones of the commands of the test language having a syntax and semantics that requires a lesser number of parameters to be supplied with the command than the formal syntax of the corresponding function call of the XATMI API, the program code, when executed by a computer, causing the computer to perform the following steps:
-
(a) parse a command of test script written in the test language, (b) determine from the parsed command whether any parameters required by the formal syntax of the corresponding function call of the XATMI API have not been supplied;
(c) generate default values for any unsupplied parameters;
(d) construct the corresponding function call of the XATMI API in accordance with its formal syntax using said generated default values; and
(e) issue the constructed function call to a component under test. - View Dependent Claims (29, 30, 31)
-
-
32. An interpreter of a simplified test language for testing a component of a distributed transaction processing system implemented in accordance with the X/Open Distributed Transaction Processing model and supporting the XATMI application programming interface of said model (XATMI API), said language comprising a plurality of commands, each command corresponding to a respective one of the function calls of the XATMI API, at least ones of the commands of the test language having a syntax and semantics that requires a lesser number of parameters to be supplied with the command than the formal syntax of the corresponding function call of the XATMI API, the interpreter comprising program code embodied on a computer readable medium.
Specification