The test may be requested when a patient has symptoms of a genital tract infection, such as abnormal vaginal discharge, pelvic pain, or pain during sexual intercourse, or when they are at increased risk for STIs, such as having unprotected sex with a new partner. It may also be done as part of routine gynecologic exams or prenatal care.