cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

JSF Support Test Specyfication

Author: Lukasz Grela
Version: 1.0
Last update: Tue Mar 28 18:25:14 CEST 2006
Introduction: This test specification guides tester through test cases of JSF Support Functionality

Table of Contents

Test suite: Creating a New Application with JSF Support

Purpose: Tests functionality which make possible to create Web Project base upon JSF framework
Setup:

#Test caseCreating a New Web Application with JSF Support Description
11. Choose File > NewProject and selecting the Web Application template from the Web category.
2. In the Frameworks page, choose jsf frameworks.
3. Click finish


Test suite: Adding JSF Support to an Existing Application

Purpose: Test adding JSF Support
Setup: Create Web Project

#Test caseDescription
1Add Jsf Support 1.Right click a standard web application project's node and choose Properties.
2.Click Frameworks and select Java Server Faces.
3.Click OK to confirm your selection and exit the Project Properties dialog box.


Test suite: Managed Bean Wizard

Purpose: Test Wizard that creating JSF Managed Bean.
Setup: create web application with JSF support

#Test caseDescription
1Creating Managed Bean1. Right click on a web application.
2. Choose New > File/Folder and selecting JSF Managed Bean from the Web category.
3. Specifie the JSF managed bean class name.
4. Specifies a folder to house the JSF managed bean.
5. Specifies a package within the location to house the JSF managed bean.
6. Specify the scope of Managed Bean.
2Creating Managed Bean1. Open faces-config.xml
2. Right click in editor, choose Add Managed Bean option from context menu the dialog window should appear.
3. Specify Bean Name, Bean Class, Scope


Test suite: Support for faces-config.xml file

Purpose: Test that functionality that make possible add navigation rule and navigation case works properly
Setup: create web application with JSF support

#Test caseDescription
1 Adding Navigation Rule to faces-config.xml1. Open faces-config.xml Right-click in editor.
2. Using context menu choose Add Navigation Rule - dialog should appear
3. Specifiy Rule From View - it could be any jsp page in web project and Click OK
4. Xml representing Navigation Rule is added to faces-config.xml
2Adding Navigation Case to faces-config.xml1. Open faces-config.xml
2. Add Navigation Rule - previous test case
3. Right-click in editor,using context menu choose Add Navigation Case - dialog should appear
4. Specifiy From View,there should be one entry because you already add Navigation Rule
5. Specify also From Action, From Outcome, To View
6. Clock OK
7. Check that Xml document representing navigation case has been added to faces-config.xml and is nested beetwen <navigation-rule> tags
2Checking that Navigation Case expose desired functionality1. Open faces-config.xml Remove navigation rule from faces-cofig.xml if already exist
2. Click Right in editor pane, and choose from context menu "Add Navigation Case", dialog should appear
3. There should be no entry in From View (because Navigation Rule does't exist).
4. The Ok button should be disable - there is no possibility to create navigation case without navigation rule.



Generated: Tue Mar 28 18:25:14 CEST 2006
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