The invention discloses an
automatic testing system and method for power failure of an optical modem, and relates to the technical field of
automatic testing, and the testing
system comprises a testing device, a power failure device, a controllable temperature and
humidity box, tested equipment and a
server. The
system configures a plurality of test cases through the test device, and controls the power-down device, the temperature and
humidity box and the
server according to the test cases, so as to realize the automatic test of the tested optical modem equipment. The test device is responsible for sending a control instruction, the power-down device controls the on-off of the optical modem power supply, the controllable temperature and
humidity box adjusts the test environment, and the
server interacts with the tested equipment to complete the tests of PON port online, service interaction, PON flow beating and the like. According to the invention, the power failure test of a user in the process of using the optical modem under different temperature and humidity conditions can be simulated, the
automation degree is high, and meanwhile, through the
integrated design, the test process is simplified, and the
test efficiency and quality are improved.