TS 60 WizardWizard

Wizards wizard - apisupport Test Specification

Author: Tomas Musil
Last update: 19.12.2005
Introduction: This testspec tests basics of Wizard wizard. This wizard lets you create your own wizards. There are basically three types:

  1. custom wizard static,
  2. custom wizard dynamic (e.g.you can skip steps),
  3. wizard added to new file wizard.

You need to create a module project. (e.g. File | New project, NB plugin module - module project, choose standalone module, and default platform (IDE)).

Contents


Test suite: Wizard in New File

Purpose: This wizard allow you to create your own wizards. You can call it from File | new file.
Setup: To enter wizard for creating wizard, choose File| New file. In project combo, select your module. Choose "Netbeans Module devlopment", "Wizard". Click NEXT

  1. First panel
    1. In first panel select Registration type New File
    2. Check if Wizard step sequence radios are disabled
    3. Set number of steps (e.g.2). Verify that numebr must be greater or equal 1. If not, or leaved empty, Next button is disabled.
    4. Click Next to continue on second panel.
    • EXPECTED RESULT: You have properly set properties on first pannel. Second panel appeared.
  1. Second panel
    1. Enter non java identifier (e.g. use spaces,forbidden characters, etc) into Class name prefix textfield. Check that you get a warning message.
    2. Enter java identifier (e.g. MyNewFileWizard) into Class name prefix textfield.
    3. Enter some display name, which you'll see in New file dialog (e.g. My sample file wizard)
    4. Select cathegory, where you'd like to put you wizard (e.g. select Other)
    5. Browse by Browse button to any location and select some 16x16 icon for your wizard. Or leave this blank to have wizard without action.
    6. In Project non editable textfield, verify that wizard is part of developed module.
    7. Select some existing package in editable Pacakage combobox.. If you want to create new package, you can edit combobox and enter new package name. You should be informed if you enter invalid package name. (see issue 64135)
    8. Click Finish
    • EXPECTED RESULT: Setting are properly set. In projects view, you see generated files in package you chose. For each step of wizard, you have 2 files:
    • ($NAME)VisualPanel($NUMBER_OF_STEP).java which is a form, and
    • ($NAME)WizardPanel($NUMBER_OF_STEP).java.
      There is also
    • ($NAME)WizardIterator.java and
    • ($NAME).html present.
      Check also layer.xml (under Important files), there should be present your wizard under cathegory where you've placed it (e.g.Other)
  1. Test of wizard
    1. From popup on module, choose Clean and build. Wait until module is built, then invoke Run from popup.
    2. Another IDE starts. Open or crate some java project in it. Invoke File | New File, and verify, if your wizard is present under selected cathegory (e.g. Other). Click Next.
    • EXPECTED RESULT: You see empty panels of your wizard, check that wizard has correct numer of steps and can be finished.



Test suite: Custom wizard static

Purpose: This wizard allow you to create your own wizards.They can be called directly from code. You can use Action wizard to create action, and use code from SampleAction.java, which will be generated.
Setup: To enter wizard for creating wizard, choose File| New file. In project combo, select your module. Choose "Netbeans Module devlopment", "Wizard". Click NEXT

  1. First panel (custom static wizard)
    1. In first panel select Registration type Custom
    2. Select Wizard step sequence radiobutton as Static.
    3. Set number of steps (e.g.2). Verify that numebr must be greater or equal 1. If not, or leaved empty, Next button is disabled.
    4. Click Next to continue on second panel.
    • EXPECTED RESULT: You have properly set properties on first pannel. Second panel appeared.
  1. Second panel (custom static wizard)
    1. Enter non java identifier (e.g. use spaces,forbidden characters, etc) into Class name prefix textfield. Check that you get a warning message.
    2. Enter java identifier (e.g. MyNewSimpleCustomWizard) into Class name prefix textfield. No warning displayed
    3. In Project non editable textfield, verify that wizard is part of developed module.
    4. Select some existing package in editable Pacakage combobox.. If you want to create new package, you can edit combobox and enter new package name. You should be informed if you enter invalid package name. (see issue 64135)
    5. Take a note of created files. Click Finish
    • EXPECTED RESULT: Verify, that these files were generated into selected package. For each step of wizard, you have 2 files -
    • ($NAME)VisualPanel($NUMBER_OF_STEP).java which is a form, and
    • ($NAME)WizardPanel($NUMBER_OF_STEP).java.
      Also SampleAction.java (with code that can be pasted to some action to invoke the wizard) was created.



Test suite: Custom wizard dynamic

Purpose: This wizard allow you to create your own wizards.They can be called directly from code. They can have variable number of steps, depending on their inner logic - e.g. you can skip some steps, ...
Setup: To enter wizard for creating wizard, choose File| New file. In project combo, select your module. Choose "Netbeans Module devlopment", "Wizard". Click NEXT


  1. First panel (custom dynamic wizard)
    1. In first panel select Registration type Custom
    2. Select Wizard step sequence radiobutton as Dynamic.
    3. Set (maximum) number of steps (e.g.2). Verify that numeber must be greater or equal 1. If not, or leaved empty, Next button is disabled.
    4. Click Next to continue on second panel.
    • EXPECTED RESULT: You have properly set properties on first pannel. Second panel appeared.
  1. Second panel (custom dynamic wizard)
    1. Enter non java identifier (e.g. use spaces,forbidden characters, etc) into Class name prefix textfield. Check that you get a warning message.
    2. Enter java identifier (e.g. MyNewVariableCustomWizard) into Class name prefix textfield. No warning displayed
    3. In Project non editable textfield, verify that wizard is part of developed module.
    4. Select some existing package in editable Pacakage combobox.. If you want to create new package, you can edit combobox and enter new package name. You should be informed if you enter invalid package name. (see issue 64135)
    5. Take a note of created files. Click Finish
    • EXPECTED RESULT: Verify, that these files were generated into selected package. For each step of wizard, you have 2 files:
    • ($NAME)VisualPanel($NUMBER_OF_STEP).java which is a form, and
    • ($NAME)WizardPanel($NUMBER_OF_STEP).java.
      And ($NAME)WizardIterator.java is created.


Generated: Tue Dec 19 17:21:14 CET 2006

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