How to test for herpes?

T 🐾 • 🍜🌮🍟🍧🍮🍦🥔🍣🍎

Can this be done at anytime? What are the various ways to test for it? I heard that there has to be an active outbreak to be able to have someone test for herpes, but I'm not altogether certain that that is true. What is the difference between HSV 1, and HSV 2, scientifically and demographically/statistically speaking? Is HSV 1 considered a sexually transmitted infection? How much would the test cost and how often can you get it done?