An exercise stress test shows your heart's response to exercise. The test records your heartbeat while you walk on a treadmill or ride a stationary bike. It can be done in a hospital, a test center, or a healthcare provider's office. The test is also called a stress electrocardiogram (ECG/EKG).