FeaturesPluginsDocs & SupportCommunityPartners

j2ee/documentation Test Specification

Author: Dan Kolar
Version: 1.0
Last update: 2007/02/28

Introduction:
Comment:

Table of Contents


Test suite 1: Overall samples test

Purpose: Test creation of samples
Setup: Start NetBeans with new userdir

#Test caseDescription
1Enterprise Samples setup test
  1. Try to create every Enterprise sample
RESULT: No sample is created, and message complaining about missing JavaEE5 server is shown
2Enterprise Samples creation
SETUP: Registrate Glassfish v2 b33 version
  1. Create AnnotationOverrideInterceptor sample
  2. Create CustomerCMP sample
  3. Create InterceptorStateless
  4. Create JsfJpa sample
  5. Create LotteryAnnotaion sample
  6. Create ServletStateless sample
  7. Create WebJpa sample
RESULT: All samples could be available and created without errors.

Test suite 2: Basic project operation with samples

Purpose: Test, if coommon operations with sample are possible.
Setup: Have all samples from previous test suite created. Glassfish registered as server.

#Test caseDescription
1Build project
  1. Invoke Build action
RESULT: Sample is successfuly built. No suspicious messages printed in output window.
2Clean and Build
  1. Invoke Clean and Build action
RESULT: Sample is successfuly cleaned and then built. No suspicious messages printed in output window.
3Clean
  1. Invoke Clean action
RESULT: Sample is successfuly cleaned. No suspicious messages printed in output window.
4Verify
  1. Invoke Verify action
RESULT: Verifier window opens and shows the process and results of verify. Sample is successfuly verified. Info about results of verify are printed to output window. No suspicious messages printed in output window.
5Run
  1. Invoke Run action
RESULT: Sample is successfuly built and deployed. When war is selected to run, browser window is opened and samples page are shown. When application client is selected to run, its results are printed to output window. No suspicious messages printed in output window.
6Debug (server stopped, or running in normal mode)
  1. Invoke Debug action
  2. Question dialog appears
  3. Click on 'No'
RESULT: If it is stopped, server is started. Debugger Console window is opened. Watches View, Call Stack and Local Variables windows are opened Sample is successfuly debugged. Watches View, Call Stack and Local Variables windows are closed. No suspicious messages printed in output window.
7Debug (server running in debug mode)
  1. Invoke Debug action
  2. Question dialog appears
  3. Click on 'Yes'
  4. Information dialog appears
  5. Confirm information.
RESULT: Sample is unsuccessfuly debugged.
8Deploy
  1. Invoke Deploy action
RESULT: Sample is successfuly deployed to the server. No suspicious messages printed in output window.

Test suite 3: Testing individual samples

Setup: Have appropriate sample created.

#Test caseDescription
1AnnotationOverrideInterceptor
  1. Invoke Run action
RESULT: Sample is successfuly built and deployed. Valid results are printed to output window. No suspicious messages printed in output window.
2CustomerCMP
  1. Set "Client Module URI" in project properties to war.
  2. Run project
  3. Try functionality of all 5 links.
RESULT: Browser is opened with resulting pages. Every action works, as it should. No errors appears on pages or in netbeans.
3InterceptorStateless
  1. Invoke Run action on the project.
RESULT: Sample is successfuly built and deployed. Valid results are printed to output window. No suspicious messages printed in output window.
4JsfJpa
  1. Run sample.
  2. Click on link.
  3. Add new user to database
  4. Test successful and unsuccessful login
RESULT: Browser is opened. You log in with valid user/password combination. You fail to log with invalid user/password combination No errors appears on pages or in netbeans.
5LotteryAnnotation
  1. Set "Client Module URI" in project properties to war.
  2. Run project
  3. Try picking number by 'Quick Pick'.
RESULT: Browser is opened with resulting pages. Every Quick Pick show result. No errors appears on pages or in netbeans.
6ServletStateless
  1. Set "Client Module URI" in project properties to war.
  2. Run project
  3. Fill some text and push the button
RESULT: Browser is opened. Servlet greets you. No errors appears on pages or in netbeans.
7WebJpa
  1. Run sample.
  2. Click on link and create new personal record.
  3. Add new user to database
RESULT: Browser is opened. You can add successfuly new personal record to the database. All records are correctly shown. No errors appears on pages or in netbeans.

Generated: 2007 03 05 11:32
Companion
Projects:
MySQL Database Server   Open JDK: an Open SourceJDK   GlassFish Community: an Open Source Application Server    Mobile & Embedded Community    Open Solaris   java.net - The Source for Java Technology Collaboration   Virtual Box - full virtualizer  Open ESB - The Open Enterprise Service Bus Powered by