The invention discloses a hardware general testing method of
USB (Universal Serial
Bus) equipment and relates to the field of hardware testing. The hardware general testing method comprises the steps of 1) reading a testing state item in a configuration file, judging operation which is needed to be executed, executing a step 2 if the operation is restoration of an
operating system, and executing a step 3 if the operation is testing; 2) restoring the
operating system according to
operating system directing item in the configuration file, updating the testing state item in the configuration file, restarting the operating
system and executing the step 1; and 3) enumerating
USB equipment which is connected to a testing platform,
testing equipment to be tested in the current operating
system environment according to a generated
list of the equipment to be tested, judging whether the current operating
system is the last operating system in the configuration file, if so, ending the testing, and if not, updating the testing state item and the operating system directing item in the configuration file and returning to the step 1. The hardware general testing method of the
USB equipment has the beneficial effects that the manpower in testing resources is saved, different PC (
Personal Computer) system platforms can be covered and the
firmware / hardware level compatibility problem can be found in time.