cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Web Application - Wizards Test Specification

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

Table of Contents

Test suite 1: Web application wizard - create new web application

Purpose: Create new web application using Web application wizard.
Setup: Create Enterprise application.Invoke wizard File|New Project|Web|Web Application.

#Test caseDescription
1New project name
1. Type new project name.
RESULT: Valid web application created (check web application directory structure and WEB-INF/web.xml file).
2Project name as existing directory
1. Type project name as existing directory.
RESULT: Preventing user from web application creation.
3Invalid project name
1. Type invalid project name using forbidden characters.
RESULT: Preventing user from web application creation.
4Change 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).
5New 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).
6Read only location
1. Choose read only location.
RESULT: Preventing user from web application creation.
7Context path
1. Change context path.
RESULT: Context path used in web application execution (File|"project name" Properties|Run|Running Project|Context Path).
8J2EE version
1. Change J2EE specification level to J2EE 1.3.
RESULT: J2EE specification used in web application (File|"project name" Properties|General|J2EE Platform).
9Source structure
1. Change source structure to Jakarta
RESULT: Created web application source folders will be structured according to recomendations of Jakarta.
10Change 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.
11Disable "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.
12Add to Enterprise application
1. Click on Add to Enterprise application and select it.
RESULT: Your web module will be added to selected Enterprise application.
13No main project
1. Turn off the Set as Main checkbox.
RESULT: Created web application will not become main project.
Teardown:



Test suite 2: Import web application wizard - import web application from existing sources

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 caseDescription
1Location of existing sources
1. Type existing sources location (an existing directory).
RESULT: Valid web application imported from the sources (check web application directory structure).
2Invalid location
1. Type invalid existing sources location (non-existing directory).
RESULT: Preventing user from web application import.
3Location 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).
4Location 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.
5New project name
1. Type new project name.
RESULT: Valid web application imported from the sources (check web application directory structure).
6Project name as existing directory
1. Type project name as existing directory.
RESULT: Preventing user from web application creation.
7Invalid project name
1. Type invalid project name using forbidden characters.
RESULT: Preventing user from web application creation.
8Change project location
1. Change project location (use typing and/or selecting by Browse button).
RESULT: Valid web application imported from the sources (check web application directory structure).
9New project location
1. Type new nonexisting project location.
RESULT: New directory created. RESULT: Valid web application imported from the sources (check web application directory structure).
10Read only project location
1. Choose read only project location.
RESULT: Preventing user from web application creation.
11Context path
1. Change context path.
RESULT: Context path used in web application execution (File|"project name" Properties|Run|Running Project|Context Path).
12J2EE version
1. Change J2EE specification level to J2EE 1.3.
RESULT: J2EE specification used in web application (File|"project name" Properties|General|J2EE Platform).
13Source structure
1. Change source structure to Jakarta
RESULT: Created web application source folders will be structured according to recomendations of Jakarta.
14Change 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.
15Disable "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.
16Add to Enterprise application
1. Click on Add to Enterprise application and select it.
RESULT: Your web module will be added to selected Enterprise application.
17No main project
1. Turn off the Set as Main checkbox.
RESULT: Created web application will not become main project.
18Web pages location
1. Type web pages location (an existing directory).
RESULT: Valid web application imported from the sources (check web application directory structure).
19Invalid web pages location
1. Type invalid web pages location (non-existing directory or directory out of the selected location scope).
RESULT: Preventing user from web application importing.
20Java sources location
1. Type java sources location (an existing directory).
RESULT: Valid web application imported from the sources (check web application directory structure).
21Invalid java sources location
1. Type invalid java sources location (non-existing directory or directory out of the selected location scope).
RESULT: Preventing user from web application importing.
22Libraries location
1. Type libraries location (an existing directory).
RESULT: Valid web application imported from the sources (check web application directory structure).
23Empty libraries location
1. Type empty libraries location.
RESULT: Valid web application imported from the sources (check web application directory structure).
24Invalid libraries location
1. Type invalid libraries location (non-existing directory or directory out of the selected location scope).
RESULT: Preventing user from web application importing.
Teardown:



Test suite 3: Servlet wizard - create new servlet

Purpose: Create new servlet using Servlet wizard.
Setup: Have opened web application. Invoke wizard File|New File|Web|Servlet.

#Test caseDescription
1New class name
1. Type new class name.
RESULT: Valid class created (compile it).
2Existing class name
1. Type existing class name.
RESULT: User prevented from class creation.
3Invalid class name
1. Type invalid class name:
  • empty name,
  • name beginning with number,
  • name with forbidden characters (e.g. space, dot, &, etc.),
  • reserved java keywords (e.g. null, for, etc.).

RESULT: User prevented from class creation.
4Choose package
1. Choose package.
RESULT: Valid class created (compile it).
5New package name
1. Type new package name (e.g. multilevel package name with dots).
RESULT: New package created with valid class (compile it).
6Invalid package name
1. Type invalid package name:
  • empty name,
  • name beginning with number,
  • name with forbidden characters (e.g. space, &, etc.),
  • reserved java keywords (e.g. null, for, etc.).

RESULT: User prevented from class creation.
7Read only rights
1. Type class name and package name to create file in a read only directory.
RESULT: User prevented from class creation.
8Without deployment descriptor information addition
1. Uncheck Add information to deployment descriptor (web.xml) checkbox.
RESULT: Check no changes in WEB-INF/web.xml file.
9Deployment descriptor information
1. Modify deployment descriptor information (Servlet Name, URL Mapping(s), Init Parameters)
RESULT: Check WEB-INF/web.xml file.
10Servlet name with special XML characters
1. Type servlet name with special XML characters (e.g. &, <, >, etc.).
RESULT: Check WEB-INF/web.xml file for valid characters translation to XML tags.
11Existing servlet name
1. Type existing servlet name (existing in servlet or filter names).
RESULT: User prevented from servlet creation.
Teardown:



Test suite 4: Filter wizard - create new filter

Purpose: Create new filter using Filter wizard.
Setup: Have opened web application. Invoke wizard File|New File|Web|Filter.

#Test caseDescription
1New class name
1. Type new class name.
RESULT: Valid class created (compile it).
2Existing class name
1. Type existing class name.
RESULT: User prevented from class creation.
3Invalid class name
1. Type invalid class name:
  • empty name,
  • name beginning with number,
  • name with forbidden characters (e.g. space, dot, &, etc.),
  • reserved java keywords (e.g. null, for, etc.).

RESULT: User prevented from class creation.
4Choose package
1. Choose package.
RESULT: Valid class created (compile it).
5New package name
1. Type new package name (e.g. multilevel package name with dots).
RESULT: New package created with valid class (compile it).
6Invalid package name
1. Type invalid package name:
  • empty name,
  • name beginning with number,
  • name with forbidden characters (e.g. space, &, etc.),
  • reserved java keywords (e.g. null, for, etc.).

RESULT: User prevented from class creation.
7Read only rights
1. Type class name and package name to create file in a read only directory.
RESULT: User prevented from class creation.
8Wrapped filter
1. Check Wrap Request and Response Objects checkbox.
RESULT: Valid filter created (compile it). Check generated source code for wrapping code.
9Without deployment descriptor information addition
1. Uncheck Add information to deployment descriptor (web.xml) checkbox.
RESULT: Check no changes in WEB-INF/web.xml file.
10Deployment descriptor information
1. Modify deployment descriptor information (Filter Name, Filter Mappings, Init Parameters)
RESULT: Check WEB-INF/web.xml file.
11Filter name with special XML characters
1. Type filter name with special XML characters (e.g. &, <, >, etc.).
RESULT: Check WEB-INF/web.xml file for valid characters translation to XML tags.
12Existing filter name
1. Type existing filter name (existing in servlet or filter names).
RESULT: User prevented from filter creation.
13Without filter mappings
1. Delete mappings associated to the created filter.
RESULT: User prevented from filter creation.
14More filter mappings with ordering
1. Create more filter mappings, modify order of mappings.
RESULT: Check WEB-INF/web.xml file for filter mappings order.
Teardown:



Test suite 5: Listener wizard - create new listener

Purpose: Create new listener using Listener wizard.
Setup: Have opened web application. Invoke wizard File|New File|Web|Web Module Listener.

#Test caseDescription
1New class name
1. Type new class name.
RESULT: Valid class created (compile it).
2Existing class name
1. Type existing class name.
RESULT: User prevented from class creation.
3Invalid class name
1. Type invalid class name:
  • empty name,
  • name beginning with number,
  • name with forbidden characters (e.g. space, dot, &, etc.),
  • reserved java keywords (e.g. null, for, etc.).

RESULT: User prevented from class creation.
4Choose package
1. Choose package.
RESULT: Valid class created (compile it).
5New package name
1. Type new package name (e.g. multilevel package name with dots).
RESULT: New package created with valid class (compile it).
6Invalid package name
1. Type invalid package name:
  • empty name,
  • name beginning with number,
  • name with forbidden characters (e.g. space, &, etc.),
  • reserved java keywords (e.g. null, for, etc.).

RESULT: User prevented from class creation.
7Read only rights
1. Type class name and package name to create file in a read only directory.
RESULT: User prevented from class creation.
8Interfaces
1. Check/uncheck interfaces checkboxes.
RESULT: Valid listener created (compile it). Check generated source code.
9With deployment descriptor
1. Check Add <listener> element to the Deployment Descriptor (web.xml) checkbox.
RESULT: Check changes in WEB-INF/web.xml file.
10Without deployment descriptor information addition
1. Uncheck Add <listener> element to the Deployment Descriptor (web.xml) checkbox.
RESULT: Check no changes in WEB-INF/web.xml file.
Teardown:



Test suite 6: Tag Handler wizard - create new tag handler

Purpose: Create new tag handler using Tag Handler wizard.
Setup: Have opened web application. Invoke wizard File|New File|Web|Tag Handler.

#Test caseDescription
1New class name
1. Type new class name.
RESULT: Valid class created (compile it).
2Existing class name
1. Type existing class name.
RESULT: User prevented from class creation.
3Invalid class name
1. Type invalid class name:
  • empty name,
  • name beginning with number,
  • name with forbidden characters (e.g. space, dot, &, etc.),
  • reserved java keywords (e.g. null, for, etc.).

RESULT: User prevented from class creation.
4Choose package
1. Choose package.
RESULT: Valid class created (compile it).
5New package name
1. Type new package name (e.g. multilevel package name with dots).
RESULT: New package created with valid class (compile it).
6Invalid package name
1. Type invalid package name:
  • empty name,
  • name beginning with number,
  • name with forbidden characters (e.g. space, &, etc.),
  • reserved java keywords (e.g. null, for, etc.).

RESULT: User prevented from class creation.
7Read only rights
1. Type class name and package name to create file in a read only directory.
RESULT: User prevented from class creation.
8Simple tag
1. Select SimpleTagSupport radio button.
RESULT: Check generated source code. Valid class created (compile it).
9Body tag
1. Select BodyTagSupport radio button.
RESULT: Check generated source code. Valid class created (compile it).
10With TLD information
1. Choose TLD file using Browse button.
2. Type Tag Name, choose Body Content and add some attributes.
RESULT: Check generated source code. Valid class created (compile it). Check TLD file changes.
11Without TLD information addition
1. Uncheck Add Corresponding Tag to the Library Descriptor checkbox.
RESULT: Check no changes in TLD file.
12Invalid tag name
1. Type invalid tag name using:
  • empty name,
  • existing name,
  • forbidden characters (e.g. space, etc.).

RESULT: User prevented from tag handler creation.
13Invalid attributes
1. Add invalid attribute(s) using:
  • empty name,
  • existing name,
  • forbidden characters (e.g. space, etc.).

RESULT: User prevented from tag handler creation.
Teardown:



Test suite 7: JSP wizard - create new JSP

Purpose: Create new JSP using JSP wizard.
Setup: Have existing mounted web module. Invoke wizard File|New File|Web|JSP.

#Test caseDescription
1New file name
1. Type new file name.
RESULT: Valid file created.
2Existing file name
1. Type existing file name.
RESULT: User prevented from file creation.
3Invalid 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.
4Choose folder
1. Choose folder by typing its name or using Browse button.
RESULT: Valid file created.
5New folder name
1. Type new folder name (e.g. multilevel folder name with slashs and backslashs).
RESULT: New folder created with valid file.
6Invalid folder name
1. Type invalid folder name:
  • name with forbidden characters (e.g. slash, question mark, star, etc.).

RESULT: User prevented from file creation.
7Read only rights
1. Type file name and folder name to create file in a read only directory.
RESULT: User prevented from file creation.
8JSP file (standard syntax)
1. Select JSP File (Standard Syntax) radio button.
RESULT: Valid file created.
9JSP document (XML syntax)
1. Select JSP Document (XML Syntax) radio button.
RESULT: Valid file created.
10JSP segment
1. Check Create as a JSP Segment checkbox.
RESULT: Valid file created.
11JSP segment (XML syntax)
1. Check Create as a JSP Segment checkbox and select JSP Document (XML Syntax) radio button.
RESULT: Valid file created.
Teardown:



Test suite 8: HTML wizard - create new HTML

Purpose: Create new HTML file using HTML File wizard.
Setup: Have existing mounted web module. Invoke wizard File|New File|Web|HTML.

#Test caseDescription
1New file name
1. Type new file name.
RESULT: Valid file created.
2Existing file name
1. Type existing file name.
RESULT: User prevented from file creation.
3Invalid 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.
4Choose folder
1. Choose folder by typing its name or using Browse button.
RESULT: Valid file created.
5New folder name
1. Type new folder name (e.g. multilevel folder name with slashs and backslashs).
RESULT: New folder created with valid file.
6Invalid folder name
1. Type invalid folder name:
  • name with forbidden characters (e.g. slash, question mark, star, etc.).

RESULT: User prevented from file creation.
7Read only rights
1. Type file name and folder name to create file in a read only directory.
RESULT: User prevented from file creation.
Teardown:



Test suite 9: Tag File wizard - create new tag file

Purpose: Create new Tag file using Tag File wizard.
Setup: Have existing mounted web module. Invoke wizard File|New File|Web|Tag File.

#Test caseDescription
1New file name
1. Type new file name.
RESULT: Valid file created.
2Existing file name
1. Type existing file name.
RESULT: User prevented from file creation.
3Invalid 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.
4Choose folder
1. Choose folder by typing its name or using Browse button.
RESULT: Valid file created.
5New folder name
1. Type new folder name (e.g. multilevel folder name with slashs and backslashs).
RESULT: New folder created with valid file.
6Invalid folder name
1. Type invalid folder name:
  • name with forbidden characters (e.g. slash, question mark, star, etc.).

RESULT: User prevented from file creation.
7Read only rights
1. Type file name and folder name to create file in a read only directory.
RESULT: User prevented from file creation.
8Tag file (standard JSP syntax)
1. Select Use Standard JSP Syntax radio button.
RESULT: Valid file created.
9Tag file (XML syntax)
1. Select Use XML Syntax radio button.
RESULT: Valid file created.
10Tag file segment
1. Check Create as a Segment of a Tag File checkbox.
RESULT: Valid file created.
11Tag file segment (XML syntax)
1. Check Create as a Segment of a Tag Filet checkbox and select Use XML Syntax radio button.
RESULT: Valid file created.
12Adding tag file into TLD
1. Check Add tag file into TLD checkbox and select TLD by clicking on Browse button.
RESULT: Tag record added into TLD.
Teardown:



Test suite 10: Tag Library Descriptor wizard - create new Tag library descriptor

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 caseDescription
1New file name
1. Type new file name.
RESULT: Valid file created.
2Existing file name
1. Type existing file name.
RESULT: User prevented from file creation.
3Invalid 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.
4Choose folder
1. Choose folder by typing its name or using Browse button.
RESULT: Valid file created.
5New folder name
1. Type new folder name (e.g. multilevel folder name with slashs and backslashs).
RESULT: New folder created with valid file.
6Invalid folder name
1. Type invalid folder name:
  • name with forbidden characters (e.g. slash, question mark, star, etc.).

RESULT: User prevented from file creation.
7Read only rights
1. Type file name and folder name to create file in a read only directory.
RESULT: User prevented from file creation.
8URI and Prefix generation
1. Fill file information.
RESULT: Check generated URI and Prefix from typed information.
9Empty URI
1. Type empty URI.
RESULT: User prevented from file creation.
10Empty Prefix
1. Type empty Prefix.
RESULT: User prevented from file creation.
Teardown:




Generated: Mon Jun 14 12:24:12 CEST 2004
Companion
Projects:
MySQL Database Server   GlassFish Community: an Open Source Application Server   Open Solaris  Open JDK: an Open SourceJDK   Mobile & Embedded Community     Sponsored by 
Sponsored by Sun Microsystems