This invention relates to the field of
smart meter technology and relates to an
automatic testing method for
electricity meter event recording, comprising: triggering an event; generating event recording data at the time of the event occurrence; ending the
event trigger; repeating the above steps; storing the event recording data at the time of the event occurrence; obtaining the
occurrence time T1 of the previous recording data, and the next
occurrence time T2 = T1 + 1 hour; obtaining the
occurrence time Tn of the previous n recording data; determining whether T2 - Tn equals n hours, if yes, continuing the test, otherwise returning a
test failure; for the previous n recording data, calculating the theoretical complete recording data based on the obtained occurrence time Tn, comparing the theoretical complete recording data with the currently obtained actual recording data, determining whether the currently obtained actual recording data is correct, if incorrect, returning a
test failure; incrementing n by 1, repeating the above steps until n equals the maximum number of records. This invention is simple, reliable, and consumes few resources, realizing
automatic testing of all event records.