A urinalysis is a test of your urine. The purpose is to detect and manage a wide range of disorders, such as urinary tract infections, kidney disease and diabetes. A urinalysis also involves checking the appearance, concentration and content of urine.