The invention discloses a method for optimizing
event trigger test efficiency, which relates to the technical field of
software testing, and comprises the following steps: S1, arranging an event
library by using a notebook or Excel, collecting and storing information related to events, and carrying out classified management on the events; s2, according to a test requirement, setting a sending frequency and a
data type of an event, writing a sending related code, and appointing a sending target
server; and S3, after
network communication is debugged to be normal, executing a sending program, sending event information to a platform, and checking the condition of a rule triggered after the data is sent at the platform side. According to the method for optimizing the
event trigger test efficiency, the technology is used for simulating the operation behavior of a person, generating events, collecting the events into an event
library, compiling an automatic script by using a
Python language, and sending the events which are pre-stored in the event
library in advance to a platform in batches, so that the effect generated by manual operation is achieved, manual operation is replaced, and the efficiency is improved by more than 20 times.