TS 61 WebProject
Web project Test Specification
Author: Dan Kolar
Version: 0.9
Last update: 06/25/2008
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 -> Web -> Web Application -> Next
Invalid chars are */\|:(){}[[ | ]] (on some systems they are ok, but not on Windows)
- Name and Locations 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.
- Click Use Dedicated folder for Storing LibrariesEXPECTED RESULT: Textfiled is accessible with text '.\lib'
- Invalid Use Dedicated folder for Storing Libraries:Insert anywhere illegal char or invalid pathEXPECTED RESULT: Red warning appears.
- Restore fields in panel to default values
- Click Next
- Server and Settings panel
- Choose different servers in Server comboboxEXPECTED RESULT: Java EE Version availale is 1.4/1.3 for JBoss 4.0.X/Tomcat 5.5.X and JEE5/1.4/1.3 for Glassfish v2, JBoss 5 and Tomcat 6.0X
- Test switching between J2EE VersionEXPECTED RESULT: J2EE version is selected accordingly. If 1.4 version is selected, recommendation message about source level is shown and new checkbox for setting source level to 1.4 appears
- Change context path from default
- Click Next
- Frameworks panel
- Framework List should contain these frameworks (from the top):
- Visual Web JavaServer Faces
- Spring Web MVC 2.5
- JavaServer Faces
- Struts 1.2.9
- Check Visual Web JavaServer Faces framework checkbox
- New fields are shown:
- * Default Java Package (same as project name)
- * JSF Servlet Name (not editable)
- * Servlet URL Mapping (/faces/*)
- * Checkbox Validate XML (checked)
- * Checkbox Verify Objects
- Invalid Servlet URL Mapping:Insert anywhere illegal charEXPECTED RESULT: Red warning appears and Next/Finish is disabled.
- Invalid package name:Insert anywhere illegal charEXPECTED RESULT: Red warning appears and Next/Finish is disabled.
- Check Spring Web MVC 2.5
- New Configuration tab is shown
- * Dispatcher Name (dispatcher)
- * Dispatcher Mapping (*.htm)
- New Libraries tab is shown
- * Checkbox Include JSTL
- Invalid Dispatcher Name:Insert anywhere illegal char
- Invalid Dispatcher Mapping:Insert anywhere illegal charEXPECTED RESULT: Red warning appears and Next/Finish is disabled.
- Check JavaServer Faces framework
- New Configuration tab is shown
- * JSF Servlet Name (not editable)
- * Servlet URL Mapping (/faces/*)
- * Checkbox Validate XML (checked)
- * Checkbox Verify Objects
- New Libraries tab is shown
- * Registered Libraries
- * Create New Library
- * Do not append any library (selected)
- Invalid Servlet URL Mapping:Insert anywhere illegal charEXPECTED RESULT: Red warning appears and Next/Finish is disabled.
- Check Struts 1.2.9
- New fields are shown:
- * Action Servlet Name (not editable)
- * Action URL Mapping (/do/*)
- * Application Resource (com.myapp.struts.ApplicationResource)
- * Checkbox Add Struts TLDs
- Invalid Action URL Pattern:Insert anywhere illegal char
- Invalid Application Resource:Insert anywhere illegal charEXPECTED RESULT: Red warning appears and Next/Finish is disabled.
- 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 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 Build&CleanEXPECTED RESULTS: Project is successfuly built.
- Invoke CleanEXPECTED RESULTS: Project is successfuly built.
- Invoke VerifyEXPECTED RESULTS: Project is successfuly verified.
- 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. Default 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 Undeploy & DeployEXPECTED RESULTS: Project is successfuly built, undeployed and deployed.
- 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.

