A healthcare provider will conduct a thorough physical exam. He or she will check for any physical causes. A complete medical, developmental, and psychosocial history should be done. This will help determine what factors may be contributing to the problem. The provider may order a urinalysis, which is a urine test to check for infection or other abnormalities. More complex tests of the urinary tract may be done if any disorders are suspected.