Most STIs have an incubation following a sexual encounter meaning that they may not be detected within a certain timeframe. Most STI’s require you to wait at least 14 days after sexual activity before taking a test.
You should not take the test if you are menstruating or have urinated in the last 2 hours.