To find out if you have a UTI, your doctor will need to test a clean sample of your urine. The doctor or nurse will give you a clean plastic cup and a special wipe. Wash your hands before opening the cup. When you open the cup, don't touch the inside of the lid or inside of the cup. Put the cup in easy reach. Separate the labia, the outer lips of the vagina, with one hand. With your other hand, clean the genital area with the wipe. Wipe from front to back. Do not touch or wipe the anus. While still holding the labia open, pass a little bit of urine into the toilet. Then, catch the rest in the cup. This is called a "clean-catch" sample. Let the rest of the urine fall into the toilet.
If you are prone to UTIs, your doctor may want to take pictures of your urinary tract with an x-ray or ultrasound. These pictures can show swelling, stones, or blockage. Your doctor also may want to look inside your bladder using a cystoscope (SISS-tuh-skohp). It is a small tube that's put into the urethra to see inside of the urethra and bladder.This answer is based on source information from the National Women's Health Information Center