System and method for using an event window for testing an event processing system
First Claim
Patent Images
1. A method for testing an event processing system, comprising:
- reading in, by a testing framework, input events data, output events data, and a processing rule from a test file, wherein the test file is associated with a test schema that is designed for testing the event processing system;
converting, by the testing framework, the input events data into a plurality of input event objects, wherein an event type of the event objects is specified in the test file;
sending each of the input event objects in an event stream to an event processing system, wherein each said input event object is associated with a timestamp, and wherein the event stream is specified in the test file;
providing, by the testing framework and to the event processing system, logic specified in a rule section of the test file;
receiving, by the testing framework, an actual output event from the event processing system, wherein the actual output event is associated with a timestamp;
constructing a corresponding internal representation object for the actual output event, wherein the internal representation object includes, as properties, the actual output event and the timestamp associated with the actual output event; and
comparing the internal representation object in an event window with one or more expected output events for the event window.
1 Assignment
0 Petitions
Accused Products
Abstract
Systems and methods can use a testing framework for testing an event processing system. The testing framework operates to send one or more input events in an event stream to an event processing system, wherein each said input event is associated with a timestamp. Also, the testing framework can receive one or more actual output events from the event processing system, wherein each said actual output event is associated with a timestamp. Furthermore, the testing framework can compare said one or more actual output events in an event window with one or more expected output events for the event window.
71 Citations
20 Claims
-
1. A method for testing an event processing system, comprising:
-
reading in, by a testing framework, input events data, output events data, and a processing rule from a test file, wherein the test file is associated with a test schema that is designed for testing the event processing system; converting, by the testing framework, the input events data into a plurality of input event objects, wherein an event type of the event objects is specified in the test file; sending each of the input event objects in an event stream to an event processing system, wherein each said input event object is associated with a timestamp, and wherein the event stream is specified in the test file; providing, by the testing framework and to the event processing system, logic specified in a rule section of the test file; receiving, by the testing framework, an actual output event from the event processing system, wherein the actual output event is associated with a timestamp; constructing a corresponding internal representation object for the actual output event, wherein the internal representation object includes, as properties, the actual output event and the timestamp associated with the actual output event; and comparing the internal representation object in an event window with one or more expected output events for the event window. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A system for handling various database state notifications in a transactional middleware machine environment, comprising:
-
one or more microprocessors; a testing framework, running on the one or more microprocessors, wherein the testing framework operates to read in input events data, output events data, and a processing rule from a test file, wherein the test file is associated with a test schema that is designed for testing the event processing system; convert the input events data into a plurality of input event objects, wherein an event type of the event objects is specified in the test file; send each of the input event objects in an event stream to an event processing system, wherein each said input event object is associated with a timestamp, and wherein the event stream is specified in the test file; providing, by the testing framework and to the event processing system, logic specified in a rule section of the test file; receive one or more actual output events from the event processing system, wherein each said actual output event is associated with a timestamp; and receive an actual output event from the event processing system, wherein the actual output event is associated with a timestamp; construct a corresponding internal representation object for the actual output event, wherein the internal representation object includes, as properties, the actual output event and the timestamp associated with the actual output event; and compare the internal representation object in an event window with one or more expected output events for the event window. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19)
-
-
20. A non-transitory machine readable storage medium having instructions stored thereon that when executed cause a system to perform the steps comprising:
-
reading in, by a testing framework, input events data, output events data, and a processing rule from a test file, wherein the test file is associated with a test schema that is designed for testing the event processing system; converting, by the testing framework, the input events data into a plurality of input event objects, wherein an event type of the event objects is specified in the test file; sending each of the input event objects in an event stream to an event processing system, wherein each said input event object is associated with a timestamp, and wherein the event stream is specified in the test file; providing, by the testing framework and to the event processing system, logic specified in a rule section of the test file; receiving, by the testing framework, an actual output event from the event processing system, wherein the actual output event is associated with a timestamp; constructing a corresponding internal representation object for the actual output event, wherein the internal representation object includes, as properties, the actual output event and the timestamp associated with the actual output event; and comparing the internal representation object in an event window with one or more expected output events for the event window.
-
Specification