Stomach ulcers occur when digestive acids damage your stomach lining. Treatment may include ... pylori infection, they may order a blood, stool, or breath test. A doctor may also order an ...