System and method for automatically testing AP spurs

The invention discloses a system for automatically testing AP spurs. The system comprises an automatic control device, an AP device to be tested, a power regulator and an analyzer; the automatic control device is connected with the AP device to be tested, and used for sending a first control command to the AP device to be tested to enable the AP device to be tested to generate a radio frequency signal; the radio frequency signal generated by the AP device to be tested is sent to the analyzer after being treated by use of a power regulator; the automatic control device is further connected with the analyzer, and used for a second control command to the analyzer so that the analyzer can be enabled to test, and then a testing result is read from the analyzer; the automatic control device comprises an AP parameter setting module for generating a first control command and an analyzer automatic testing module for generating the second control command, wherein the first control command contains information for regulating operating parameters when the radial frequency signal is generated by the AP device to be tested, while the second control command contains information for regulating parameter configuration when the radio frequency signal is tested by the analyzer.