摘要 |
Some embodiments of a simulation and test framework for a rule engine have been presented. In one embodiment, a simulator runs a simulation in a time-aware environment. A rule engine, coupled to the simulator, may execute a set of business logic in response to the simulation in order to test behavior of the business logic. The business logic may include rules, workflow, and event processing. |
主权项 |
1. A method comprising:
performing, by a simulator executing on a processing device, a simulation in a time-aware environment, wherein the simulation comprises at least an application for testing and further comprises paths that each comprise:
groups of one or more commands along a chronological line, each group specified at given temporal distances from a start of the chronological line; anda context to provide key and value pair lookups, wherein the one or more commands of a group are executed against the context; and switching, by the simulator, a rule engine executing on the processing device from a realtime clock to a simulation clock, wherein the rule engine comprises a set of processing modules and is different from the application, the simulator, and the simulation; executing, by the rule engine, a set of business logic in response to the simulation to test behavior of the business logic; and controlling, by the simulator, time increments of the simulation clock in view of the simulation.
|