You should familiarize yourself with facilities like
Test::Most and also systems like Selenium. You should have a very clear picture in your own mind as to how the testing process should be undertaken ... and, since you are new to the subject, that means
reading. Not just here but on the web. Software testing is not an elixir; it is a process.