cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Form Editor - Visual Development Test Specification

Author: Jaromir Uhrik
Version: 1.0.1
Last update: 24.05.2004
Introduction: This is intended as tests of Form Editor module.
Comment:

Table of Contents

Test suite 1: Add Menu items tests

Purpose:
Setup: Start IDE with clear userdir - default MDI mode is set.

#Test caseDescription
1Create JMenu in JMenuBar
1. Open file MyJForm with created JMenu and JPopupMenu.
2. Select jMenuBar1 and invoke popup menu.
3. Push Add -> JMenu.
RESULT: Proper code is generated
2Add JMenuItem to JMenu
1. Open file MyJForm with created JMenu and JPopupMenu.
2. Select jMenu1 and invoke popup menu.
3. Push Add -> JMenuItem.
RESULT: Proper code is generated.
3Add JCheckBoxMenuItem to JMenu
1. Open file MyJForm with created JMenu and JPopupMenu.
2. Select jMenu1 and invoke popup menu.
3. Push Add -> JCheckBoxMenuItem.
RESULT: Proper code is generated.
4Add JRadioButtonMenuItem to JMenu
1. Open file MyJForm with created JMenu and JPopupMenu.
2. Select jMenu1 and invoke popup menu.
3. Push Add -> JRadioButtonMenuItem.
RESULT: Proper code is generated.
5Add JMenu to JMenu
1. Open file MyJForm with created JMenu and JPopupMenu.
2. Select jMenu1 and invoke popup menu.
3. Push Add -> JMenu.
RESULT: Proper code is generated.
6Add JSeparator to JMenu
1. Open file MyJForm with created JMenu and JPopupMenu.
2. Select jMenu1 and invoke popup menu.
3. Push Add -> JSeparator.
RESULT: Proper code is generated.
7Create JMenu in JPopupMenu
1. Open file MyJForm with created JMenu and JPopupMenu.
2. Select jPopupMenu1 and invoke popup menu.
3. Push Add -> JMenu.
RESULT: Proper code is generated.
8Add JMenuItem to JPopupMenu
1. Open file MyJForm with created JMenu and JPopupMenu.
2. Select jPopupMenu1 and invoke popup menu.
3. Push Add -> JMenuItem.
RESULT: Proper code is generated.
9Add JCheckBoxMenuItem to JPopupMenu
1. Open file MyJForm with created JMenu and JPopupMenu.
2. Select jPopupMenu1 and invoke popup menu.
3. Push Add -> JCheckBoxMenuItem.
RESULT: Proper code is generated.
10Add JRadioButtonMenuItem to JPopupMenu
1. Open file MyJForm with created JMenu and JPopupMenu.
2. Select jPopupMenu1 and invoke popup menu.
3. Push Add -> JRadioButtonMenuItem.
RESULT: Proper code is generated.
11Add JMenu to JPopupMenu
1. Open file MyJForm with created JMenu and JPopupMenu.
2. Select jPopupMenu1 and invoke popup menu.
3. Push Add -> JMenu.
RESULT: Proper code is generated.
12Add JSeparator to JPopupMenu
1. Open file MyJForm with created JMenu and JPopupMenu.
2. Select jPopupMenu1 and invoke popup menu.
3. Push Add -> JSeparator.
RESULT: Proper code is generated.
13Create Menu in MenuBar
1. Open file MyForm with created Menu and PopupMenu.
2. Select menu1 and invoke popup menu.
3. Push Add -> Menu .
RESULT: Proper code is generated.
14Add MenuItem to Menu
1. Open file MyForm with created Menu and PopupMenu.
2. Select menu1 and invoke popup menu.
3. Push Add -> MenuItem.
RESULT: Proper code is generated.
15Add MenuItem to Menu
1. Open file MyForm with created Menu and PopupMenu.
2. Select menu1 and invoke popup menu.
3. Push Add -> CheckBoxMenuItem.
RESULT: Proper code is generated.
16Add Menu to Menu
1. Open file MyForm with created Menu and PopupMenu.
2. Select menu1 and invoke popup menu.
3. Push Add -> Menu.
RESULT: Proper code is generated.
17Add Separator to Menu
1. Open file MyForm with created Menu and PopupMenu.
2. Select menu1 and invoke popup menu.
3. Push Add -> Separator.
RESULT: Proper code is generated.
18Create Menu in PopupMenu
1. Open file MyForm with created Menu and PopupMenu.
2. Select popupMenu1 and invoke popup menu.
3. Push Add Menu.
RESULT: Proper code is generated.
19Add MenuItem to PopupMenu
1. Open file MyForm with created Menu and PopupMenu.
2. Select popupMenu1 and invoke popup menu.
3. Push Add -> MenuItem.
RESULT: Proper code is generated.
20Add CheckBoxMenuItem to PopupMenu
1. Open file MyForm with created Menu and PopupMenu.
2. Select popupMenu1 and invoke popup menu.
3. Push Add -> CheckBoxMenuItem.
RESULT: Proper code is generated.
21Add Menu to PopupMenu
1. Open file MyForm with created Menu and PopupMenu.
2. Select popupMenu1 and invoke popup menu.
3. Push Add -> Menu.
RESULT: Proper code is generated.
22Add Separator to PopupMenu
1. Open file MyForm with created Menu and PopupMenu.
2. Select popupMenu1 and invoke popup menu.
3. Push Add -> Separator.
RESULT: Proper code is generated.
Teardown:



Test suite 2: Add AWT and Swing components together

Purpose:
Setup: Start IDE with clear userdir - default MDI mode is set.

#Test caseDescription
1Add JLabel and Label into JFrame
1. Create new JFrame.
2. Select component JLabel from Component Palette category Swing.
3. Click into Form Designer.
4. Select component Label from Component Palette category AWT.
5. Click into Form Designer.
RESULT: Code for added JLabel and Label is generated.
2Add JPanel and Canvas into Frame
1. Create new Frame.
2. Select component JPanel from Component Palette category Swing.
3. Click into Form Designer.
4. Select component Canvas from Component Palette category AWT.
5. Click into Form Designer.
RESULT: Code for added JPanel and Canvas is generated.
Teardown:



Test suite 3: Test moving and resizing components in Form Designer

Purpose: Test posibility for move and resize components in Form Designer.
Setup: Start IDE with clear userdir - default MDI mode is set.

#Test caseDescription
1Move components in one container
1. Add three buttons to JForm.
2. Set Layout to FlowLayout and change order of components.
3. Set Layout to BorderLayout and change direction for components.
4. Set Layout to GridLayout and change order of components, change number of columns and rows to 2 and repeat test.
5. Set Layout to GridBagLayout and try change position - it is without success.
6. Set Layout to CardLayout and try change position - it is without success.
7. Set Layout to BoxLayout and change order of components. Change Axis to Y Axis and repeat.
8. Set Layout to AbsoluteLayout and change position for components.
9. Change Grid X, Grid Y, Apply Grid to Position in options (Options, Editing, Form Editor Settings) and change position of components with new properties.
10. Set Layout to NullLayout and change position for components.
11. For every layout try select two components and change position for both components.
RESULT: Properly generated code.
2Move components in more containers
1. Add three JPanels to form, JPanel1, JPanel2, JPanel3.
2. Remove JPanel2 to JPanel3.
3. Add at least two buttons to all containers (including JForm).
4. Move components from one container to another container, try all posibilities.
5. Select two components from one container and move them.
6. Select two components from different containers and move them to another container, to the same container.
7. Remove all container with components into other container.
RESULT: Properly generated code.
3Resize components
1. Add components to form.
2. Try set all Layout (except AbsoluteLayout and NullLayout) and try resize components - without success.
3. Set AbsoluteLayout.
4. Resize components and check generate code - for size is used AbsoluteConstraints method.
RESULT: Code is generated with AbsoluteConstraints method.
Teardown:



Test suite 4: Add components to containers - Swing

Purpose:
Setup: Start IDE with clear userdir - default MDI mode is set.

#Test caseDescription
1Add JTextArea into JPanel
1. Create new JFrame.
2. Select component JPanel from Component Palette category Swing.
3. Select component jPanel1 in Form Designer.
4. Invoke popup menu and push Add From Palette -> Swing -> JTextArea.
RESULT: jPanel1 is present in Component Inspector Tree as Container (parent node). Code for added JTextArea inside JPanel is generated.
2Add JPanel into JTabbedPane
1. Create new JFrame.
2. Select component JTabbedPane from Component Palette category Swing.
3. Select component jTabbedPane1 in Form Designer.
4. Invoke popup menu and push Add From Palette -> Swing -> JPanel.
RESULT: jTabbedPane1 is present in Component Inspector Tree as Container (parent node). Code for added JPanel inside JTabbedPane is generated.
3Add JTable into JScrollPane
1. Create new JFrame.
2. Select component JScrollPane from Component Palette category Swing.
3. Select component jScrollPane1 in Form Designer.
4. Invoke popup menu and push Add From Palette -> Swing(Other) -> JTable.
RESULT: jScrollPane1 is present in Component Inspector Tree as Container (parent node). Code for added JTable inside JScrollPane is generated.
4Add JPanel into JSplitPane
1. Create new JFrame.
2. Select component JSplitPane from Component Palette category Swing(Other).
3. Select component jSplitPane1 in Form Designer.
4. Invoke popup menu and push Add From Palette -> Swing -> JButton.
5. Select component jSplitPane1 in Form Designer.
6. Invoke popup menu and push Add From Palette -> Swing -> JPanel.
RESULT: jSplitPane1 is present in Component Inspector Tree as Container (parent node). Code for added JButton and JPanel inside JSplitPane is generated.
5Add JToggleButton into JToolBar
1. Create new JFrame.
2. Select component JToolBar from Component Palette category Swing(Other).
3. Select component JjoolBar1 in Form Designer.
4. Invoke popup menu and push Add From Palette -> Swing -> JToggleButton.
RESULT: jToolBar1 is present in Component Inspector Tree as Container (parent node). Code for added JToggleButton inside JToolBar is generated.
6Add JTree into JInternalFrame
1. Create new JFrame.
2. Select component JInternalFrame from Component Palette category Swing(Other).
3. Select component jInternalFrame1 in Form Designer.
4. Invoke popup menu and push Add From Palette -> Swing(Other) -> JTree.
RESULT: jInternalFrame1 is present in Component Inspector Tree as Container (parent node). Code for added JTree inside JInternalFrame is generated.
7Add JInternalFrame into JDesktopPane
1. Create new JFrame
2. Select component JDesktopPane from Component Palette category Swing(Other).
3. Select component jDesktopPane1 in Form Designer.
4. Invoke popup menu and push Add From Palette -> Swing(Other) -> JInternalFrame.
RESULT: jDesktopPane1 is present in Component Inspector Tree as Container (parent node). Code for added JInternalFrame inside JDesktopPane is generated.
Teardown:



Test suite 5: Add components to containers - AWT

Purpose:
Setup: Start IDE with clear userdir - default MDI mode is set.

#Test caseDescription
1Add TextArea into ScrollPane
1. Create new Frame.
2. Select component ScrollPane from Component Palette category AWT.
3. Select component scrollPane1 in Form Designer.
4. Invoke popup menu and push Add From Palette -> AWT -> TextArea.
RESULT: scrollPane1 is present in Component Inspector Tree as Container (parent node). Code for added TextArea inside ScrollPane is generated.
2Add Canvas into Panel
1. Create new Frame.
2. Select component Panel from Component Palette category AWT.
3. Select component panel1 in Form Designer.
4. Invoke popup menu and push Add From Palette -> AWT -> Canvas.
RESULT: scrollPane1 is present in Component Inspector Tree as Container (parent node). Code for added Canvas inside Panel is generated.
Teardown:



Test suite 6: In-place editing

Purpose:
Setup: Start IDE with clear userdir - default MDI mode is set.

#Test caseDescription
1In-place editing on JLabel
1. Create new JFrame.
2. Select component JLabel from Component Palette category Swing.
3. Select component jLabel1 in Form Designer.
4. Press SPACE.
5. Type "My Text" into shown in-place editor (textfield).
RESULT: Generated code:
jLabel1.setText("My Text");
2In-place editing on JButton
1. Create new JFrame.
2. Select component JButton from Component Palette category Swing.
3. Select component jButton1 in Form Designer.
4. Hit SPACE.
5. Type "My Text" into shown in-place editor (textfield).
RESULT: Generated code:
jButton1.setText("My Text");
3In-place editing on JToggleButton
1. Create new JFrame.
2. Select component JToggleButton from Component Palette category Swing.
3. Select component jToggleButton1 in Form Designer.
4. Hit SPACE.
5. Type "My Text" into shown in-place editor (textfield).
RESULT: Generated code:
jToggleButton1.setText("My Text");
4In-place editing on JCheckBox
1. Create new JFrame.
2. Select component JCheckBox from Component Palette category Swing.
3. Select component jCheckBox1 in Form Designer.
4. Hit SPACE.
5. Type "My Text" into shown in-place editor (textfield).
RESULT: Generated code:
jCheckBox1.setText("My Text");
5In-place editing on JRadioButton
1. Create new JFrame.
2. Select component JLabel from Component Palette category Swing.
3. Select component jRadioButton1 in Form Designer.
4. Hit SPACE.
5. Type "My Text" into shown in-place editor (textfield).
RESULT: Generated code:
jRadioButton1.setText("My Text");
6In-place editing on JMenu
1. Create new JFrame.
2. Select component JMenuBar from Component Palette category Swing.
3. Select component jMenu1 in Form Designer.
4. Hit SPACE.
5. Type "My Text" into shown in-place editor (textfield).
RESULT: Generated code:
jMenu1.setText("My Text");
Teardown:



Test suite 7: Layout tests

Purpose:
Setup: Start IDE with clear userdir - default MDI mode is set.

#Test caseDescription
1Add FlowLayout from Component Palette to JDialog
1. Create new JDialog.
2. Click on layout FlowLayout from Component Palette category Layouts.
3. Click into Form Designer.
RESULT: Code for new layout is generated.
2Add BorderLayout from Component Palette to JDialog
1. Create new JDialog.
2. Click on layout BorderLayout from Component Palette category Layouts.
3. Click into Form Designer.
RESULT: No code is changed - BorderLayout is default for JDialog.
3Add GridLayout from Component Palette to JDialog
1. Create new JDialog.
2. Click on layout GridLayout from Component Palette category Layouts.
3. Click into Form Designer.
RESULT: Code for new layout is generated.
4Add GridBagLayout from Component Palette to JFrame
1. Create new JFrame.
2. Click on layout GridBagLayout from Component Palette category Layouts.
3. Click into Form Designer.
RESULT: Code for new layout is generated.
5Add CardLayout from Component Palette to JFrame
1. Create new JFrame.
2. Click on layout CardLayout from Component Palette category Layouts.
3. Click into Form Designer.
RESULT: Code for new layout is generated.
6Add BoxLayout from Component Palette to JInternalFrame
1. Create new JInternalFrame.
2. Click on layout BoxLayout from Component Palette category Layouts.
3. Click into Form Designer.
RESULT: Code for new layout is generated.
7Add AbsoluteLayout from Component Palette to Frame
1. Create new Frame.
2. Click on layout AbsoluteLayout from Component Palette category Layouts.
3. Click into Form Designer.
RESULT: Code for new layout is generated.
8Add Null Layout from Component Palette to Dialog
1. Create new Dialog.
2. Click on layout NullLayout from Component Palette category Layouts.
3. Click into Form Designer.
RESULT: Code for new layout is generated.
9Set layout for Panel - FlowLayout
1. Create new Frame.
2. Select component Panel from Component Palette category Swing.
3. Click into Form Designer.
4. Select jPanel1 in Component Inspector and invoke popup menu.
5. Push Set Layout | FlowLayout from popup menu.
RESULT: No code is changed in jPanel1 (FlowLayout is default).
10Set layout for Panel - BorderLayout
1. Create new Frame.
2. Select component Panel from Component Palette category Swing.
3. Click into Form Designer.
4. Select jPanel1 in Component Inspector and invoke popup menu.
5. Push Set Layout | BorderLayout from popup menu.
RESULT: Layout node under jPanel1 node is changed (shown BorderLayout). Code for new layout is generated.
11Set layout for Panel - GridLayout
1. Create new Frame.
2. Select component Panel from Component Palette category Swing.
3. Click into Form Designer.
4. Select jPanel1 in Component Inspector and invoke popup menu.
5. Push Set Layout | GridLayout from popup menu.
RESULT: Layout node under jPanel1 node is changed (shown GridLayout). Code for new layout is generated.
12Set layout for Panel - GridBagLayout
1. Create new Frame.
2. Select component Panel from Component Palette category Swing.
3. Click into Form Designer.
4. Select jPanel1 in Component Inspector and invoke popup menu.
5. Push Set Layout | GridBagLayout from popup menu.
RESULT: Layout node under jPanel1 node is changed (shown GridBagLayout). Code for new layout is generated.
13Set layout for JPanel - CardLayout
1. Create new JFrame.
2. Select component Panel from Component Palette category Swing.
3. Click into Form Designer.
4. Select jPanel1 in Component Inspector and invoke popup menu.
5. Push Set Layout | CardLayout from popup menu.
RESULT: Layout node under jPanel1 node is changed (shown CardLayout). Code for new layout is generated.
14Set layout for JPanel - BoxLayout
1. Create new JFrame.
2. Select component Panel from Component Palette category Swing.
3. Click into Form Designer.
4. Select jPanel1 in Component Inspector and invoke popup menu.
5. Push Set Layout | BoxLayout from popup menu.
RESULT: Layout node under jPanel1 node is changed (shown BoxLayout). Code for new layout is generated.
15Set layout for JPanel - AbsoluteLayout
1. Create new JFrame.
2. Select component Panel from Component Palette category Swing.
3. Click into Form Designer.
4. Select jPanel1 in Component Inspector and invoke popup menu.
5. Push Set Layout | AbsoluteLayout from popup menu.
RESULT: Layout node under jPanel1 node is changed (shown AbsoluteLayout). Code for new layout is generated.
16Set layout for JPanel - Null Layout
1. Create new JFrame.
2. Select component Panel from Component Palette category Swing.
3. Click into Form Designer.
4. Select jPanel1 in Component Inspector and invoke popup menu.
5. Push Set Layout | Null Layout from popup menu.
RESULT: Layout node under jPanel1 node is changed (shown NullLayout). Code for new layout is generated.
17Change lyout: FlowLayout to AbsoluteLayout
1. Create new JFrame.
2. Select JFrame in Component Inspector and invoke popup menu.
3. Push Set Layout | AbsoluteLayout from popup menu.
RESULT: Layout node under JFrame node is changed (shown AbsoluteLayout). Code for new layout is generated.
18Change lyout: GridLayout to Null Layout
1. Create new JFrame.
2. Select JFrame in Component Inspector and invoke popup menu.
3. Push Set Layout | Null Layout from popup menu.
RESULT: Layout node under JFrame node is changed (shown NullLayout). Code for new layout is generated.
19Change lyout: GridBagLayout to AbsoluteLayout
1. Create new JFrame.
2. Select JFrame in Component Inspector and invoke popup menu.
3. Push Set Layout | AbsoluteLayout from popup menu.
RESULT: Layout node under JFrame node is changed (shown AbsoluteLayout). Code for new layout is generated.
20Change lyout: GridBagLayout to Null Layout
1. Create new JFrame.
2. Select JFrame in Component Inspector and invoke popup menu.
3. Push Set Layout | Null Layout from popup menu.
RESULT: Layout node under JFrame node is changed (shown NullLayout). Code for new layout is generated.
21Change lyout: CardLayout to Null Layout
1. Create new JFrame.
2. Select JFrame in Component Inspector and invoke popup menu.
3. Push Set Layout | Null Layout from popup menu.
RESULT: Layout node under JFrame node is changed (shown NullLayout). Code for new layout is generated.
22Change lyout: Null Layout to AbsoluteLayout
1. Create new JFrame.
2. Select JFrame in Component Inspector and invoke popup menu.
3. Push Set Layout | AbsoluteLayout from popup menu.
RESULT: Layout node under JFrame node is changed (shown AbsoluteLayout). Code for new layout is generated.
23Change lyout: AbsoluteLayout to Null Layout
1. Create new JFrame.
2. Select JFrame in Component Inspector and invoke popup menu.
3. Push Set Layout | Null Layout from popup menu.
RESULT: Layout node under JFrame node is changed (shown NullLayout). Code for new layout is generated.
Teardown:



Test suite 8: Border tests

Purpose:
Setup: Start IDE with clear userdir - default MDI mode is set.

#Test caseDescription
1Set EmptyBorder for JButton
1. Open existing form file from mounted filesystem.
2. Select component JButton from Component Palette category Swing.
3. Click into Form Designer.
4. Set border-property to EmptyBorder.
5. Click on jButton1 in Form Designer.
RESULT: Code for new border is generated:
jButton1.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(1, 1, 1, 1)));
2Set LineBorder for JLabel
1. Open existing form file from mounted filesystem.
2. Select component JLabel from Component Palette category Swing.
3. Click into Form Designer.
4. Set border-property to LineBorder.
5. Click on jLabel1 in Form Designer.
RESULT: Code for new border is generated:
jLabel1.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0)));
3Set MatteBorder for JRadioButton
1. Open existing form file from mounted filesystem.
2. Select component JRadioButton from Component Palette category Swing.
3. Click into Form Designer.
4. Set border-property to MateBorder.
5. Click on jRadioButton1 in Form Designer.
RESULT: Code for new border is generated:
jRadioButton1.setBorder(new javax.swing.border.MatteBorder(null));
4Set TitledBorder for JPanel
1. Open existing form file from mounted filesystem.
2. Select component JPanel from Component Palette category Swing.
3. Click into Form Designer.
4. Set border-property to TitledBorder.
5. Click on jPanel1 in Form Designer.
RESULT: Code for new border is generated:
jPanel1.setBorder(new javax.swing.border.TitledBorder(""));
5Set EtchedBorder for JTextField
1. Open existing form file from mounted filesystem.
2. Select component JTextField from Component Palette category Swing.
3. Click into Form Designer.
4. Set border-property to EtchedBorder.
5. Click on jTextField1 in Form Designer.
RESULT: Code for new border is generated:
jTextField1.setBorder(new javax.swing.border.EtchedBorder());
6Set BevelBorder for JTextArea
1. Open existing form file from mounted filesystem.
2. Select component JTextArea from Component Palette category Swing.
3. Click into Form Designer.
4. Set border-property to BevelBorder.
5. Click on jTextArea1 in Form Designer.
RESULT: Code for new border is generated:
jTextArea1.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.RAISED));
7Set SoftBevelBorder for JCheckBox
1. Open existing form file from mounted filesystem.
2. Select component JCheckBox from Component Palette category Swing.
3. Click into Form Designer.
4. Set border-property to SoftBevelBorder.
5. Click on jCheckBox1 in Form Designer.
RESULT: Code for new border is generated:
jCheckBox1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
8Set CompoundBorder for JSplitPane
1. Open existing form file from mounted filesystem..
2. Select component JSplitPane from Component Palette category Swing.
3. Click into Form Designer.
4. Set border-property to CompoundBorder.
5. Click on jSplitPane1 in Form Designer.
RESULT: Code for new border is generated:
jSplitPane1.setBorder(new javax.swing.border.CompoundBorder());
Teardown:



Test suite 9: Action tests

Purpose:
Setup: Start IDE with clear userdir - default MDI mode is set.

#Test caseDescription
1Invoke Design This Container on Panel
1. Open existing form file from mounted filesystem.
2. Select component Panel from Component Palette category AWT.
3. Click into Form Designer.
4. Select panel1 in Form Designer and invoke popup menu.
5. Push Design This Container.
RESULT: Form Designer displays only panel1 as the whole design container. Title of Form Designer is changed to "/Panel1".
2Invoke Design This Container on JPanel
1. Open existing form file from mounted filesystem.
2. Select component JPanel from Component Palette category Swing.
3. Click into Form Designer.
4. Select jPanel1 in Form Designer and invoke popup menu.
5. Push Design This Container.
RESULT: Form Designer displays only jPanel1 as the whole design container. Title of Form Designer is changed to "/jPanel1".
3Invoke Design This Container on JDialog (from Other Components)
1. Open existing form file from mounted filesystem.
2. Select component JDialog from Component Palette category Swing(Other).
3. Click into Form Designer.
4. Select jDialog1 in Component Inspector and invoke popup menu.
5. Push Design This Container.
RESULT: Form Designer displays only jDialog1 as the whole design container. Title of Form Designer is changed to "/jDialog1".
4Invoke Design Top Container on JScrollPane
1. Open existing form file from mounted filesystem.
2. Select component JScrollPane from Component Palette category Swing(Other).
3. Click into Form Designer.
4. Select jScrollPane1 in Component Inspector and doubleclick.
5. Select jScrollPane1 in Form Designer and invoke popup menu.
6. Push Design Top Container.
RESULT: Form Designer displays top container as the whole design container. Title of Form Designer is changed to "".
5Invoke Goto Source on JButton
1. Open existing form file from mounted filesystem.
2. Select component JButton from Component Palette category Swing.
3. Click into Form Designer.
4. Select jButton1 in Form Designer and invoke popup menu.
5. Push Goto Source.
RESULT: Source Editor become active.
6Change order of tabs in JTabbedPane
1. Open existing form file with three tabs(button1,button2 and button3).
2. Select jTabbedPane1 in Form Designer and invoke popup menu.
3. Push Change Order.
4. In opened Change Order dialog select button1 and push Move Down.
5. Select button3 and push Move Up.
RESULT: Order of components under jTabbedPane1 node in Component Inspector is changed, appropriate code is regenerated and Form Designer is repainted.
7Add JPopupMenu by Add From Palette
1. Open existing form file from mounted filesystem.
2. Invoke popup menu in Form Designer.
3. Push Add From Palette -> Swing -> JPopupMenu.
RESULT: Code for added JPopupMenu is generated (see AddJPopupMenu.java). jPopupMenu1 is selected in Component Inspector and appropriate properties are displayed in Properties Sheet under Component Tree.
8Add Button by Add From Palette on Panel
1. Open existing form file from mounted filesystem.
2. Select component Panel from Component Palette category AWT.
3. Click into Form Designer.
4. Invoke popup menu on panel1 in Form Designer.
5. Push Add From Palette -> AWT -> Button.
RESULT: Code for added Button is generated (see AddButtontoPanel.java). button1 is selected in Component Inspector and appropriate properties are displayed in Properties Sheet under Component Tree.
Teardown:



Test suite 10: GridBag Customizer test

Purpose:
Setup: Start IDE with clear userdir - default MDI mode is set.

#Test caseDescription
1Set properties: change values in property sheet
1. Open existing JFrame file from mounted filesystem.
2. Set GridBagLayout.
3. Select JFrame's Layout node in Component Inspector.
4. Push Customize from Property sheet.
5. Select jButton1.
6. Change property Grid X = 2.
7. Change property Grid Y = 2.
8. Change property Grid Width = Remainder.
9. Change property Grid Height = Relative.
10. Change property Fill = Horizontal.
11. Change property Internal Padding X = 3.
12. Change property Internal Padding Y = 4.
13. Change property Insets = 1,1,1,1.
14. Change property Anchor = North.
15. Change property Weight X = 0.3.
16. Change property Weight Y = 0.2.
RESULT: In GUI part are selected toggle buttons : Anchor-North, Fill-Horizontal, Horizontal Remainder. Code is generated (see GBL_by_sheet.java).
2Set properties: change values by visual development
1. Open existing form file from mounted filesystem.
2. Set GridBagLayout.
3. Select JFrame's Layout node in Component Inspector.
4. Push Customize from Property sheet.
5. Select jLabel1.
6. Push Grid Size Vertical +1 3x.
7. Push Grid Size Horizontal +1 2x.
8. Push Fill Horizontal and Vertical.
9. Push I-Padding Horizontal +1 1x.
10. Push I-Padding Vertical +1 4x.
11. Push Insets All +1.
12. Push Anchor South.
13. Move jButton1 to position 3,3.
14. Move jLabel1 to position 1,5.
RESULT: Code is generated (see GBL_by_visual.java).
Teardown:



Test suite 11: Performance

Purpose: In Netbeans 3.4 is improved performance for multiple actions.
Setup: Start IDE with clear userdir - default MDI mode is set.

#Test caseDescription
1Performance - copy
1. Add JPanel1,JPanel2 into form.
2. Add 10 JButoons into JPanel1.
3. Select all JButtons.
4. Copy components to JPanel2.
RESULT: Copying of components is performed in one stroke.
2Performance - undo/redo
1. Add JPanel1,JPanel2 into form.
2. Add 10 JButoons into JPanel1.
3. Select all JButtons.
4. Move components to JPanel2.
5. Copy components to JPanel1.
6. Push undo, undo, redo, redo.
RESULT: Undo and redo is always performed in one stroke.
3Performance - move
1. Add JPanel1,JPanel2 into form.
2. Add 10 JButoons into JPanel1.
3. Select all JButtons.
4. Move components to JPanel2.
RESULT: Move of components is performed in one stroke.
4Performance - delete
1. Add 10 JButoons into form.
2. Select all JButtons.
3. Delete components.
RESULT: Delete of components is performed in one stroke.
5Performance - cut and paste
1. Add JPanel1,JPanel2 into form.
2. Add 10 JButoons into JPanel1.
3. Select all JButtons
4. Cut components and paste them into JPanel2.
RESULT: Move of components is performed in one stroke.
6Performance - change properties
1. Add 10 JButoons into form.
2. Select all JButtons.
3. Change properies: background, text, size.
RESULT: Changing of properties is performed in one stroke.
Teardown:



Test suite 12: Undo/Redo

Purpose: Test undo/redo functionality.
Setup: Start IDE with clear userdir - default MDI mode is set.

#Test caseDescription
1Undo/redo - test of components
1. Layout - Change Layout to AbsoluteLayout.
2. Add - Add two JPanels, add several JButtons and other components to JPanel1,JPanel2,top container.
3. Layout - Change Layout in JPanel1 to GridBagLayout.
4. Resize, move - resize and move JPanel1, JPanel2.
5. Move - move JButtons from one Panel to second Panel and vice versa.
6. Copy - copy JButtons between Panels and top container.
7. Delete - delete JButton.
8. Cut and paste - cut and paste components from one JPanel to second.
9. Change properties - change properties (Background Color, text).
10. Events - add events.
11. Make changes via ComponentInspector (move, change order, delete, copy).
12. Undo - undo all changes.
13. Redo - redo all changes.
14. Undo/redo - undo and redo all changes several times.
RESULT: Undo and redo all changes perform correctly.
2Undo/redo - work with two FormEditors
1. Create JForm1,JForm2.
2. Add JButton to JForm1.
3. Cut and paste JButton to JForm2.
4. Push undo in JForm1.
RESULT: JButton is in both forms.
3Undo/redo - events
1. Add JButton.
2. Add event actionPerformed.
3. Type in editor code.
4. Push undo and redo.
RESULT: Typed text is in editor.
Teardown:



Test suite 13: Usability

Purpose: Test of several features for better usability.
Setup: Start IDE with clear userdir - default MDI mode is set.

#Test caseDescription
1Multi-selection, interval multi selection
1. Add several components to form.
2. Try multi-selection (Ctrl + Mouse).
3. Try interval selection (Shift + Mouse).
RESULT: Components are selected properly.
2Multi-selection, interval multi selection
1. Add JPanel1, add tw Components to form, add tw component to JPanel1.
2. Change Layout to AbsoluteLayout.
3. Try select with mouse (Shift + drag mouse) region with Component on form and with JPanel.
4. Try select with mouse (Shift + drag mouse) region without Component on form and with Componets in JPanel.
RESULT: Components are selected properly - always are selected components in the same container.
3Precise resizing of form size
1. Create new form.
2. Double-click on right (or bottom) border of form.
3. In window "Set Form Designer Size" enter new size.
RESULT: Form is resized, the same value is in property sheet - tab Code Generation.
Teardown:




Generated: Mon May 24 10:59:50 CEST 2004
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