I have a webapp that recently started to show slowness even when the homepage is loaded in the browser.
Since I'm using Maven to manage it, I thought I could add some simple test to check the load time of the homepage or of a specific page — I never wrote one, so I don't know if this is feasible.
I don't need anything fancy, just something that says: "if load time is greater than X seconds, signal it" (i.e. stop the build process); that way I will be alerted that a recent change is making things worse, so I do not discover them too late.
Is this even possible with the current available tools and / or plugins? What should I look for?
A CI server is not available at this time, so I can only rely on anything that can be automated by Maven.
Beside suggestions about what tool to use to perform the tests, I need help making the test run automatically in my Maven setup (i.e. they should run when I call mvn clean package
or some other goal and stop the build if a problem is detected).