Systems and methods for simulation-based replay of integrated devices
A method of simulating device state changes in an integrated system includes receiving a transaction request from a client device, storing the transaction request as a first event in an event log, transmitting the transaction request to a terminal device, storing the transmission of the transaction request as a second event in the event log, receiving a device response from the terminal device, storing the device response as a third event in the event log, and when the integrated system is under test, a simulator replays the stored events in the integrated system under test.
1. A method for generating a test definition from a structured log of events associated with communications between a first device and a second device, the method comprising:
receiving a correlation identifier and the structured log of events;
generating the test definition based on the correlation identifier and one or more events of the structured log of events; and
storing the test definition in a test repository to permit the test definition to be accessed for replays of the one or more events of the structured log of events to simulate interactions in a system under test including the first device and the second device,
wherein the structured log of events includes a first event corresponding to an application programming interface (API) request provided by the first device to an API, and a second event corresponding to an API response provided by the API to the first device, and
wherein the structured log of events includes a third event corresponding to an API request provided by the API to the second device, and a fourth event corresponding to an API response provided by the second device to the API.
2. The method of claim 1 , wherein the first device is a point of sale (POS) device.
3. The method of claim 1 , wherein the second device is a personal identification number (PIN) pad.
4. The method of claim 1 , wherein each event of the structured log of events is correlated with the correlation identifier.
5. The method of claim 1 , wherein the one or more events include each event of the structured log of events.
6. A system for generating a test definition from a structured log of events associated with communications between a first device and a second device, the system comprising:
a data storage device storing instructions for; and
a processor configured to execute the instructions to perform operations comprising:
receiving a correlation identifier and the structured log of events;
generating the test definition based on the correlation identifier and one or more events of the structured log of events; and
storing the test definition in a test repository to permit the test definition to be accessed for replays of the one or more events of the structured log of events to simulate interactions in a system under test including the first device and the second device,
wherein the structured log of events includes a first event corresponding to an application programming interface (API) request provided by the first device to an API, and a second event corresponding to an API response provided by the API to the first device, and
wherein the structured log of events includes a third event corresponding to an API request provided by the API to the second device, and a fourth event corresponding to an API response provided by the second device to the API.
7. The system of claim 6 , wherein the first device is a point of sale (POS) device.
8. The system of claim 6 , wherein the second device is a personal identification number (PIN) pad.
9. The system of claim 6 , wherein each event of the structured log of events is correlated with the correlation identifier.
10. The system of claim 6 , wherein the one or more events includes each event of the structured log of events.
11. A non-transitory computer-readable medium storing instructions that, when executed by a transaction processor, cause the transaction processor to perform operations for generating a test definition from a structured log of events associated with communications between a first device and a second device, the operations comprising:
receiving a correlation identifier and the structured log of events;
generating the test definition based on the correlation identifier and one or more events of the structured log of events; and
storing the test definition in a test repository to permit the test definition to be accessed for replays of the one or more events of the structured log of events to simulate interactions in a system under test including the first device and the second device,
wherein the structured log of events includes a first event corresponding to an application programming interface (API) request provided by the first device to an API, and a second event corresponding to an API response provided by the API to the first device, and
wherein the structured log of events includes a third event corresponding to an API request provided by the API to the second device, and a fourth event corresponding to an API response provided by the second device to the API.
12. The non-transitory computer-readable medium of claim 11 , wherein the first device is a point of sale (POS) device.
13. The non-transitory computer-readable medium of claim 11 , wherein the second device is a personal identification number (PIN) pad.
14. The non-transitory computer-readable medium of claim 11 , wherein each event of the structured log of events is correlated with the correlation identifier.