主权项 |
1. A method for testing, comprising:
receiving a command to test a plurality of modules residing on a server, the command including identifications of the modules; identifying in a database one or more message lists corresponding to the modules, the one or more message lists defining, for the respective modules, at least a request message and an expected response message corresponding to the request message; retrieving, for the respective modules from the database, definitions of the request message and the expected response message and a plurality of parameters for the request message and the expected response message; constructing copies of the request message and the expected response message for the respective modules based on the definitions and the parameters; generating child processes for the respective modules to be tested; within the child process for each respective module, performing the following steps:
transmitting the constructed copy of the request message to the respective module;receiving a server response message from the server in response to transmitting the copy of the request message to the respective module; andcomparing, for the respective module, the server response message with the constructed copy of the expected response message. |