The application relates to the technical field of camera modules, in particular to a
motor testing method and
system, the method comprising the following steps: S100, a module is controlled to move to a test position under a
laser head, the value of a
laser reading device is acquired, and the position of the module when the value of the
laser reading device is within a preset laser reading range is recorded as a
hysteresis test position; S200, the module is controlled to move to a preset focusing distance range of a
magnification lens, and the position of the module is recorded as a focusing test position; S300, a
light source assembly is built; S400, a component to be tested is placed in a test position of a
test fixture; S500, the
test fixture is controlled to move to the
hysteresis test position, and motor
hysteresis testing and stable time testing are performed on the component to be tested; S600, the
test fixture is controlled to move to the focusing test position, and automatic focusing testing is performed on the component to be tested; and S700, an
abnormality analysis result is generated. According to the scheme, the testing efficiency can be improved, the labor cost can be reduced, and the component to be tested can be prevented from being damaged due to multiple installation, disassembly and transfer during the testing process.