TS 72 WebProject

Web Application Test Specification

Author: Dan Kolar, Jiri Skrivanek
Version: NetBeans 7.2
Last update: 7-th June 2012
Introduction: This test specification is focused on testing of web application creation and modification.
Comments:

Contents


Test suite: New Web Application

Purpose: To test creation of web application.
Setup: Install all supported servers.

  1. Create Projects
    1. Open new project wizard
    2. Select "Java Web|Web Application" and click Next
    3. Provide project location and click Next
    4. Choose server from combo box and select Java EE 6 version
    5. Finish wizard
    6. Check project is created
    7. Repeat for Java EE 5 and J2EE 1.4 version
    8. Repeat steps for other supported servers
    • EXPECTED RESULT: Everything works without errors.


Test suite: Project Actions

Purpose: To test action associated with web project.
Setup: Created web project.

  1. Building
    1. Right-click project node.
    2. Invoke Build
    3. Check project is built or a dialog with warning about automatic compile (compile on save) is opened
    4. Invoke Clean and Build
    5. Check project is cleaned and built.
    6. Invoke Clean.
    7. Check project is cleaned.
    8. Invoke Verify.
    9. Check project is verified.
    10. Add new Java class or Servlet to project.
    11. Invoke Generate Javadoc.
    12. Check javadoc is generated, browser is opened and javadoc page shown.
    13. Repeat for all projects.
  2. Running
    1. Invoke Run
    2. Check application is deployed and browser with welcome page is opened.
    3. In source editor change body of welcome page.
    4. Invoke Deploy.
    5. Check project is deployed and when you reload page in browser it shows modified content.
    6. Change again something in editor and save it.
    7. Check status message tells that project was deployed and browser shows modified content after reload.
    8. Open project properties
    9. Go to Run tab and uncheck Deploy on Save.
    10. Click OK.
    11. Change again something in editor and save it.
    12. Check status message about deployment is not displayed.
    13. Repeat for all projects.
  3. Debugging
    1. Invoke Debug.
    2. Check debugger is started and page displayed in browser.
    3. Repeat for all projects.
  4. Profiling
    1. Invoke Profile and confirm all dialogs.
    2. Check profiler is started and welcome page is opened in browser.
  5. Renaming
    1. Invoke Copy and confirm default values.
    2. Check copied project was opened in IDE.
    3. Invoke Rename on previously copied project
    4. Change project name, select "Also Rename Project Folder" and click Rename button.
    5. Invoke Move on renamed project.
    6. Append e.g. "\abcd" to "Project Location" and click Move button.
    7. Warning window with IllegalArgument should appear (this is valid only for GNU/Linux systems and Mac OS X).
    8. Close the warning window and invoke Delete.
    9. Choose "Also delete sources.." and click Yes button.
    10. Check project is cleaned, undeployed and deleted.


Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo