GlassFish Deployment Test Specification for NetBeans 6.0 Release

Contents
Test Specification Identifier
        Features to be tested
        Approach Refinements
        Test Identification
        Test Cases
Approvals
Revision History

Test Specification identifier   http://qa.netbeans.org/modules/webapps/promo-h/GlassFishDeployment.html

(F) Features to be tested

Features that will be Implemented and Tested for NetBeans 6.0 Release
  • Integration with GlassFish
  • (A) Approach refinements

       This exercise would comprise of :
  • Identifying a list of web applications that are pre-built or that can be built using NetBeans IDE
  • Identifying the deployment features that need to tested/verified by this testing
  • Each of thie identified application would be tested for the deployment features against acceptable GlassFish/DBServer combination.
  • (T) Test Identification (Test Areas)

    List of Features Tested for Deployment

    • Common Tests to be exercised with GlassFish container and supported databases
    Test Cases Detail/Procedure
    Execute the  following tests for the J2EE 1.4 Application Server


    Add Server Instance dialog

    Setup (e): Install necessary GlassFishs.
    Test Id (t) Test Item (i) Input Spec (o) Output Spec (e) Env needs (d) Intercase dependencies /Notes
    asd_001 Servers node
    1. Expand Servers node
    Verify that Servers node contain "Bundled Tomcat (5.5.17)" subnode


    asd_002 Closing "Add Server ..." context menu
    1. Select Servers node
    2. Right click
    3. Type Esc key
    4. Right click
    5. Select any other node
    Verify that context menu is closing after 3) and 5)


    asd_003 "Add Server Instance" dialog
    1. Select Servers node
    2. Right click
    3. Left click "Add Server ..."
    Verify that:
    • Servers dropdown list contains: BEA WebLogic Server 9, JBoss Application Server 4, Sun Java System Application Server, Tomcat 5.0, Tomcat 5.5
    • These servers enter in indicated above order
       
    asd_004

    "Add Server Instance" dialog; Step 1; Name
    1. Choose "Sun Java System  Application Server" in dropdown list
    Verify that "Sun Java System Application Server" value appear in Name text filed
       
    asd_005 "Add Server Instance" dialog; Step 2; Nothing entered
    1. Click Next button
    Verify that:
    • $HOME is entered in "Platform Location" text field
    • "Register Local Default Domain" radio button is selected
    • Nothing is displayed in Domain dropdown list
    • String "Provide a valid Sun Java System Application Server Installation Location" is displayed at the bottom
       
    asd_006 "Add Server Instance" dialog; Step 2; Register Local Default Domain; Enter Platform Location - Browse
    1. Click Browse button next to Platform Location text field
    2. Find GlassFish install location and click Choose button
    Verify that:
    1. "Choose Application Server's Install Location" dialog appear
      • "Choose Application Server's Install Location" dialog disappear
      • Sun Java System Application Server install location appear in Platform Location text field
      • List of domain appear in Domain dropdown list
       
    asd_007 "Add Server Instance" dialog; Step 2; Register Local Default Domain; Enter Platform Location - Enter location
    1. Remove all from Platform Location text field
    2. Enter GlassFish install location
    Verify that:
    1. Nothing is entered in Platform Location text field

      • Sun Java System Application Server install location appear in Platform Location text field
      • List of domain appear in Domain dropdown list
       
    asd_008 "Add Server Instance" dialog; Step 3; Register Local Default Domain; Enter valid Admin Username and Password
    1. Click Next button
    2. Enter valid admin username and admin password. Click Finish button
    Verify that:
      • String "admin" is entered in Admin username text field
      • Nothing is entered in Admin Password text field
    1. "Sun Java System Application Server" node appear as subnode of Servers node
       
    asd_009 "Add Server Instance" dialog; Register Local Default Domain; Enter invalid Admin Username and Password
    1. Repeat asd_003 - asd_007. Enter "Invalid Sun Java System Application Server" in Name text field at Step 1. Click Next button
    2. Enter invalid admin username and admin password. Click Finish button
    Verify that:
      • String "admin" is entered in Admin username text field
      • Nothing is entered in Admin Password text field
    1. "Invalid Sun Java System Application Server" node appear as subnode of Servers node


    asd_010 "Add Server Instance" dialog; Step 2; Register Local Domain
    1. Repeat asd_003 - asd_007. Enter "Local Sun Java System Application Server" in Name text field at Step 1. Select "Register Local Domain" radio button at Step 2. Click Next button
    Verify that:
    • Nothing is displayed in Domain Folder text field
    • Nothing is displayed in Admin Port text field


    asd_011 "Add Server Instance" dialog; Step 3; Register Local Domain; Enter Domain Folder - Browse
    1. Click Browse button next to Domain Folder text field
    2. Find domain folder location and click Choose button
    Verify that:
    1. "Choose Domain's Location" dialog appear
      • "Choose Domain's Location" dialog disappear
      • Domain folder location appear in Domain Folder text field
      • Value of admin port appear in Admin Port text field


    asd_012 "Add Server Instance" dialog; Step 3; Register Local Domain; Enter Domain Folder - Enter location
    1. Remove all from Domain Folder text field
    2. Enter domain folder location
    Verify that:
    1. Nothing is entered in Domain Folder text field

      • Domain folder location appear in Domain Folder text field
      • Value of admin port appear in Admin Port text field


    asd_013 "Add Server Instance" dialog; Step 4; Register Local Domain; Enter valid Admin Username and Password
    1. Click Next button
    2. Enter valid admin username and admin password. Click Finish button
    Verify that:
      • Nothing is entered in Admin Username text field
      • Nothing is entered in Admin Password text field
    1. "Local Sun Java System Application Server" node appear as subnode of Servers node


    asd_014 "Add Server Instance" dialog; Step 4; Register Local Domain; Enter invalid Admin Username and Password
    1. Repeat asd_010 - asd_012. Enter "Invalid Local Sun Java System Application Server" in Name text field at Step 1. Click Next button
    2. Enter invalid admin username and admin password. Click Finish button
    Verify that:
      • Nothing is entered in Admin Username text field
      • Nothing is entered in Admin Password text field
    1. "Invalid Local Sun Java System Application Server" node appear as subnode of Servers node


    asd_015 "Add Server Instance" dialog; Step 2; Register Remote Domain
    1. Repeat asd_003 - asd_007. Enter "Remote Sun Java System Application Server" in Name text field at Step 1. Select "Register Local Domain" radio button at Step 2. Click Next button
    Verify that:
    • Nothing is displayed in Host text field
    • String "4848" is displayed in Port text field


    asd_016 "Add Server Instance" dialog; Step 4; Register Remote Domain; Enter valid Admin Username and Password
    1. Enter Host name or IP and port. Click Next button
    2. Enter valid admin username and admin password. Click Finish button
    Verify that:
      • Nothing is entered in Admin Username text field
      • Nothing is entered in Admin Password text field
    1. "Remote Sun Java System Application Server" node appear as subnode of Servers node


    asd_017 "Add Server Instance" dialog; Step 4; Register Remote Domain; Enter invalid Host and Port
    1. Repeat asd_015. Enter "Wrong Remote Sun Java System Application Server" in Name text field at Step 1. Click Next button. Enter invalid Host name or IP and port. Click Next button
    2. Enter any admin username and admin password. Click Finish button
    Verify that:
      • Nothing is entered in Admin Username text field
      • Nothing is entered in Admin Password text field
    1. "Wrong Remote Sun Java System Application Server" node appear as subnode of Servers node


    asd_018 "Add Server Instance" dialog; Step 4; Register Remote Domain; Enter invalid Admin Username and Password
    1. Repeat asd_015. Enter "Invalid Remote Sun Java System Application Server" in Name text field at Step 1. Click Next button. Enter Host name or IP and port. Click Next button
    2. Enter invalid admin username and admin password. Click Finish button
    Verify that:
      • Nothing is entered in Admin Username text field
      • Nothing is entered in Admin Password text field
    1. "Invalid Remote Sun Java System Application Server" node appear as subnode of Servers node


    asd_019 "Add Server Instance" dialog; Step 2; Create Personal Domain
    1. Repeat asd_003 - asd_007. Enter "Personal Sun Java System Application Server" in Name text field at Step 1. Select "Create Personal Domain" radio button at Step 2. Click Next button
    Verify that:
    • Nothing is entered in "Domain Folder" text field
    • String "Invalid Sun Java System Application Server Domain : ""." is displayed at the bottom


    asd_020 "Add Server Instance" dialog; Step 3; Create Personal Domain; Enter Domain Folder - Browse
    1. Click Browse button next to Domain Folder text field
    2. Find domain folder location and click Choose button
    Verify that:
    1. "Choose Domain's Location" dialog appear
      • "Choose Domain's Location" dialog disappear
      • Domain folder location appear in Domain Folder text field


    asd_021 "Add Server Instance" dialog; Step 3; Create Personal Domain; Enter Domain Folder - Enter location
    1. Remove all from Domain Folder text field
    2. Enter domain folder location
    Verify that:
    1. Nothing is entered in Domain Folder text field
    2. Domain folder location appear in Domain Folder text field


    asd_022 "Add Server Instance" dialog; Step 4; Create Personal Domain; Enter Admin Username and Password
    1. Click Next button. Enter admin username and as admin password enter "a"
    2. Enter as admin password valid password
    Verify that:
    1. String "Password length must exceed seven characters when creating a domain" appear at the bottom
    2. String disappear.


    asd_023 "Add Server Instance" dialog; Step 5; Create Personal Domain
    1. Click Next button.
    2. Enter necessary values. Click Finish
    Verify that:
    1. Values are displayed for each parameter.
    2. "Personal Remote Sun Java System Application Server" node appear as subnode of Servers node




    Deployment Server node

    Test Id (t) Test Item (i) Input Spec (o) Output Spec (e) Env needs (d) Intercase dependencies /Notes
    dsn_001 Appearing Sun Java System Application Server node context menu
    1. Select Sun Java System Application Server node
    2. Right click
    Verify that Sun Java System Application Server node context menu is appearing and is including following items:
    • Start
    • Start in Debug mode
    • Restart
    • Stop
    • Refresh
    • Remove
    • View Admin Console
    • View Server Log
    • Properties
       
    dsn_002 Correctness of display of items of the menu
    1. Select Sun Java System Application Server node
    2. Right click
    Verify that:
    1. State of Sun Java System Application Server is stopped
    2. For local instances: all items are enabled, except Restart and Stop; for remote instances: all items are enabled, except Start, Start in Debug Mode, Restart, Stop, View Server Log


    dsn_003 Correctness of display of items of the menu
    1. Start Sun Java System Application Server. Select Sun Java System Application Server node
    2. Right click
    3. Stop Sun Java System Application Server
    Verify that:
    1. State of Sun Java System Application Server is running
    2. For local instances: all items are enabled, except Start and Start in Debug Mode; for remote instances: all items are enabled, except Start, Start in Debug Mode, Restart, Stop, View Server Log


    dsn_004 Start
    1. Select Sun Java System Application Server node. Right click. Select Start
    Verify that:
    • String "Starting Sun Java System Application Server" appear in the status bar
    • After some time Sun Java System Application Server is running and it is marked accordingly


    dsn_005 Restart
    1. Select Sun Java System Application Server node. Right click. Select Restart
    Verify that:
    • String "Restarting Sun Java System Application Server" appear in the status bar
    • After some time Sun Java System Application Server is running and it is marked accordingly


    dsn_006 Stop
    1. Select Sun Java System Application Server node. Right click. Select Stop
    Verify that:
    • String "Stopping Sun Java System Application Server" appear in the status bar
    • After some time Sun Java System Application Server is stopped and it is marked accordingly


    dsn_007 Start in Debug Mode
    1. Select Sun Java System Application Server node. Right click. Select Start in Debug Mode
    Verify that:
    • String "Starting Sun Java System Application Server in Debug Mode" appear in the status bar
    • After some time Sun Java System Application Server is running and it is marked accordingly


    dsn_008 Refresh
    1. Select Sun Java System Application Server node. Right click. Select Refresh
    Verify that Sun Java System Application Server node and subnodes are refreshed

    dsn_009 Admin console
    1. Select Sun Java System Application Server node. Right click. Select View Admin Console
    Verify that browser is opened and Admin Console appears in it
       
    dsn_010 Server log
    1. Select Sun Java System Application Server node. Right click. Select View Server Log
    Verify that Server Log appear    
    dsn_011 Properties
    1. Select Sun Java System Application Server node. Right click. Select Properties
    Verify that:
    • Server Manager is opened
    • Sun Java System Application Server node is selected
    • Sun Java System Application Server properties are displayed at the right pane
       
    dsn_012 Remove
    1. Stop Sun Java System Application Server. Select Sun Java System Application Server node. Right click. Select Remove
    2. Add Sun Java System Application Server back
    1. Verify that Sun Java System Application Server node is removed from Servers node


    dsn_013 Repeat dsn_001 - dsn_012
    Repeat dsn_001 - dsn_012 for all local valid instances and dsn_008, dsn_009, dsn_011, dsn_012 for valid remote instances Verify the same


    dsn_014 Start  with invalid admin username and password - Cancel
    1. Select Invalid Sun Java System Application Server node. Right click. Select Start
    2. Click Cancel
    Verify that:
      • String "Starting Sun Java System Application Server" appear in the status bar
      • After some time dialog appear.
    1. Error message "Authentication failed" appear


    dsn_015 Start  with invalid admin username and password - Enter invalid admin username and password
    1. Select Invalid Sun Java System Application Server node. Right click. Select Start
    2. Enter invalid admin username and password and click OK
    Verify that:
      • String "Starting Sun Java System Application Server" appear in the status bar
      • After some time dialog appear.
    1. Dialog appear again


    dsn_016 Start  with invalid admin username and password - Enter valid admin username and password
    1. Select Invalid Sun Java System Application Server node. Right click. Select Start
    2. Enter valid admin username and password and click OK
    Verify that:
      • String "Starting Sun Java System Application Server" appear in the status bar
      • After some time dialog appear.
      • Dialog disappear
      • Sun Java System Application Server is running and it is marked accordingly


    dsn_017 Repeat dsn_014 - dsn_016
    Repeat dsn_014 - dsn_016 for all invalid instances; for invalid remote instances click Refresh instead Start
    Verify the same




    Applications node

    Test Id (t) Test Item (i) Input Spec (o) Output Spec (e) Env needs (d) Intercase dependencies /Notes
    dcn_001 Appearing Applications node context menu
    1. Select Applications node. Right click
    Verify that Applications node context menu appear and it include following items:
    • Refresh
       
     dcn_002 Closing Applications node context menu 
    1. Select Applications node. Right click. Type Esc key
    Verify that context menu is closing    
    dcn_003 Expanding Applications node
    1. Expand Applications node.
    Verify that Applications node contains following nodes:
    • Enterprise Applications
    • Web Applications
    • EJB Modules
    • Connector Modules
    • App Client Modules
       
    dcn_004 Refreshing Applications node tree
    1. Create New project. Build and Run project. Select Applications node. Right click. Left click Refresh
    Verify that Applications node tree was refreshed and the application is visible as node under Applications->Web Applications    
    dcn_005 Appearing Web Applications node context menu
    1. Select Applications->Web Applications node. Right click
    Verify that Web Applications node context menu appear and it include following items:
    • Refresh
       
     dcn_006 Closing Web Applications node context menu 
    1. Select Applications->Web Applications node. Right click. Type Esc key
    Verify that context menu is closing    
    dcn_007 Refreshing Web Applications node tree
    1. Create New project. Build and Run project. Select Applications->Web Applications node. Right click. Left click Refresh
    Verify that Web Applications node tree was refreshed and the application is visible as node under Applications->Web Applications    


    Resources node

    Test Id (t) Test Item (i) Input Spec (o) Output Spec (e) Env needs (d) Intercase dependencies /Notes
    rn_001 Appearing Resources node context menu
    1. Select Resources node. Right click
    Verify that Resources node context menu appear and it include following items:
    • Refresh
       
    rn_002
    Appearing Resources subnode context menu
    1. Select Resources subnode (JDBC, JDBC Resources, Connection Pools,...). Right click
    Verify that Resources node context menu appear and it include following items:
    • Refresh


    rn_003 Closing Resources node context menu 
    1. Select Resources node
    2. Right click
    3. Type Esc key
    4. Select Resources node
    5. Right click
    6. Left click on any part of application
    Verify that context menu is closing after 3) and 5)
       
    rn_004 Closing Resources subnode context menu 
    1. Select Resources subnode (JDBC, JDBC Resources, Connection Pools,...)
    2. Right click
    3. Type Esc key
    4. Select Resources subnode (JDBC, JDBC Resources, Connection Pools,...)
    5. Right click
    6. Left click on any part of application
    Verify that context menu is closing after 3) and 5)
       
    rn_005 Expanding Resources node
    1. Expand Resources node.
    Verify that Applications node contains following nodes:
    • JDBC
    • JDBC Resources
    • Connection Pools
  • JMS Resources
  • Java Mail Resources
  • JNDI
  • Connectors
  •    
    rn_006 Properties on Resources subnode
    1. Select Resources->JDBC Resources->jdbc/__default subnode.
    2. Right click
    3. Left click on Properties
    The properites dialog box should come up    
    rn_007 Delete on Resources subnode
    1. Select any subnode of Resources->JDBC Resources node
    2. Right click
    3. Left click on Delete
    4. Select multiple subnodes of Resources->JDBC Resources node
    5. Left click on Delete
    The subnodes should be deleted



    JVM node

    Test Id (t) Test Item (i) Input Spec (o) Output Spec (e) Env needs (d) Intercase dependencies /Notes
    JVM_001 Appearing JVM node context menu
    1. Select JVM node. Right click
    Verify that JVM node context menu appear and it include following items:
    • Properties
       
    JVM_002 Closing JVM node context menu 
    1. Select JVM node
    2. Right click
    3. Type Esc key
    4. Select JVM node
    5. Right click
    6. Left click on any part of application
    Verify that context menu is closing after 3) and 5)
       
    JVM_003 Properties on JVM node
    1. Select JVM node.
    2. Right click
    3. Left click on Properties
    The properites dialog box should come up    


    Deployment

    Setup (e): Install supported DBs.
    Test Id (t) Test Item (i) Input Spec (o) Output Spec (e) Env needs (d) Intercase dependencies /Notes
    d_001 Deployment simple application
    1. Create New project
    2. Build and Run project
    Verify that deployment is successful and the application is visible as node under Applications->Web Applications    
    d_002 Redeployment simple application
    1. Run existing Project
    Verify that redeployment is successful    
    d_003 Appearing deployed application context menu
    1. Select any deployed application. Right Click
    Verify that context menu appear and is including following items:
    • Undeploy
    • Disable
    • Properties
       
    d_004 Closing Deployed Application Context menu
    1. Select any deployed application
    2. Right Click
    3. Type Esc key
    Verify that Context menu is closing    
    d_005 Application properties
    1. Select any deployed application
    2. Right Click
    3. Left click Properties
    Verify that Properties window has focus and in this window is showing application properties    
    d_006 Disable application
    1. Select any deployed application
    2. Right Click
    3. Left click Disable
    Verify that application is disabled    
    d_007 Enable application
    1. Select any deployed application
    2. Right Click
    3. Left click Enable
    Verify that application is enabled    
    d_008 Undeployment application
    1. Select any deployed application
    2. Right Click
    3. Left click Undeploy
    Verify that undeployment is successful and the application is invisible as node under deployed application    
    d_009
    Components
    1. Create New project
    2. Create second page
    3. Create subfolder and third page in it
    4. Add Page Fragment components to every page and add page navigation rules  between them
    5. Add some components to all 3 pages
    6. Build and Run project
    Verify that:
    • Deployment is successful
    • The application is visible as node under deployed application
    • Navigation between pages works
    • All components are displayed correctly


    d_010 Deployment application which using Database connectivity
    1. Copy DB driver jar files to $App_Server_Dir/lib directory. Restart Sun Java System Application Server
    2. Create New Project
    3. Add to the Project Table component from the JSF palette
    4. Add to the project table PERSON from the Travel Database
    5. Bind the Data Table with the PERSON table
    6. Build and Run project
    7. Repeat for all supported DBs
    Verify that deployment is successful and the application is visible as node under deployed application    
    d_011 Redeployment application which using Database connectivity
    1. In existing project which using Database connectivity drop Data Table, Data Table model, Person model and Person Row set
    2. Build and Run project
    3. Repeat for all supported DBs
    Verify that redeployment is successful    
    d_012 Restart the IDE and deploy
    1. Restart the IDE
    2. Start GlassFish
    3. Develop an application with a Data Source (Travel) and a drop down menu
    4. Deploy the application
    5. Restart the IDE
    6. Deploy the previously created application
    7. Add a button, add a drop down menu and bind it with a data source
    8. Redeploy the application
    Verify for the successful deployment .


    d_013 Stop/Start Sun Java System Application Server and deploy
    1. Create an application using a data source.
    2. Stop and Start the Sun Java System Application Server
    3. Deploy the application
    Verify for the successful deployment .

    d_014 Stop/Start DB and deploy
    1. Create an application using a data source.
    2. Stop and Start the DB
    3. Deploy the application
    4. Repeat for all supported DBs
    Verify for the successful deployment .

    d_015 Stop Sun Java System Application Server and Deploy
    1. Create an application
    2. Stop the Sun Java System Application Server
    3. Deploy the application
    During deployment Sun Java System Application Server is started and deployment should be successful.


    d_016 Stop DB and Deploy
    1. Create an application
    2. Stop the DB
    3. Deploy the application
    Deploy should be successful, but in browser exception must be thrown.

    d_017 Change the data source and deploy
    1. Create an application using a data source and a drop down menu
    2. Deploy the application
    3. Add a different data source n the drop down menu
    4. Deploy the application
    Deploy should be successful and every time it should display a different data source



     

    Approvals

     
    Reviewer Name & Title Date


    Revision History

     
    Author Date Description
    Roman Mostyka
    Sep-19-2007
    Created for NetBeans 6.0

     


    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