Some heart problems are easier to diagnose when your heart is working hard and beating fast. During stress testing, you exercise or are given medicine if you're unable to exercise to make your heart work hard and beat fast while heart tests are done.