HPV DNA testing is a molecular test used to detect the presence of the DNA of the human papillomavirus (HPV) in cervical cells. This test identifies high-risk types of HPV that are associated with cervical cancer and other HPV-related diseases, even before abnormal cells can be seen under a microscope.