Sperm analysis

Has anyone ever had your SO’s sperm tested and could you tell me the process? Do you HAVE to be trying for a year first? Is there a way to like order something and send a sample yourself or do you have to go to the doctor? What do you recommend doing?

We’ve been trying 5 months and I know that’s not a huge amount of time but I have some hormone issues that seem to have been worked out but idk. I’d rather know if theres something wrong with him too before I keep assuming it’s me and prodding at those issues.