The test for the urine also called the urinalysis is performed to diagnose the appearance, concentration and contents in the urine. It is used to diagnose various things such as urinary tract infections, kidney diseases, kidney stones, urologic cancers, diabetes etc. In the case of urologic cancer, the patient might witness the presence of blood in the urine.