Author: Karel Zikmund
Version: 1.1
Last update: 21.4.2005
Introduction:
There are several wizards as part of the web application. They create templates of most used web application objects
(JSP, Servlet, Filter, Listener, HTML File, etc.).
Comment: Updated by Jaroslav Pospisil
Purpose: Create new web application using Web application wizard.
Setup: Create Enterprise application.Invoke wizard File|New Project|Web|Web Application.
#
Test case
Description
1
New project name
1. Type new project name.
RESULT:
Valid web application created (check web application directory structure and WEB-INF/web.xml file).
2
Project name as existing directory
1. Type project name as existing directory.
RESULT:
Preventing user from web application creation.
3
Invalid project name
1. Type invalid project name using forbidden characters.
RESULT:
Preventing user from web application creation.
4
Change location
1. Change location (use typing and/or selecting by Browse button).
RESULT:
Valid web application created (check web application directory structure and WEB-INF/web.xml file).
5
New location
1. Type new nonexisting location.
RESULT:
New directory created.
RESULT:
Valid web application created (check web application directory structure and WEB-INF/web.xml file).
6
Read only location
1. Choose read only location.
RESULT:
Preventing user from web application creation.
7
Context path
1. Change context path.
RESULT:
Context path used in web application execution (File|"project name" Properties|Run|Running Project|Context Path).
8
J2EE version
1. Change J2EE specification level to J2EE 1.3.
RESULT:
J2EE specification used in web application (File|"project name" Properties|General|J2EE Platform).
9
Source structure
1. Change source structure to Jakarta
RESULT:
Created web application source folders will be structured according to recomendations of Jakarta.
10
Change server
1. Change server to Sun Java System Application Server 8.1.
RESULT:
You can check i application properties|Run that server was set to Sun Java System Application Server 8.1.
11
Disable "Set source level to 1.4"
1. Uncheck Set source level to 1.4.
RESULT:
Your application will be created without setting the source level to 1.4.,so it won't be portable.
12
Add to Enterprise application
1. Click on Add to Enterprise application and select it.
RESULT:
Your web module will be added to selected Enterprise application.
13
No main project
1. Turn off the Set as Main checkbox.
RESULT:
Created web application will not become main project.
Purpose: Import existing sources to the web application using Import web application wizard.
Setup: Create Enterprise application.Invoke wizard File|New Project|Web|Web Project with Existing Sources.
#
Test case
Description
1
Location of existing sources
1. Type existing sources location (an existing directory).
RESULT:
Valid web application imported from the sources (check web application directory structure).
2
Invalid location
1. Type invalid existing sources location (non-existing directory).
RESULT:
Preventing user from web application import.
3
Location with existing build.xml ant script
1. Type existing sources location (an existing directory) with existing ant script build.xml in the root.
RESULT:
Valid web application and ant tasks imported from the sources (check web application directory structure and nbbuild.xml).
4
Location with invalid build.xml ant script
1. Type existing sources location (an existing directory) with invalid ant script build.xml in the root.
RESULT:
Preventing user from ant script import.
5
New project name
1. Type new project name.
RESULT:
Valid web application imported from the sources (check web application directory structure).
6
Project name as existing directory
1. Type project name as existing directory.
RESULT:
Preventing user from web application creation.
7
Invalid project name
1. Type invalid project name using forbidden characters.
RESULT:
Preventing user from web application creation.
Purpose: Create new Tag library descriptor using Tag Library Descriptor wizard.
Setup: Have existing mounted web module. Invoke wizard File|New File|Web|Tag Library Descriptior.
#
Test case
Description
1
New file name
1. Type new file name.
RESULT:
Valid file created.
2
Existing file name
1. Type existing file name.
RESULT:
User prevented from file creation.
3
Invalid file name
1.
Type invalid file name:
empty name,
name with forbidden characters (e.g. slash, question mark, star, etc.).
RESULT:
User prevented from file creation.
4
Choose folder
1. Choose folder by typing its name or using Browse button.
RESULT:
Valid file created.
5
New folder name
1. Type new folder name (e.g. multilevel folder name with slashs and backslashs).
RESULT:
New folder created with valid file.
6
Invalid folder name
1.
Type invalid folder name:
name with forbidden characters (e.g. slash, question mark, star, etc.).
RESULT:
User prevented from file creation.
7
Read only rights
1. Type file name and folder name to create file in a read only directory.
RESULT:
User prevented from file creation.
8
URI and Prefix generation
1. Fill file information.
RESULT:
Check generated URI and Prefix from typed information.