TS 60 Ant

NetBeans Ant Test Specification

Author: Jaromir Uhrik
Last update: 22.07.2007
Introduction: This document is intended to be a test specification for NetBeans ant module. It can be used when the manual testing of NetBeans Ant module is executed. Scenarios in this documents cover main areas of the module functionality testing.


Contents


Test suite: Target display

Purpose:
Setup:


  1. Description
    1. Open build1.xml Ant script and expand it's node
    • EXPECTED RESULT: All targets with name ending with '_with_desc' must have badged icon (except internal targets; those starting with '-').
  2. Default target
    1. Open build1.xml Ant script and expand it's node
    • EXPECTED RESULT: Default target 'all' must be shown in bold face. Context menu must list 'all' target as first.
  3. Internal target
    1. Open build1.xml Ant script and expand it's node.
    • EXPECTED RESULT: All targets starting with '-' must be shown in grey and they cannot be executed.
  4. Imported Target
    1. Open build1.xml Ant script and expand it's node
    2. Execute target 'imported'
    • EXPECTED RESULT: Following message must be printed to Output Window: Running 'imported' from import.xml. All targets that have 'imported' in its name must be shown in italics.
  5. Overriden target
    1. Open build1.xml Ant script and expand it's node
    2. Execute target 'overriden'
    • EXPECTED RESULT: Following message must be printed to Output Window: Running 'overriden' target from build1.xml. Overriden target must be displayed in regular font.


Test suite: Target Context Menu

Purpose:
Setup:


  1. Open Script
    1. Select Open in context menu of ant build script
    • EXPECTED RESULT: Script must be opened in editor.
  2. Open Target
    1. Select Open action in context menu of Ant target
    • EXPECTED RESULT: Script must be opened in editor and caret must be placed on the begining element of the target.
  3. Internal target



Test suite: Run Target

Purpose:
Setup:


  1. Run Target
    1. Invoke action Run Target on any type of target (default, regular, imported, overriden, with description)
    • EXPECTED RESULT: All targets must be successfully executed and each target prints some identifying message into Output Window.
  2. Run Target Menu
    1. Invoke Run Target context menu on build1.xml script
    • EXPECTED RESULT:Target 'all' must be listed as first, targets with description will be listed below the default one.
  3. Run Target - Advanced
    1. Invoke Run Target | Advanced on build1.xml
    2. Select 'property' target in the combo box
    3. Enter property 'target.property=Target Property', click OK
    • {{{1}}}
  4. Run Target - Advanced, Verbose
    1. Invoke Run Target | Advanced on build1.xml
    2. Select any target and change Verbosity level to Debugging, click OK
    • EXPECTED RESULT: Target must be successfully executed and debugging info must be printed to Output Window.
  5. Run Target - Other Targets
    1. Invoke Run Target | Other Targets on build1.xml
    2. Select any target there
    • EXPECTED RESULT: Target must be successfully executed. There must be only targets without any description on the submenu Other Targets.



Test suite: Shortcuts

Purpose:
Setup:


  1. Create Shortcut
    1. Select target 'all' in build1.xml script
    2. Invoke Create Shortcut action in context menu of the target
    3. Check all four checkboxes, Click Next
    4. Select some menu, enter name of the action, click Next
    5. Select Toolbar and enter another name of the action, click Next
    6. Select unused shortcut (e.g. Ctrl+Shift+U), click Next
    7. Click Finish
    • EXPECTED RESULT: Verify that actions were added to the menu and toolbar and that shortcut executes the target as well.



Generated: Fri Jul 20 15:18:28 CET 2007

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