Ovulation tests

Kate
When is the best time of day to do an ovulation test? Is it like a pregnancy test in regards to taking it first thing in the morning?