The hydraulic system was designed for rail vehicles axle box bearing test machine, the main hydraulic components models were determined by calculating. AMESim software was used to build a hydraulic system model according to the design principles, the model parameters of hydraulic components were set and the simulation was run. It can be judged whether the design is rational, whether the design goal is achieved. So the design cycle can be effectively shortened.