Does STD testing hurt?

In most cases, no. In general for most screening, urine testing and bloodtests are all that is required. In certain circumstances further testing may be required.
Some. Some tests may be painful or uncomfortable such as genital swabs, cultures or blood draws. Others can be done on urine. It depends on what std we are looking for and in what situation.