How does the doctor check for infertility?

Do you have to ask? Please help