A prolactin test measures the level of prolactin, a hormone produced by the pituitary gland that is essential for lactation and overall reproductive health. This test helps to assess conditions like hyperprolactinemia, which can impact fertility, menstrual irregularities, and milk production, as well as monitor treatment effects.