The invention belongs to a brake hydraulic pipeline exhausting method and particularly relates to a hydraulic system automatic exhausting device and method for an electro-hydraulic brake test bed. Thedevice comprises a front brake wheel cylinder, a test bed body, a transparent hose, a rear brake wheel cylinder, a vehicle electronic stabilization system, a brake master cylinder, a liquid storage pot, an electronic mechanical brake booster, a support, a brake pedal, an adjustable seat, a signal acquisition and transmission platform, a PC, brake master cylinder hydraulic pipelines, two-positiontwo-way solenoid valves, caliper disk brakes and brake wheel cylinder hydraulic pipelines. The device automatically judges the exhausting completion moment through recognition processing according tothe state, acquired by cameras, of brake fluid discharged from the transparent hose, controls rotation of a motor through an ECU of the mechanical brake booster to achieve operations of treadling a pedal and loosening the pedal by simulating a person. The device can be more accurate, efficient, convenient and thorough in automatic exhausting control. The problems that time and labor are wasted, exhausting is incomplete and brake fluid corrodes operators can be solved.