Gastroscopy Endoscopy. Gastroscopy is a test to look inside the gullet (oesophagus), the stomach and the first part of the gut (small intestine) known as the duodenum.