...
Using Ant, Selenium, and CubicTest, this can start up and test the base build to see that everything is working from scratch.This is the preferred way to do testing -- automated tests are much more thorough than anything an individual can do.
- Make sure that you DON'T have anything important in your MySQL database named "wsttemptest". This database will be wiped clean every time you launch the test framework. Also make sure that you DON'T have a launch profile in Eclipse that's named "websurveytoolbox" because this will be used as the default webapp name.
- In Eclipse, open the SeleniumCubicTest project. Run "tomcatFromScratch/antTomcatFromScratch.xml" as an ant build -- follow the prompt and build the .war file as it specifies. Wait until the build completes (you may have to check the console). If it fails you may have to edit the build.properties in tomcatFromScratch
- In Eclipse, go to the "Servers" view and start up Tomcat (usually this works better in Run mode, not Debug mode, because sometimes Debug mode will keep restarting itself when it shouldn't).
- Open "SeleniumCubicTest/tomcatFromScratch/TestFRomScratch.aat". Right click, "Run As..." -> "Run CubicTest with Selenium".
- Watch the test fly by!
You may want to add your own tests for new features you develop -- you may want to put these in your own test file or add them to TestFromScratch.aat.