A gastroscopy is an examination of the oesophagus, stomach and duodenum using a thin flexible tube (endoscope). It is usually performed to evaluate symptoms of indigestion, upper abdominal pain, nausea, vomiting or difficulty swallowing. It is also the best test for finding the cause of bleeding from the upper gastrointestinal (GI) tract.