There is no set time limit for when a person should get an STD test. Your healthcare provider might recommend one or more tests based on your sexual history and exposure to known infectious partners. Most doctors recommend that you get an STD test once a year.