The test is simple and can be performed in a clinical setting or at home. A healthcare provider will use a pH strip or swab to collect a sample of vaginal fluid. The strip changes color based on the acidity or alkalinity of the fluid, which is then compared to a pH scale.