Urinalysis. Your doctor uses urine tests to look for red blood cells, high levels of protein, and excreted minerals in the urine that may indicate kidney or urinary tract problems. A sample of your urine is also likely to be checked for bacteria that cause infection.