Genetic testing involves analyzing DNA to identify mutations or changes that may lead to genetic disorders. In the context of gynecology, it is used to assess the risk of hereditary conditions that can affect reproductive health, pregnancy outcomes, and the risk of cancer.