They may order imaging tests like magnetic resonance imaging (MRI) and ultrasound to diagnose your hamstring pain. These tests give detailed pictures of your hamstring injury so your healthcare ...