HPV testing is recommended for women aged 30 and older, as they are more likely to have persistent infections that could lead to cancer. It is often performed in conjunction with a Pap smear (also called a Pap test) as part of routine cervical cancer screening. Some guidelines also suggest that women under 30 may benefit from HPV testing, especially if they have abnormal Pap smear results.