A method of automated security testing includes recording a macro. The connector plate is hingedly mounted to a rear of the mounting rack and the connector plate is configured for the mounting of connectors that mate with the connectors of the electronic equipment. A calculating unit calculates for each pair of foreground pixel and background pixel an associated alpha value based on a color of the foreground pixel and a color of the background pixel, as well as a probability function based on the associated alpha value. Changing the extent of insertion of the sensor head enables the resin pellets deposit detection level to be changed, and further, enables the deposit level near the outer periphery of the screw to be detected.