The invention provides a levelling and horizontal error testing device which comprises a base, a granite surface plate, a levelling and aiming device, a transmission system and an electric control box. The levelling and aiming device comprises a photoelectric auto-collimator, a pentaprism, a silicone oil tray, a single-axial laser alignment device and a support, wherein the photoelectric auto-collimator is used for optical aiming of platform leveling errors, the pentaprism is used for bending and turning the measuring optical axis of the photoelectric auto-collimator at 90 degrees and then aims to a platform standard hexahedron, the silicone oil tray is used for zero correction of the photoelectric auto-collimator, the single-axial laser alignment device is used for accurate alignment of the optical axis of the auto-collimator, and the support is used for installing the photoelectric auto-collimator, the pentaprism, the silicone oil tray and the single-axial laser alignment device. The levelling and horizontal error testing device can achieve automatic alignment of the optical axis, meanwhile achieves automatic measurement of leveling errors and is high in testing efficiency and good in test data consistency.