TS 74 ProjectsWizard

Projects Wizard Test Specification for NetBeans 7.4

Author: Petr Zajac
Updated by: Hermien Pellissier,Benno Markiewicz
Last update: 20 August 2013
Introduction: Test specification for "Module Suite" Wizard, "Module" Wizard and "Library Wrapper Module" Project. Based on http://wiki.netbeans.org/TS_73_ProjectsWizard

NOTE: This is a work in progress!

Contents


Test suite: Modules Suite wizard

Purpose: Testing that ANT-based module suites can be created with the projects wizard and that options specified in the wizard are correctly applied during project creation.

Setup: Open the Module suite wizard via "New Project...|NetBeans Modules|Module Suite"

  1. Invalid suite name
    1. Type invalid project name using forbidden characters. For example # or \
    • EXPECTED RESULT: Preventing user from modules suite creation.
  2. Valid suite name
    1. Type Suite Name and complete the wizard
    • EXPECTED RESULT: Valid Suite is created
  3. Change location
    1. Repeat the previous steps, but this time change the location (use typing and/or selecting by Browse button). Complete the wizard
    • EXPECTED RESULT: Valid Suite is created in the given directory
  4. Change platform
    1. Repeat the previous steps, but this time try to create the module with different netbeans platforms. (The platforms can be added in (Tools|NetBeans Platform Manager)).
    • EXPECTED RESULT: the platform is correctly set. Check it in created "Module suite" properties at the category "Libraries"

Test suite: Module Project Wizard

Purpose: Testing that ANT-based modules can be created with the projects wizard and that options specified in the wizard are correctly applied during project creation.
Setup: Open the Module wizard via "New Project...|NetBeans Modules|Module"

  1. Invalid module name
    1. Type invalid project name using forbidden characters. For example # or \
    • EXPECTED RESULT: Preventing user from module creation.
  2. Valid module name
    1. Type valid Project Name and complete the wizard
    • EXPECTED RESULT: Valid Project created
  3. Change location
    1. Repeat the previous steps, but this time change the location (use typing and/or selecting by Browse button).
    • EXPECTED RESULT: Valid project is created in the given directory
  4. Standalone project
    1. Repeat the previous steps, but this time select "standalone project", select a NetBeans Platform and complete the wizard
    • EXPECTED RESULT: The Netbeans Platform combobox is enabled. Valid project is created after completing the wizard. The platform is correctly set. Check it in the Properties of the created Module. Try it for different platforms.
    1. Repeat the previous step, but this time with a different NetBeans platform
  5. Add to module suite
    1. Repeat the previous steps, but this time select "Add to module suite".
    2. Select a module suite in the combobox or choose one via "Browse" button
    • EXPECTED RESULT: Module is created and added to the given module suite. Check it in Module suite properties.
  6. Valid Code Name Base
    1. Repeat the previous steps, but this time type a valid package name to Code Name Base field
    • EXPECTED RESULT: Valid project is created. It contains a package with the codebase name. Check the Code Name Base in project properties at category "API Versioning"
  7. Invalid Code Name Base
    1. Repeat the previous steps, but this time type an invalid package name to Code Name base field
    • EXPECTED RESULT: The finish button is disabled. In wizard status line there is shown an error message.
  8. Module display name
    1. Repeat the previous steps, but this time type a valid display name and complete the wizard
    • EXPECTED RESULT: Valid project is created. Check the display name: The node label of the created module should equal the defined displayname. The displayname should also be set in the module properties at category "Display"
  9. Valid localizing bundle
    1. Repeat the previous steps, but this time type a valid "Code Name Base" and modify the path of the "Localizing Bundle". (Default path is code name base package/Bundle.properties.)
    • EXPECTED RESULT: Valid project is created. Check if Bundle.properties is created in the correct directory.

Test suite: Library Wrapper Module Wizard

Purpose: Testing that library wrappers can be created with the projects wizard and that options specified in the wizard are correctly applied during project creation.
Setup: Open wizard via "New Project...|NetBeans Modules|Library Wrapper Module"

  1. Valid library file name and valid license file
    1. Type a valid library jar file name (or browse)
    2. Browse to a valid licence file
    3. Complete the wizard (insert some dummy content in the upcoming wizard pages)
    • EXPECTED RESULT: Valid Library is created. Check xml tags in the project.xml file (Project Metadata in ImportantFiles): project\configuration\data\public-packages\package contains all packages from jar library, project\configuration\data\class-path-extension\runtime-relative-path contains ext/"libname".jar and project\configuration\data\class-path-extension\binary-origin contains release/modules/ext/"libname".jar. The library jar is copied to release/modules/ext/"libname".jar in created project. Check the licence in project properties at "Build>Packaging" category).
  2. Invalid library file name
    1. Repeat the first testcase, but this time type an invalid library file name
    • EXPECTED RESULT: The Finish and Next buttons are disabled and an error message is shown.
  3. Invalid licence file
    1. Type a valid library jar file name (or browse)
    2. Type an invalid licence file to license field.
    • EXPECTED RESULT: The Finish and Next buttons are disabled and an error message is shown
  4. Name location and Basic module configuration
    1. Test the rest in the same way as in Module wizard.
    • EXPECTED RESULT: The result is the same as in Module wizard.
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