Urine bile tests are used to detect the presence of bile pigments or bile salts in urine, which can indicate liver or bile duct disorders. These tests help diagnose conditions in hepatobiliary system such as hepatitis, cirrhosis, gallstones, or bile duct obstruction. Results are usually interpreted in conjunction with other liver function tests for a comprehensive assessment of liver health.