How to know if I'm ovulating?!

When should I do the test? How does it work? Is it like a pregnancy test? Right now I'm on my last period day, and I know nothing about ovulation tests but I was thinking about getting one tonight. Thanks in advance