Pressure following control is the basic function of Electro-Hydraulic Braking system (EHB), which is also the key technology of stability control system and regenerative braking system for hybrid and electric vehicles. Experimental research is an important method for the control and application of EHB. This paper describes a method to test and control the EHB system through experiment on the Hardware-in-the-loop (HIL) test bench and wheel motor electric vehicle. First, the HIL test bench was established, in which the EHB was tested, including the characteristics of solenoid valves and motor. Then the wheel cylinder pressure was controlled to follow the specific signal input and the master cylinder pressure. Based on this, EHB and the pressure following control method were applied to the wheel motor electric vehicle. The results show that the braking pressure can follow the driver's braking intention to realize the conventional braking function of electric vehicles. This is the basis of stability control system and regenerative braking system for hybrid and electric vehicles.