A gastric or stomach ulcer is regularly caused by an infection with bacterium Helicobacter pylori (H. pylori) and long-term use of non-steroidal anti-inflammatory drugs (NSAIDs), such as ibuprofen and aspirin. 1. To detect an ulcer, first take a consideration of pre-medical history and execute a physical exam. 2. Laboratory tests for H. pylori : Blood tests are normally inaccurate and should not be regularly used and the breath test is the most accurate. For the breath test, eat or drink something containing radioactive carbon. H. pylori break down the material in the stomach. Later, blow into a bag, which is then sealed. If infected with H. pylori, your breath sample will contain the radioactive carbon in the form of carbon dioxide. Endoscopy was used to examine the upper digestive system. During endoscopy, passes a hollow tube equipped with a lens of endoscope down to throat and into esophagus, stomach and small intestine. This endoscope had revealed the ulcers in the stomach. If detects an ulcer, small tissue samples may be removed for examination in a lab for biopsy test. A biopsy also identify whether H. pylori is in the stomach lining. Solution A gastric or stomach ulcer is regularly caused by an infection with bacterium Helicobacter pylori (H. pylori) and long-term use of non-steroidal anti-inflammatory drugs (NSAIDs), such as ibuprofen and aspirin. 1. To detect an ulcer, first take a consideration of pre-medical history and execute a physical exam. 2. Laboratory tests for H. pylori : Blood tests are normally inaccurate and should not be regularly used and the breath test is the most accurate. For the breath test, eat or drink something containing radioactive carbon. H. pylori break down the material in the stomach. Later, blow into a bag, which is then sealed. If infected with H. pylori, your breath sample will contain the radioactive carbon in the form of carbon dioxide. Endoscopy was used to examine the upper digestive system. During endoscopy, passes a hollow tube equipped with a lens of endoscope down to throat and into esophagus, stomach and small intestine. This endoscope had revealed the ulcers in the stomach. If detects an ulcer, small tissue samples may be removed for examination in a lab for biopsy test. A biopsy also identify whether H. pylori is in the stomach lining..