Gastroscopy Hp and breath test are both tests used to check for H. pylori infection in the body, and both have their own advantages and disadvantages and cannot be used simply for comparison. Gastroscopy Hp is to take a piece of gastric tissue under the gastroscope and do a pathologic examination to see if there is H. pylori infection. The gastric mucosa can be taken directly, but there is a leakage of diagnosis. However, if the infected tissue is taken, a more accurate result can be obtained. Breath test carbon, also known as carbon 13 or carbon 14 breath test, is one of the most commonly used clinical methods to detect H. pylori infection. A positive result indicates that the patient has H. pylori infection. The test is non-invasive, convenient and easy to perform, and has a high detection rate. However, it is susceptible to false-negative results due to the influence of drugs. Gastroscopic Hp test and and breath test for H. pylori infection have their own advantages and disadvantages. If a patient develops H. pylori infection, it is recommended that he or she seek immediate medical attention under the guidance of a physician.