MavenWebApplicationProject

Revision as of 13:21, 5 November 2009 by Admin (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)

Maven Web App Project Test Specification

Author: Jaroslav Pospisil
Version: 1.1
Last update: 07/04/2009
Introduction:
Comments:

Contents


Test suite: Creating web project

Purpose:
Setup: JBoss 4.0.X, JBoss 5, Tomcat 5.5.X, Glassfish v2 installed and registered in IDE.
Click File -> New Project -> Maven -> Maven Web Application -> Next
Invalid chars are */\|:(){}[[ | ]] (on some systems they are ok, but not on Windows)

  1. Maven Web Application panel
    1. Check preselected default valueEXPECTED RESULT: Archetypes from remote Maven Repositories.
    2. Click Next
  2. Name and Location panel
    1. Check prefilled default values in panels fieldsEXPECTED RESULT: No warning or errors appear.
    2. Invalid Project Name:Insert anywhere illegal char in this textfieldEXPECTED RESULT: Red warning appears.
    3. Invalid Project Location:Insert anywhere illegal char or invalid path in this textfieldEXPECTED RESULT: Red warning appears.
    4. Restore fields in panel to default values
    5. Click FinishEXPECTED RESULT: New web project is successfuly created and no wearning/errors appears.


Test suite: Testing basic actions on project

Purpose:
Setup: Opened web app project. Opened 1 another project, and set as Main project

  1. Simple actions

All action are invoked by right-click on project

    1. Invoke BuildEXPECTED RESULTS: Project is successfuly built.
    2. Invoke Clean&BuildEXPECTED RESULTS: Project is successfuly built.
    3. Invoke CleanEXPECTED RESULTS: Project is successfuly built.
    4. Invoke Set as Main ProjectEXPECTED RESULTS: Project is set as main project.
  1. Complex actions I
    1. Generate Javadoc
      1. Invoke New Servlet wizard -> Finish
      2. Invoke Generate JavadocEXPECTED RESULTS: Project successfuly generates javadoc. There should be a link to Javadoc in output window. When clicking the link, efault web browser window is opened and javadoc page shown.
      3. Invoke Tools -> Set Servlet Execution URI on NewServlet.java. Click OK.EXPECTED RESULTS: No exception is thrown.
    2. Invoke RunEXPECTED RESULTS: Project is successfuly built and deployed. Default web browser window is opened and index.jsp page is shown.
    3. *Invoke Compile on Save
    • Change something in Index.jsp , for example add one space behind Hello World!
    • Click on SaveEXPECTED RESULTS: Project is successfuly saved, but also compiled and redeployed,as you can see in Output window.
    1. *Disable Compile on Save
    • Open Project Properties.
    • Go to Run tab and uncheck Deploy on Change.
    • Close,change something in Index.jsp , for example add one more space behind Hello World!
    • Click on SaveEXPECTED RESULTS: Project is successfuly saved, but compile is not invoked this time.
    1. Debug
      1. Set breakpoint in index.jsp
      2. Invoke Debug and wait till debugger stops on breakpoint in jsp.EXPECTED RESULTS: Project is successfuly built and deployed. Default web browser window is opened, but page is still loading.
      3. Click Continue on Main bar (or by F5)EXPECTED RESULTS: Default web browser window finishes loading and index.jsp page is shown.
  1. Complex actions II
    1. Invoke Rename
    • Check "Also Rename Project Folder"
    • Change project name to another, with illegal charsEXPECTED RESULT: Red warning appears and Rename is disabled.
    • Change project name to another, valid one
    • Click RenameEXPECTED RESULT: Project is renamed, no errors appear. Project folder is renamed as well.
    1. Invoke Move
    • Change Project Location to another, with illegal charsEXPECTED RESULT: Red warning appears and Move is disabled.
    • Change Project Location to another, valid one
    • Click MoveEXPECTED RESULT: Project is moved, no errors appear.
    1. Invoke Copy
    • Change Project Name to another, with illegal charsEXPECTED RESULT: Red warning appears and Move is disabled.
    • Change Project Name to another, valid one
    • Change Project Location to another, with illegal charsEXPECTED RESULT: Red warning appears and Move is disabled.
    • Change Project Location to another, valid one
    • Click CopyEXPECTED RESULT: Project is copied, no errors appear. Both the original and new project are the same except for their names.
    1. Invoke CloseEXPECTED RESULT: Project is closed, no errors appear.
    2. Reopen project.
    3. Invoke Delete
    • Check "Also Delete Sources.."
    • Click DeleteEXPECTED RESULT: Project is deleted, no errors appear.


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