Diagnosis typically involves a combination of patient history, physical examination, and diagnostic tests. Common diagnostic methods include: - Endoscopy, allowing direct visualization of the ulcer - Barium swallow X-rays - Testing for H. pylori through breath, blood, stool, or tissue tests - Biopsy during endoscopy to rule out malignancy