Tomcat Deployment Test Specification for NetBeans 6.0 Release (updated for 6.5)

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/TomcatDeployment.html

(F) Features to be tested

Features that will be Implemented and Tested for NetBeans IDE
  • Integration with Tomcat 5.0, 5.5 and 6.0
  • (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 this identified application would be tested for the deployment features with all supported Tomcat versions.
  • (T) Test Identification (Test Areas)

    List of Features Tested for Deployment

    • Common Tests to be exercised with Tomcat 5.0, 5.5 and 6.0 container.
    Test Cases Detail/Procedure
    Execute the  following tests for the J2EE 1.4 Application Server


    Add Server Instance dialog

    Setup (e): Install necessary Tomcats 5.0 (Tomcats 5.5, Tomcat 6.0).
    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" 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|5.5|6.0]
    • These servers enter in indicated above order
       
    asd_004

    "Add Server Instance" dialog; Step 1; Name
    1. Choose Tomcat [5.0|5.5|6.0] in dropdown list
    Verify that Tomcat [5.0|5.5|6.0] value appear in Name text filed
       
    asd_005 "Add Server Instance" dialog; Step 2; Nothing entered
    1. Click Next button
    Verify that:
    • Nothing is entered in "Catalina Home" text field
    • "Use Private Configuration Folder" checkbox is uncheked
    • Nothing is entered in Username text field
    • Nothing is entered in Password text field
    • String "Specify the Catalina Home folder" is displayed at the bottom
       
    asd_006 "Add Server Instance" dialog; Step 2; Enter Catalina Home - Browse
    1. Click Browse button next to Catalina Home text field
    2. Find Tomcat [5.0|5.5|6.0] install location and click Open button
    Verify that:
    1. "Open" dialog appear
      • "Open" dialog disappear
      • Tomcat [5.0|5.5|6.0] install location appear in Catalina Home text field
       
    asd_007 "Add Server Instance" dialog; Step 2; Enter Catalina Home - Enter location
    1. Remove all from Catalina Home text field
    2. Enter Tomcat [5.0|5.5|6.0] install location
    Verify that:
    1. Nothing is entered in Catalina Home text field
    2. Tomcat [5.0|5.5|6.0] install location appear in Catalina Home text field
       
    asd_008 "Add Server Instance" dialog; Step 2; Enter valid Admin Username and Password
    1. Enter valid admin username and admin password. Click Finish button
    Verify that:
    1. Tomcat [5.0|5.5|6.0] node appear as subnode of Servers node
       
    asd_009 "Add Server Instance" dialog; Enter invalid Admin Username and Password
    1. Repeat asd_003 - asd_007. Enter "Invalid Tomcat [5.0|5.5|6.0] 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 Username text field
      • Nothing is entered in Password text field
    1. "Invalid  Tomcat [5.0|5.5|6.0]" node appear as subnode of Servers node


    asd_010 "Add Server Instance" dialog; Use Private Configuration Folder
    1. Repeat asd_003 - asd_007. Enter "Private Tomcat [5.0|5.5|6.0] in Name text field at Step 1. Click Next button
    2. Check "Use Private Configuration Folder" checkbox
    Verify that:
      • Nothing is entered in Username text field
      • Nothing is entered in Password text field
      • Catalina Base text folder become editable
      • String "Specify the Catalina Base folder" appear at the bottom


    asd_011 "Add Server Instance" dialog; Step 2; Enter Catalina Base - Browse
    1. Click Browse button next to Catalina Base text field
    2. Find Tomcat [5.0|5.5|6.0] base location and click Open button
    Verify that:
    1. "Open" dialog appear
      • "Open" dialog disappear
      • Tomcat [5.0|5.5|6.0] base location appear in Catalina Base text field
       
    asd_012 "Add Server Instance" dialog; Step 2; Enter Catalina Base - Enter location
    1. Remove all from Catalina Base text field
    2. Enter Tomcat [5.0|5.5|6.0] base location
    3. Enter admin username and password. Click Finish.
    Verify that:
    1. Nothing is entered in Catalina Home text field
    2. Tomcat [5.0|5.5|6.0] base location appear in Catalina Home text field
    3. "Private Tomcat [5.0|5.5|6.0]" 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 Tomcat [5.0|5.5|6.0] node context menu
    1. Select Tomcat [5.0|5.5|6.0] node
    2. Right click
    Verify that Tomcat [5.0|5.5|6.0] node context menu is appearing and is including following items:
    • Start
    • Start in Debug mode
    • Restart
    • Stop
    • Refresh
    • Remove
    • Edit server.xml
    • View Admin Console
    • View Shared Context Log for Tomcat 5.0 and View Server Log for Tomcat 5.5
    • View Server Output
    • Properties
       
    dsn_002 Correctness of display of items of the menu
    1. Select Tomcat [5.0|5.5|6.0] node
    2. Right click
    Verify that:
    1. State of Tomcat [5.0|5.5|6.0] is stopped
    2. All items are enabled, except Restart, Stop and View Server Output


    dsn_003 Correctness of display of items of the menu
    1. Start Tomcat [5.0|5.5|6.0]. Select Tomcat [5.0|5.5|6.0] node
    2. Right click
    3. Stop Tomcat [5.0|5.5|6.0]
    Verify that:
    1. State of Tomcat [5.0|5.5|6.0] is running
    2. All items are enabled, except Start and Start in Debug Mode


    dsn_004 Start
    1. Select Tomcat [5.0|5.5|6.0] node. Right click. Select Start
    Verify that:
    • String "Starting Tomcat [5.0|5.5|6.0]" appear in the status bar
    • After some time Tomcat [5.0|5.5|6.0] is running and it is marked accordingly


    dsn_005 Restart
    1. Select Tomcat [5.0|5.5|6.0] node. Right click. Select Restart
    Verify that:
    • String "Restarting Tomcat [5.0|5.5|6.0]" appear in the status bar
    • After some time Tomcat [5.0|5.5|6.0] is running and it is marked accordingly


    dsn_006 Stop
    1. Select Tomcat [5.0|5.5|6.0] node. Right click. Select Stop
    Verify that:
    • String "Stopping Tomcat [5.0|5.5|6.0]" appear in the status bar
    • After some time Tomcat [5.0|5.5|6.0] is stopped and it is marked accordingly


    dsn_007 Start in Debug Mode
    1. Select Tomcat [5.0|5.5|6.0] node. Right click. Select Start in Debug Mode
    Verify that:
    • String "Starting Tomcat [5.0|5.5|6.0] in Debug Mode" appear in the status bar
    • After some time Tomcat [5.0|5.5|6.0] is running and it is marked accordingly


    dsn_008 Refresh
    1. Select Tomcat [5.0|5.5|6.0] node. Right click. Select Refresh
    Verify that Tomcat [5.0|5.5|6.0] node and subnodes are refreshed

    dsn_009 server.xml
    1. Select Tomcat [5.0|5.5|6.0] node. Right click. Select Edit server.xml
    Verify that server.xml is opened and ready for editing
       
    dsn_010 Admin console
    1. Select Tomcat [5.0|5.5|6.0] node. Right click. Select View Admin Console
    Verify that browser is opened and Admin Console appears in it
       
    dsn_011 (Shared Context Log) Server Log
    1. Select Tomcat [5.0|5.5|6.0] node. Right click. Select View Shared Context Log for Tomcat 5.0 (View Server Log for Tomcat 5.5)
    Verify that Shared Context Log (Server Log) appear    
    dsn_012 Server Output
    1. Select Tomcat [5.0|5.5|6.0] node. Right click. Select View Server Output
    Verify that Server Output appear    
    dsn_013 Properties
    1. Select Tomcat [5.0|5.5|6.0] node. Right click. Select Properties
    Verify that:
    • Server Manager is opened
    • Tomcat [5.0|5.5|6.0] node is selected
    • Tomcat [5.0|5.5|6.0] properties are displayed at the right pane
       
    dsn_014 Remove
    1. Stop Tomcat [5.0|5.5|6.0]. Select Tomcat [5.0|5.5|6.0] node. Right click. Select Remove
    2. Add Tomcat [5.0|5.5|6.0] back
    1. Verify that Tomcat [5.0|5.5|6.0] node is removed from Servers node


    dsn_015 Start  with invalid admin username and password - Cancel
    1. Select Invalid Tomcat [5.0|5.5|6.0] node. Right click. Select Start
    2. Click Cancel
    Verify that:
      • String "Starting Tomcat [5.0|5.5|6.0]" appear in the status bar
      • After some time dialog appear.
    1. Error message "Authentication failed" appear


    dsn_016 Start  with invalid admin username and password - Enter invalid admin username and password
    1. Select Invalid Tomcat [5.0|5.5|6.0] node. Right click. Select Start
    2. Enter invalid admin username and password and click OK
    Verify that:
      • String "Starting Tomcat [5.0|5.5|6.0]" appear in the status bar
      • After some time dialog appear.
    1. Dialog appear again


    dsn_017 Start  with invalid admin username and password - Enter valid admin username and password
    1. Select Invalid Tomcat [5.0|5.5|6.0] node. Right click. Select Start
    2. Enter valid admin username and password and click OK
    Verify that:
      • String "Starting Tomcat [5.0|5.5|6.0]" appear in the status bar
      • After some time dialog appear.
      • Dialog disappear
      • Tomcat [5.0|5.5|6.0] is running and it is marked accordingly




    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 Web Applications node. Right click
    Verify that Web Applications node context menu appear and it include following items:
    • Refresh
       
     dcn_002 Closing Applications node context menu 
    1. Select Web Applications node. Right click. Type Esc key
    Verify that context menu is closing    
    dcn_003 Expanding Applications node
    1. Expand Web Applications node.
    Verify that Applications node contains list of deployed applications    
    dcn_004 Refreshing Applications node tree
    1. Create New project. Build and Run project. Select Web Applications node. Right click. Left click Refresh
    Verify that Web Applications node tree was refreshed and the application is visible as node under Web Applications    


    Deployment

    Setup (e):
    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 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:
    • Start
    • Stop
    • Open in Browser
    • View Context Log (for Tomcat 5.0)
    • 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 Stop application
    1. Select any deployed application
    2. Right Click
    3. Left click Stop
    Verify that application is stopped    
    d_007 Start application
    1. Select any deployed application
    2. Right Click
    3. Left click Start
    Verify that application is started    
    d_007a View Context Log
    1. Select any deployed application
    2. Right Click
    3. Left click View Context Log
    Verify that Context Log is opened    
    d_008 Open in Browser
    1. Select any deployed application
    2. Right Click
    3. Left click Open in Browser
    Verify that browser is opened and application appears in it    
    d_009 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_010
    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_015 Stop Tomcat [5.0|5.5|6.0] and Deploy
    1. Create an application
    2. Stop the Tomcat [5.0|5.5|6.0]
    3. Deploy the application
    During deployment Tomcat [5.0|5.5|6.0] is started and deployment should be successful.



     

    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