A swab test in gynecology is a diagnostic procedure where a sterile swab is used to collect samples from the vagina, cervix, or other areas of the female reproductive system. These samples are then analyzed to detect infections, sexually transmitted diseases (STDs), or other gynecological conditions.