The invention belongs to the technical field of electrical devices, and discloses equipment for installing electrical devices in a switch cabinet and a control method. The equipment for installing theelectrical devices in the switch cabinet comprises a device parameter acquisition module, a data transmission module, a main control module, a power consumption calculation module, a service life test module, a device defect detection module, a switching value processing module and a display module. Through the device defect detection module, defects such as stains, scratches and particles of a de...