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
Purpose: Tests functionality which make possible to
create Web Project base upon JSF framework.
| # |
Test case |
Description |
| 1 |
Create web application with JSF Support |
- Choose File > New Project and select the
Web Application template from the Web category.
- Click Next in Name and Location page.
- In the Frameworks page, check JavaServer Faces
framework.
- 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 case |
Description |
| 1 |
Add JSF support |
- Create a new web application project without
any framework.
- Call Properties popup action on project's node.
- In the Project Properties dialog select
Frameworks category.
- Click Add button.
- Select JavaServer Faces and confirm dialog.
- Check 'Verify Objects' and uncheck 'Validate
XML' check boxes.
- 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. |
|
Purpose: Test Wizard that creating JSF Managed Bean.
| # |
Test case |
Description |
| 1 |
Create JSF Managed Bean |
- Open the new file wizard (CTRL+N).
- Select Java Server Faces category and JSF
Managed Bean file type.
- Type a package name.
- Finish the wizard.
- 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 |
- Call Refactor|Safely Delete... context
action on managed bean node.
- Click Refactor to confirm dialog.
|
|
| RESULT:
Managed bean should be removed and corresponding element from
faces-config.xml should be removed. |
|
| # |
Test case |
Description |
| 1 |
Add managed bean |
- Open 'Configuration Files|faces-config.xml'
file.
- Call JavaServer Faces|Add Managed Bean
action in editor.
- Fill in requered values.
- Click Add button to confirm the dialog.
- 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 |
- Open 'Configuration Files|faces-config.xml'
file.
- Call JavaServer Faces|Add Navigation Rule
action in editor.
- Click Browse button and select a JSP.
- Type something in description field and click
Add button.
- Once more call JavaServer Faces|Add
Navigation Rule action in editor.
- Click Browse button and select the same JSP as
before.
- 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 |
- Open 'Configuration Files|faces-config.xml'
file.
- Call JavaServer Faces|Add Navigation Case
action in editor.
- From View field should be populated with
previously selected JSP.
- Type something in From Action, From Outcome and
Rule Description fields.
- Select a JSP in To View combo box.
- 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 |
- Open 'Configuration Files|faces-config.xml'
file.
- Call JavaServer Faces|Add Navigation Case
action in editor.
- Click Browse button and select a different JSP
than before.
- Type something in From Action, From Outcome and
Rule Description fields.
- Select a JSP in To View combo box.
- 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. |
|