If you've installed all of the optional tools described on Step 1 - How To Set Up Your Development Environment then you can automate your build and test process.
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.
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.
Whenever you add a feature, you should add it to the Selenium Automatic Test.
If you get an error saying "The type javax.faces.context.ExternalContext cannot be resolved", try this:
|
You may, when you start up tomcat, see this and some other messages just like it: "SEVERE: Error configuring application listener of class org.eclipse.birt.report.listener.ViewerServletContextListener Sometimes the first time you run Tomcat with the manager, due to a bug in eclipse, the .jar files won't export. You'll get a bunch of class not found errors for BIRT and IceFaces at startup, and the startup will fail. To verify that it's this particular problem, check [Your-Eclipse-Workspace]\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\WST_Manager_Webapp\WEB-INF\lib -- if the lib folder is missing (but it's parent META-INF is there), you know you're hitting this bug. I tried the following and then it worked:
|
Follow the same steps to solve as above – close your project, quit eclipse, open your project, clean it, and try again. |
If you see this in Tomcat, you should follow these directions . |