Doctors?

when you need to find out if you have an infection (UTI, yeast, or bv) what do the doctors do ??? i’m curious