The invention relates to the technical field of anti-seismic testing, and discloses an anti-seismic testing device for building components, which comprises a shell, a
servo motor is arranged on one side of the shell, a mounting shell is arranged in the shell, a plurality of mounting base blocks are arranged on the surface of the top of the mounting shell in an array, and an
earthquake simulation mechanism is arranged in the mounting shell. Two transverse sloshing mechanisms are symmetrically arranged at the bottom of the
earthquake simulation mechanism in a staggered mode, the
earthquake simulation mechanism comprises a clamping cylinder installed at the output end of a
servo motor, and a clamping rod is slidably connected into the clamping cylinder. The
seismic wave simulation blocks are rotated and switched, so that different seismic
waves are formed, a continuous and non-repeated
dynamic loading mode is realized, compared with single waveform loading, the complexity and uncertainty of the seismic action can be simulated more truly, the structure can undergo multi-frequency-band and variable-amplitude continuous detection, and the detection accuracy is improved. Therefore, the accumulated damage process, the potential
resonance effect and the hidden weak link in the dynamic response can be disclosed more effectively.