A test device comprising:- an input side drive part capable of rotationally driving a steering shaft of a steering device as a specimen; a control part configured to control the input side drive part; and a position detecting means configured to detect an angular position of the steering shaft; a torque detecting means configured to detect a torque of the steering shaft; wherein the control part is configured for:- controlling the input side drive part to restrict a maximum value of a torque of the steering shaft when the angular position of the steering shaft reaches a first end-abutment position or a second end-abutment position, the first and second end-abutment positions being ends of a movable range of the steering shaft; and controlling driving of the steering shaft by: a position control in which the angular position of the steering shaft is used as a controlled variable; and a torque control in which the torque of the steering shaft is used as a controlled variable, wherein the control part: performs said position control when the angular position of the steering shaft is outside respective angular ranges including the first end-abutment position and second end-abutment position; characterized in that the control part switches the driving of the steering shaft from said position control to said torque control when the angular position of the steering shaft is within said respective angular ranges. an input side drive part capable of rotationally driving a steering shaft of a steering device as a specimen; a control part configured to control the input side drive part; and a position detecting means configured to detect an angular position of the steering shaft; a torque detecting means configured to detect a torque of the steering shaft; wherein the control part is configured for:- controlling the input side drive part to restrict a maximum value of a torque of the steering shaft when the angular position of the steering shaft reaches a first end-abutment position or a second end-abutment position, the first and second end-abutment positions being ends of a movable range of the steering shaft; and controlling driving of the steering shaft by: a position control in which the angular position of the steering shaft is used as a controlled variable; and a torque control in which the torque of the steering shaft is used as a controlled variable, controlling the input side drive part to restrict a maximum value of a torque of the steering shaft when the angular position of the steering shaft reaches a first end-abutment position or a second end-abutment position, the first and second end-abutment positions being ends of a movable range of the steering shaft; and controlling driving of the steering shaft by: a position control in which the angular position of the steering shaft is used as a controlled variable; and a torque control in which the torque of the steering shaft is used as a controlled variable, a position control in which the angular position of the steering shaft is used as a controlled variable; and a torque control in which the torque of the steering shaft is used as a controlled variable, wherein the control part: performs said position control when the angular position of the steering shaft is outside respective angular ranges including the first end-abutment position and second end-abutment position; characterized in that the control part switches the driving of the steering shaft from said position control to said torque control when the angular position of the steering shaft is within said respective angular ranges. performs said position control when the angular position of the steering shaft is outside respective angular ranges including the first end-abutment position and second end-abutment position; characterized in that the control part switches the driving of the steering shaft from said position control to said torque control when the angular position of the steering shaft is within said respective angular ranges.