Ectopic pregnancy

How do you know if you have an ectopic pregnancy? Would a pregnancy test still read positive?