The invention discloses an IC (integrated circuit) testing device and method. The device comprises a controller, a socket, N testing modules, N relays, an analog switch group and a communication circuit, a second end of the analog switch group is connected with the socket, a control end of the analog switch group is connected with the controller, L-level multi-input analog switches are cascaded to form the analog switch group, the analog switch group is used for selecting corresponding pins of a chip to be tested to connect with corresponding testing modules according to control of the controller, a first end of the communication circuit is connected with the controller, the other end of the communication circuit is connected with the socket, and the communication circuit is used for establishing communication between the controller and the socket. According to the testing device, the analog switch group formed by cascade of the L-level multi-input analog switches is arranged between the N testing modules and the socket for placing chips to be tested, pins of the chips to be tested cannot be directly with the controller when the chips to be tested are tested, a plurality of controller are omitted, controller resources are greatly saved, cost of the testing device is reduced, and structures of the testing device are simplified.