Peptic Ulcer Diagnosis. To understand the basic principle behind diagnosis of stomach ulcer, you should read what is peptic ulcer, causes of ulcer, symptoms of ulcer. The diagnosis of ulcer is done with an endoscope to view the ulcer directly, with a breadth analyzer test and testing of blood and feces for H. pylori.