The fixed stroke fatigue test can not simulate the real load condition of the landing gear, and the variable stroke fatigue test has increasingly become the mainstream. A modular test device for fatigue test for aircraft landing gears was designed, the automatic control of the buffer stroke was realized with ectopic displacement control technology effectively, the horizontal loading cylinder could follow the wheel axis actively with the displacement active control technology, follow-up loading along the vertical direction was realized through constructing a polar coordinate system and making the load line automatic alignment, a split-type dummy wheel was designed to improve the loading accuracy, a booster cylinder was designed to realize the control loading of high pressure combined with the hydraulic control system. The test shows that the technical scheme meets the design requirements, and the fatigue test was completed successfully. The device for landing gear variable stroke fatigue testing can be applied to other landing gear static / fatigue tests.