If you have long-term nausea, vomiting, bloating, early fullness while eating, and upper abdominal pain, your doctor may order tests for gastroparesis. This condition affects stomach emptying when nerves are damaged. A gastric emptying scan is the common test.