Doctors usually test for OCD by talking to the patient about his symptoms to determine his obsessive and compulsive behaviors. The doctor will then evaluate whether those thoughts and behaviors interfere with his day-to-day functioning.