They may:
There are a number of tests healthcare providers can order to diagnose peptic ulcer disease.
The test will measure antibodies (infection-fighting cells) to H. pylori.
Urea Breath Test
The urea breath test is another way to test for anH.

Verywell / Ellen Lindner
The process for this test includes:
If you haveH.
If the carbon dioxide level is higher the second time, you have a positive breath test forH.
The procedure is done in the hospital or at an outpatient center.
Imaging
If the cause of peptic ulcers isnt related toH.
This will help a gastroenterologist look for abnormalities in the upper digestive system.
The machine takes X-ray photos of your stomach and small intestine.
Differential Diagnoses
Your healthcare provider may also consider other causes for your symptoms.
These conditions, however, won’t show ulcers on the endoscopy.
Summary
There are several tests available to help diagnose peptic ulcer disease.
Your healthcare provider will determine the best test or tests for you based on your symptoms and health history.
Peptic ulcer disease requires proper medical treatment to be effectively managed.
Avoid foodsthat cause any pain or discomfort.
While food can’t cause ulcers, some may be more likely to aggravate your symptoms.
American Family Physician.Diagnosis and treatment of peptic ulcer disease and H.pylori infection.
University of California San Francisco.Tests for H.pylori.
Fashner J, Gitu AC.Diagnosis and treatment of peptic ulcer disease andH.
pyloriinfection.Am Fam Physician.2015;91(4):236-242.
Medical University of South Carolina.Non-Ulcer Dyspepsia.
Cleveland Clinic.Peptic ulcer disease.
U.S. National Library of Medicine.
Vomero ND, Colpo E.Nutritional care in peptic ulcer.Arq Bras Cir Dig.2014;27(4):298-302. doi:10.1590/S0102-67202014000400017