MavenWebApplicationProject
Maven Web App Project Test Specification
Author: Jaroslav Pospisil
Version: 1.1
Last update: 07/04/2009
Introduction:
Comments:
Contents |
Test suite: Creating web project
Purpose:
Setup: JBoss 4.0.X, JBoss 5, Tomcat 5.5.X, Glassfish v2 installed and registered in IDE.
Click File -> New Project -> Maven -> Maven Web Application -> Next
Invalid chars are */\|:(){}[[ | ]] (on some systems they are ok, but not on Windows)
- Maven Web Application panel
- Check preselected default valueEXPECTED RESULT: Archetypes from remote Maven Repositories.
- Click Next
- Name and Location panel
- Check prefilled default values in panels fieldsEXPECTED RESULT: No warning or errors appear.
- Invalid Project Name:Insert anywhere illegal char in this textfieldEXPECTED RESULT: Red warning appears.
- Invalid Project Location:Insert anywhere illegal char or invalid path in this textfieldEXPECTED RESULT: Red warning appears.
- Restore fields in panel to default values
- Click FinishEXPECTED RESULT: New web project is successfuly created and no wearning/errors appears.
Test suite: Testing basic actions on project
Purpose:
Setup: Opened web app project. Opened 1 another project, and set as Main project
- Simple actions
All action are invoked by right-click on project
- Invoke BuildEXPECTED RESULTS: Project is successfuly built.
- Invoke Clean&BuildEXPECTED RESULTS: Project is successfuly built.
- Invoke CleanEXPECTED RESULTS: Project is successfuly built.
- Invoke Set as Main ProjectEXPECTED RESULTS: Project is set as main project.
- Complex actions I
- Generate Javadoc
- Invoke New Servlet wizard -> Finish
- Invoke Generate JavadocEXPECTED RESULTS: Project successfuly generates javadoc. There should be a link to Javadoc in output window. When clicking the link, efault web browser window is opened and javadoc page shown.
- Invoke Tools -> Set Servlet Execution URI on NewServlet.java. Click OK.EXPECTED RESULTS: No exception is thrown.
- Invoke RunEXPECTED RESULTS: Project is successfuly built and deployed. Default web browser window is opened and index.jsp page is shown.
- *Invoke Compile on Save
- Generate Javadoc
- Change something in Index.jsp , for example add one space behind Hello World!
- Click on SaveEXPECTED RESULTS: Project is successfuly saved, but also compiled and redeployed,as you can see in Output window.
- *Disable Compile on Save
- Open Project Properties.
- Go to Run tab and uncheck Deploy on Change.
- Close,change something in Index.jsp , for example add one more space behind Hello World!
- Click on SaveEXPECTED RESULTS: Project is successfuly saved, but compile is not invoked this time.
- Debug
- Set breakpoint in index.jsp
- Invoke Debug and wait till debugger stops on breakpoint in jsp.EXPECTED RESULTS: Project is successfuly built and deployed. Default web browser window is opened, but page is still loading.
- Click Continue on Main bar (or by F5)EXPECTED RESULTS: Default web browser window finishes loading and index.jsp page is shown.
- Debug
- Complex actions II
- Invoke Rename
- Check "Also Rename Project Folder"
- Change project name to another, with illegal charsEXPECTED RESULT: Red warning appears and Rename is disabled.
- Change project name to another, valid one
- Click RenameEXPECTED RESULT: Project is renamed, no errors appear. Project folder is renamed as well.
- Invoke Move
- Change Project Location to another, with illegal charsEXPECTED RESULT: Red warning appears and Move is disabled.
- Change Project Location to another, valid one
- Click MoveEXPECTED RESULT: Project is moved, no errors appear.
- Invoke Copy
- Change Project Name to another, with illegal charsEXPECTED RESULT: Red warning appears and Move is disabled.
- Change Project Name to another, valid one
- Change Project Location to another, with illegal charsEXPECTED RESULT: Red warning appears and Move is disabled.
- Change Project Location to another, valid one
- Click CopyEXPECTED RESULT: Project is copied, no errors appear. Both the original and new project are the same except for their names.
- Invoke CloseEXPECTED RESULT: Project is closed, no errors appear.
- Reopen project.
- Invoke Delete
- Check "Also Delete Sources.."
- Click DeleteEXPECTED RESULT: Project is deleted, no errors appear.

