The treadmill test measures a patient's heart condition based on electrocardiographic responses, changes in blood pressure, chest pain, and other symptoms, as the individual walks or runs on a treadmill with progressively greater speed and steeper grade.