JSF Support Test Specification

Author: Lukasz Grela, Jiri Skrivanek
Version: NetBeans 6.0
Last update: 6-th September 2007

Introduction: This test specification guides tester through test cases of JSF Support functionality.
Comment:

Table of Contents


Test suite 1: Creating a new application with JSF support

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

# Test case Description
1 Create web application with JSF Support
  1. Choose File > New Project and select the Web Application template from the Web category.
  2. Click Next in Name and Location page.
  3. In the Frameworks page, check JavaServer Faces framework.
  4. Click Finish.
RESULT: Verify 'Web Pages/welcomeJSF.jsp', 'Configuration Files|faces-config.xml', 'Libraries|JSF *' exist in web project. Open 'Configuration Files|web.xml' and check verifyObjects param is false, validateXml is true and servlet mapping for JSF is created.

Test suite 2: Adding JSF support to an existing application

# Test case Description
1 Add JSF support
  1. Create a new web application project without any framework.
  2. Call Properties popup action on project's node.
  3. In the Project Properties dialog select Frameworks category.
  4. Click Add button.
  5. Select JavaServer Faces and confirm dialog.
  6. Check 'Verify Objects' and uncheck 'Validate XML' check boxes.
  7. Click OK to confirm the Properties dialog.
RESULT: Verify 'Web Pages/welcomeJSF.jsp', 'Configuration Files|faces-config.xml', 'Libraries|JSF *' were added into web project. Open 'Configuration Files|web.xml' and check verifyObjects param is true, validateXml is false and servlet mapping for JSF is created.

Test suite 3: JSF Managed Bean wizard

Purpose: Test Wizard that creating JSF Managed Bean.

# Test case Description
1 Create JSF Managed Bean
  1. Open the new file wizard (CTRL+N).
  2. Select Java Server Faces category and JSF Managed Bean file type.
  3. Type a package name.
  4. Finish the wizard.
  5. Try to repeat steps 1 - 4 but change name, scope, description in the wizard and verify generated XML.
RESULT: Verify a java class is created in specified package and faces-config.xml contains a new managed-bean element with proper sub elements.
2 Delete JSF Managed Bean
  1. Call Refactor|Safely Delete... context action on managed bean node.
  2. Click Refactor to confirm dialog.
RESULT: Managed bean should be removed and corresponding element from faces-config.xml should be removed.

Test suite 4: Actions in faces-config.xml file

# Test case Description
1 Add managed bean
  1. Open 'Configuration Files|faces-config.xml' file.
  2. Call JavaServer Faces|Add Managed Bean action in editor.
  3. Fill in requered values.
  4. Click Add button to confirm the dialog.
  5. Repeat steps 2 - 4 several times and change parameters. Also try to browse for a class (issue 91007).
RESULT: Verify faces-config.xml contains a new managed-bean element with proper sub elements.
2 Add navigation rule
  1. Open 'Configuration Files|faces-config.xml' file.
  2. Call JavaServer Faces|Add Navigation Rule action in editor.
  3. Click Browse button and select a JSP.
  4. Type something in description field and click Add button.
  5. Once more call JavaServer Faces|Add Navigation Rule action in editor.
  6. Click Browse button and select the same JSP as before.
  7. Add button should be disabled with message that navigation rule already exists.
RESULT: Verify faces-config.xml contains a new navigation-rule element with proper sub elements.
3 Add navigation case to existing rule
  1. Open 'Configuration Files|faces-config.xml' file.
  2. Call JavaServer Faces|Add Navigation Case action in editor.
  3. From View field should be populated with previously selected JSP.
  4. Type something in From Action, From Outcome and Rule Description fields.
  5. Select a JSP in To View combo box.
  6. Click Add button.
RESULT: Verify faces-config.xml contains a new navigation-case element inside previously created navigation-rule element. Check sub elements corresponds to specified parameters.
4 Add navigation case with new rule
  1. Open 'Configuration Files|faces-config.xml' file.
  2. Call JavaServer Faces|Add Navigation Case action in editor.
  3. Click Browse button and select a different JSP than before.
  4. Type something in From Action, From Outcome and Rule Description fields.
  5. Select a JSP in To View combo box.
  6. Click Add button.
RESULT: Verify faces-config.xml contains a new navigation-case element inside newly created navigation-rule element. Check sub elements corresponds to specified parameters.

Project Features

About this Project

QA was started in November 2009, is owned by Jiří Kovalský, and has 97 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close