The test is requested when a healthcare provider suspects that an individual may have an H. pylori infection based on their symptoms, such as abdominal pain, bloating, nausea, vomiting, and loss of appetite. The test may also be ordered for individuals who have a family history of stomach cancer or who have been previously treated for an H. pylori infection to monitor the effectiveness of treatment.