A multi-purpose bit error rate tester and a method of bit error rate testing of electrical and optical components and subsystems of electrical and optical communications systems is provided. A first texture image, a second texture image, display priority of each pixel constituting the first texture image and a threshold value of the display priority are stored in advance. A diode voltage of a diode of the microchip is measured from which diode temperature is determined.