TS 72 gaps

Form Editor - Gaps Visualization Test Specification

Author: Adam Senk
Version: 7.2
Last update: 16/08/2012
Introduction: Layout of a container in Free Design consists of components and gaps between these components. So far only the components were visualized in the designer, which was sometimes insufficient for a good understanding of the layout. This is improved in NetBeans 7.2 where the gaps are visualized as well.
Comments:

Contents


Test suite: Enable and Disable visualization

Purpose:This is test of checkbox, that turns on/off the visualization of gaps.
Setup: Start IDE with clear userdir. Create new project, Java Application (e.g. MyApplication).In myapplication packege create a new JFrame Form (e.g. MyForm).

  1. Basic visualization
    1. Add a JButton into JFrame
    2. File:Gaps1.jpg
    • EXPECTED RESULT: Gaps are visualizated. See previous screenshot.
  1. Disable visualzition in options dialog
    1. In main menu select: Tools -> Options
    2. In Options dilaog select Java category nad GUI Builder tab.
    3. Disable "Visualize Additional Layout Information" checkbox
    4. OK
    • EXPECTED RESULT: Gaps visilazation disappear.


  1. Reenable gaps visualization
    1. In main menu select: Tools -> Options
    2. In Options dilaog select Java category nad GUI Builder tab.
    3. Enable "Visualize Additional Layout Information" checkbox
    4. OK
    5. Click on JFrame.
    • EXPECTED RESULT:The gaps are visualizated again.

Test suite: Visualization of correct gaps

Purpose:
Setup: Continue with project from previous test case.

  1. A many components
    1. Add some more swing components into JFrame.
    2. File:Gaps2.jpg
    • EXPECTED RESULT: Gaps are visualizated. See previous screenshot.
  1. One selected component
    1. Click on JButton
    2. File:Gaps3.jpg
    • EXPECTED RESULT: Only the neighbour gaps are visualizated.


  1. JFrame selected
    1. Select "[JFrame]" in Navigator
    • EXPECTED RESULT:All gaps are visulaizated. See screenshot in "A many components" test case.

Test suite: Gaps size

Purpose:
Setup: Continue with project from previous test case.

  1. Size setting - mouse wheel
    1. Click on a gap. The gap should be green highlighted.
    2. Leave the cursor on highlighted gap and use mouse wheel.
    • EXPECTED RESULT: The size of the gap is changig acording the mouse wheel motion. The size can be changed only in one dimension.
  1. Size setting - Edit Layout Space dialog I
    1. Doubleclick on a gap. The Edit Layout Space dialog is invoked.
    2. Insert some value into "Defined Size" combobox.
    3. OK
    • EXPECTED RESULT: The size of the gap is changed according to inserted value.


  1. Size setting - Edit Layout Space dialog II
    1. Invoke pop-up menu on a swing component (e.g. JButton).
    2. From menu select Edit Layout Space item.
    3. The Edit Layout Space dialog is invoked.
    4. The Edit Layout Space dialog contains four settings: "Left", "Right", "Top" and "Bottom"
    5. Insert some values into comboboxes.
    6. OK
    • EXPECTED RESULT: The size of the gap is changed according to inserted value.
  1. Size setting - Drag and drop
    1. Drag the resizible edge of gap.
    2. Change the size and drop it.
    • EXPECTED RESULT: The size of the gap is changed correctly.

Test suite: Resizible gaps

Purpose:
Setup: Continue with project from previous test case.

  1. Resizable gaps
    1. Doubleclick on a gap. The Edit Layout Space dialog is invoked.
    2. Check the "Resizable" checkbox.
    3. File:Gaps4.jpg
    • EXPECTED RESULT: You can see the "spring" in the gap visualization, that symbolizes tha gap is resizable.
  1. Not Resizable gaps
    1. Doubleclick on a gap. The Edit Layout Space dialog is invoked.
    2. Uncheck the "Resizable" checkbox.
    • EXPECTED RESULT: There is no "spring" in the visualizated gap.

Test suite: Default size

Purpose:
Setup: Continue with project from previous test case.

  1. Default Size I
    1. Doubleclick on a gap between two swing components (e.g twoo JButtouns). The Edit Layout Space dialog is invoked.
    2. Unpack the combobox and see the predefined options.
    • EXPECTED RESULT:The predifined options in combobox are 3, "default small", "default medium" and "default large".
  1. Default Size II
    1. Doubleclick on a gap between and a swing enclosing component and edge of a container (eg. JButton and edge of JFrame). The Edit Layout Space dialog is invoked.
    2. Unpack the combobox and see the predefined options.
    • EXPECTED RESULT: There is only one predefined option. The option is "default".
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