A person can be tested for STDs using a blood sample, a genital swab, or a urine sample. These include testing for genital herpes, syphilis, hepatitis B, chlamydia, gonorrhoea, and trichomoniasis.