主权项 |
1. A method of service emulation, the method comprising:
receiving a request from a system under test; accessing a transaction library storing a plurality of messages communicated between the system under test and a target system for emulation, responsive to receiving the request; assigning different weightings to respective sections of the messages stored in the transaction library based on relative variability of data included in the respective sections indicated by comparison thereof among the messages stored in the transaction library; identifying one of the messages stored in the transaction library as corresponding to the request based on the different weightings assigned to respective sections of the messages, wherein the different weightings indicate relative importance of the respective sections of the messages to generation of a response to the request; and generating the response to the request using the one of the messages that was identified, wherein the respective sections of the messages comprise respective character positions, and further comprising: determining the relative variability based on a relative diversity of characters in corresponding ones of the respective character positions among the messages stored in the transaction library, wherein determining the relative variability comprises: aligning the messages according to the corresponding ones of the respective character positions; and calculating a diversity index for each of the respective character positions based on the relative diversity of the characters in the corresponding ones of the respective character positions according to the aligning, wherein the receiving, the accessing, the assigning, the identifying, the generating comprise operations performed by a processor. |