During the ECG test, electrodes are placed on your chest, arms, and legs. The machine records your heart's electrical activity for a few minutes to produce a visual representation of its rhythm and electrical impulses.