Symptoms of esophageal cancer usually do not show up until the cancer is fairly advanced. They may include pain, dysphagia (difficulty swallowing), weight loss, poor appetite with a preference for soft foods, pneumonia, and fatigue. You should seek medical attention if you have any of these symptoms. The doctor will perform a medical history and a physical examination to determine if further tests are warranted. Tests for esophageal cancer include esophagogastroduodenoscopy (EGD), in which a lighted tube is passed from the mouth into the stomach, looking for abnormalities in the lining of the esophagus and stomach; biopsies (samples of tissue) can be taken during EGD. A barium swallow is an x-ray test that can show unhealthy areas in the esophagus and stomach after the patient drinks a barium contrast agent. Chest x-ray, computed tomography (CT), magnetic resonance imaging (MRI), blood testing, and positron emission tomography (PET) may also be part of the testing for esophageal cancer.