A Hysterosalpingogram Test (HSG) is a special kind of x-ray used to evaluate female fertility. An outpatient procedure, the test takes no longer than a half-hour. It involves placing an iodine-based dye through the cervix and taking x-rays. These x-rays help evaluate the shape of the uterus and whether the fallopian tubes are blocked.