A 24-hour urine collection is a simple diagnostic procedure that measures the components of urine. The test is noninvasive (no punctures are made into the skin) and is used to assess kidney function. It is performed by collecting a person's urine in a special container over a 24-hour period. The container must be kept cool during that time until it is taken to the laboratory for analysis.