Yes, fasting is prescribed by doctors for stress assessment. Mostly this test is performed in the morning, so fasting before 10-12 hours is recommended. For accurate results, it is safer to do a stress test on an empty stomach.