TS 61 WebFreeform
Web freeform Test Specification for NetBeans 6.1
Author: Dan Kolar
Version: 1.2
Last update: 06/24/2008
Introduction:
Comments:
Contents |
Test suite: Creating web freeform project
Purpose:
Setup: Tomcat 6.0.16 server installed. Test project downloaded and unpacked.
Invalid chars are */\|:(){}[[ | ]] (on some systems they are ok, but not on Windows)
- Name and Locations
- Click New Project -> Web -> Web Free-Form Project -> Next
- Click Browse and browse to folder containing test project, click on project folder -> Open
- Invalid Location:Insert anywhere illegal char(*|:) or invalid pathEXPECTED RESULT: Red warning appears.
- Invalid Build script:Insert anywhere illegal char(*|:) or invalid pathEXPECTED RESULT: Red warning appears.
- Invalid Project Name:Insert anywhere illegal char(*|:)EXPECTED RESULT: No red warning appears,issue 98013.
- Invalid Project Folder:Insert anywhere illegal char(*|:) or invalid pathEXPECTED RESULT: No red warning appears,issue 98013.
- Click Next
- Build and Run Actions
- Check all build targets are listed in target combobox
- Reassign some targets
- Click Next
- Web Sources
- Web Pages Folder:Insert anywhere illegal char(*|:) or invalid pathEXPECTED RESULT: No red warning appears, issue 118520
- WEB-INF Content:Insert anywhere illegal char(*|:) or invalid pathEXPECTED RESULT: No red warning appears, issue 118520
- Switch Java EE Version to 1.3
- Switch Java EE Version to 1.4
- Switch Java EE Version to Java EE 5
- Click Next
- Sources Package Folders
- Add Folder (Source Package Folders)
- Click Add Folder
- Select src-utils folder
- Click OpenEXPECTED RESULTS: selected folder is added to Package Folder list
- Click Move Up on src-utils folder
- Click Move Down on src-utils folderEXPECTED RESULTS: Packages moves up and down according to buttons name.
- Add Folder (Test Package Folders)
- Click Add Folder
- Select src-utils folder
- Click OpenEXPECTED RESULTS: Warning window Package Folder Already Used in Project is shown
- Switch Source level to 1.3
- Switch Source level to 1.4
- Switch Source level to 1.5
- Change encoding to Windows-cp1251
- Change encoding to UTF-8EXPECTED RESULTS: Actions are done as they should be. No exceptions or errors appears.
- Click Next
- Add Folder (Source Package Folders)
- Java Sources Classpath
- Adding JAR
- Click Add JAR/Folder
- Browse inside jarlib folder
- Hold Shift and click on both jars in jarlib folder
- Click OpenEXPECTED RESULT: Path to recently added jars are added to Java Sources classpath
- Adding Folder
- Click Add JAR/Folder
- Browse to classlib folder
- Select classlib folder
- Click OpenEXPECTED RESULT: Path to recently added folder is added to Java Sources classpath
- Select 1st path in the list and click Move Down
- Select last path in the list and click Move UpEXPECTED RESULT: Paths are moved accordingly to buttons description
- Select path to classlib folder and click RemoveEXPECTED RESULT: Path is removed
- Repeat step 5.2
- Click Next
- Adding JAR
- Project Output
- Click Add JAR/Folder
- Browse to builds folder
- Select builds folder
- Click OpenEXPECTED RESULT: Path to recently added builds folder is added to Project Output
- Click Browse..
- Browse to javadoc folder
- Select javadoc folder
- Click OpenEXPECTED RESULT: Path to recently added javadoc folder is added to Javadoc Output
- Click Next
- Web Sources Classpath
- Add some folder
- Add jar file
- Move Up the 2nd one
- Move Down the 1st one
- Remove folder
- Java sources classpath can't be removed
- Remove jarEXPECTED RESULTS: Actions are done as they should be. No exceptions or errors appears.
- FinishEXPECTED RESULTS: Project is successfuly created. No exceptions or errors appears.
Test suite: Testing basic actions on project
Purpose:
Setup: Opened test project. Apache Tomcat 6.0.16 registered (with implicit user/passw tomcat/tomcat) and started.
All actions are invoked by right-click on project.
- Simple actions
- Invoke BuildEXPECTED RESULTS: Project is successfuly built.
- Invoke Build&CleanEXPECTED 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 Generate JavadocEXPECTED RESULTS: Project successfuly generates javadoc.
- Invoke RunEXPECTED RESULTS: Project is successfuly built and deployed. Default web browser window is opened and 'FreeForm Project Usability Study' page is shown.
- Invoke RedeployEXPECTED RESULTS: Project is successfuly built, undeployed and deployed.
- Generate Javadoc
- Complex actions II
- Invoke Rename
- Clickk "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
- 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.

