How can you tell if you have a bacterial infection in your stomach?

Blood test. The most commonly tested bacteria for in stomach infection is h. Pylori which is screened with a blood test. This is the organism responsible for stomach ulcers.