This test looks for group B streptococcus (GBS) bacteria in a culture sample either from your urine or from secretions in your vagina and rectum.