Upper GI endoscopy is a test that looks inside your upper GI tract. During the test, tissue samples (biopsies) are sometimes taken. Read on to learn what to expect before, during, and after this procedure.