During the test, the mother will be asked to lie down in a comfortable position. A fetal monitor is placed on the mother's abdomen, which uses ultrasound to detect the fetal heart rate and a tocodynamometer to measure contractions. The test typically lasts for about 20 to 30 minutes. The mother may be given a button to press whenever she feels the baby move, which helps correlate the movements with the heart rate.