Diagnosis often involves a thorough medical history and a physical examination. A pelvic exam is usually conducted to observe the discharge and check for any signs of infection or inflammation. Additional tests such as vaginal swabs, pH tests, and microscopic examinations may be performed to identify the causative agent.