Exercise allows doctors to detect abnormal heart rhythms (arrhythmias) and diagnose the presence or absence of coronary artery disease. This test involves walking in place on a treadmill while monitoring the electrical activity of your heart. Throughout the test, the speed and incline of the treadmill increase.