cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Ant Test Specification

Author: Milan Kubec
Version: 1.19.7
Last update: 22.06.2004
Introduction:
Comment:

Table of Contents

Test suite 1: Target display

Purpose:
Setup:

#Test caseDescription
1Description
  1. Open build1.xml Ant script and expand it's node
RESULT:All targets with name ending with '_with_desc' must have badged icon (except internal targets; those starting with '-').
2Default target
  1. Open build1.xml Ant script and expand it's node
RESULT:Default target 'all' must be shown in bold face. Context menu must list 'all' target as first.
3Internal target
  1. Open build1.xml Ant script and expand it's node
RESULT:All targets starting with '-' must be shown in grey and they cannot be executed.
4Imported Target
  1. Open build1.xml Ant script and expand it's node
  2. Execute target 'imported'
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.
5Overriden target
  1. Open build1.xml Ant script and expand it's node
  2. Execute target 'overriden'
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 2: Target Context Menu

Purpose:
Setup:

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

Test suite 3: Run Target

Purpose:
Setup:

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

Test suite 4: Shortcuts

Purpose:
Setup:

#Test caseDescription
1Create 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
RESULT:Verify that actions were added to the menu and toolbar and that shortcut executes the target as well.

Generated: 2005 09 19 02:18
Companion
Projects:
MySQL Database Server   GlassFish Community: an Open Source Application Server   Open Solaris  Open JDK: an Open SourceJDK   Mobile & Embedded Community     Sponsored by 
Sponsored by Sun Microsystems