Dye tests are performed for various reasons, primarily to: - Investigate causes of infertility. - Diagnose structural abnormalities of the uterus and fallopian tubes. - Confirm the success of procedures like tubal ligation. - Assess the integrity of the urinary tract during gynecological surgeries.