A testing machine for simulating the friction moment of a spaceflight bearing under zero gravity mainly comprises an upper cover, a lower cover, a stand column, guide rods, supporting rods, a motor support, a motor, a coupler, a shaft, a bearing cap, an adjusting spacer, an elastic coil, a deep groove ball bearing, an angular contact bearing, a bearing bush A, an upper press sleeve, a bearing bush B, a thrust ball bearing, a sliding sleeve, a moving plate, a manual lifting platform, a lower cover vertical plate, a positioning plate, an electromagnet, a torque sensor, a flat key A, a hollow shaft, a flat key B, a level supporting rod, a sliding block, a flat key C, a guide flat key, an upper cover vertical plate, a bearing pedestal, a feeler gauge spacer, a support, a lever, a cylinder pin, a steel wire, a tray and weights.Compared with other tests for simulating zero weight, according to the testing machine, the established zero gravity time is long, the development cycle is short, and cost is very low.