To test a transistor with a multimeter, you must first set it to either diode or resistance mode. Then, identify the type and pinout of the transistor using a datasheet or reference chart.