cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Form Editor - Component Palette Test Specification

Author: Jaromir Uhrik
Version: 1.0.1
Last update: 24.05.2004
Introduction: This is intended as tests of Component Palette.
Comment:

Table of Contents

Test suite 1: Component Palette

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

#Test caseDescription
1Test Component Palette - Small Palette
1. Invoke popup menu over Selection button in the toolbar on the top of the Designer.
2. Push Show Add Button.
RESULT: The button with '+' icon appears in the toolbar.
2Add beans to Component Palette category from JAR file
1. Push "Palette Manager" icon in the form designer toolbar.
2. Press "Add drom JAR..." button.
3. Select resource (.jar file) that contains the beans and press 'Next'.
4. Select first bean, hold Shift and select last bean - all beans are selected.
5. Push 'Next'.
6. Select category Beans.
7. Push Finish and Close the Palette Manager.
RESULT: Palette Beans contains all added beans.
3Test Selection mode
1. Push Selection Mode.
2. Click in Form Designer.
RESULT: JFrame in Form Designer and the same node (JFrame) is selected in Component Inspector.
4Test Add mode
1. Push Add Mode.
2. From opened popup menu select Swing -> JButton.
RESULT: On the right of status label there is icon of JButton and label JButton.
5Test Connection mode
1. Push Connection Mode.
2. Click in Component Inspector on JFrame.
3. Click in Form Designer on jButton1.
RESULT: Dialog Connection Wizard arise. Close it.
6Switching categories
1. Switch to category Swing.
2. Switch to category AWT.
3. Switch to category Beans.
4. Switch to category Layouts.
RESULT: All categories contain appropriate components.
7Show names of components
1. Invoke popup menu over component JLabel from category Swing.
2. Select Show Component Names.
RESULT: Names and Icons of components from selected category is shown.
8Selecting components
1. Select randomly all components in Component Palette from all categories.
RESULT: Each component is selected, previously selected component is unselected. Selection Mode is unselected too. When add mode is on, the selected component icon and name is shown in designers' toolbar (on the right).
9Selecting components, Names
1. Invoke popup menu over component Label from category AWT.
2. Select Show Names.
3. Select randomly all components in Component Palette from all categories.
RESULT: Each component is selected, previously selected component is unselected. Selection Mode is unselected.
10Delete component
1. Invoke popup menu on component Button from Component Palette category AWT.
2. Push Delete.
3. In opened dialog Confirm Palette Removal push Ok.
RESULT: Category AWT doesn't contain component Button.
11Move Left/Right components
1. Invoke popup menu on component ButtonGroup from Component Palette category Swing.
2. Push Change Components Order.
3. Select the ButtonGroup and press Move Up.
4. Invoke popup menu on component JRadioButton from Component Palette category Swing.
5. Push Change Components Order.
6. Select the JRadioButton and push Move Down.
7. Push OK.
RESULT: Category Swing contains components in this order : JLabel, JButton, JToggleButton, JCheckBox, ButtonGroup, JComboBox, JRadioButton, ....
12Cut/Paste component
1. Invoke popup menu on component JInternalFrame from Component Palette category Swing.
2. Push Cut.
3. Invoke popup menu on category Beans.
4. Push Paste.
RESULT: Category Swing doesn't contain component JInternalFrame but category Swing contains it.
13Copy/Paste component
1. Invoke popup menu on component Button from Component Palette category AWT.
2. Push Copy.
3. Invoke popup menu on category Beans.
4. Push Paste.
RESULT: Category AWT contains component Button and category Beans contains it, too.
14Move/Delete/Rename categories
1. Push Swing in palette.
2. Invoke popup menu on category AWT from Component Palette.
3. Push Change Categories Order.
4. Select the Swing and press Move Down.
5. Push OK.
6. Invoke popup menu on category AWT from Component Palette.
7. Push rename.
8. Type 'AWTrename'.
9. Invoke popup menu on category Layouts from Component Palette.
10. Push delete and press OK.
RESULT: Category Layouts is missed, category AWT has changed name, Swing is one position down.
15Check tooltips of components
1. Try all components in all categories.
RESULT: Correct tooltip must appear.
Teardown:



Test suite 2: Small Palette

Purpose: Small palette check.
Setup: Invoke popup menu over Selection button in the toolbar on the top of the Designer and push Show Add Button.

#Test caseDescription
1Small Palette - Categories check
1. Press Designer's small palette button ('+' icon).
2. Same categories all available as in 'Large palette'.
RESULT: Swing, AWT, Beans and Layouts categories are in menu and all have submenus.
2Small Palette vs. Large Palette
1. Select any component from 'Small palette' and assure it is selected in 'Large palette' too.
2. The Toolbar of Designer must dynamicly show the selected component on the right of the bar.
RESULT:
3Small Palette - Add All Components
1. Try to use all items of the 'Small Palette' and add them into the form step by step.
RESULT: Behavior must be same as that of 'Large Palette'.
4Remove SmallPalette button
1. Invoke popup menu over Selection button in the toolbar on the top of the Designer.
2. Push Show Add Button.
RESULT: The button with '+' icon vanishes from the toolbar.
Teardown:



Test suite 3: Test action

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

#Test caseDescription
1Test action - JApplet
1. Create new JApplet.
2. Add components.
3. Push Test form.
RESULT: Check opened form (positions and properties of components).
2Test action - JDialog
1. Create new JDialog.
2. Add components.
3. Push Test form.
RESULT: Check opened form (positions and properties of components).
3Test action - JFrame
1. Create new JFrame.
2. Add components.
3. Push Test form.
RESULT: Check opened form (positions and properties of components).
4Test action - JInternalFrame
1. Create new JInternalFrame.
2. Add components.
3. Push Test form.
RESULT: Check opened form (positions and properties of components).
5Test action - Applet
1. Create new Applet.
2. Add components.
3. Push Test form.
RESULT: Check opened form (positions and properties of components).
6Test action - Dialog
1. Create new Dialog.
2. Add components.
3. Push Test form.
RESULT: Check opened form (positions and properties of components).
7Test action - Frame
1. Create new Frame.
2. Add components.
3. Push Test form.
RESULT: Check opened form (positions and properties of components).
8Test action - table
1. Create new JFrame.
2. Add JTable.
3. Push Test form.
RESULT: Check opened form - test JTable component, check source code.
9Test action - change selection
1. Create new JFrame.
2. Add JCheckBox1, JRadioButton1.
3. Set 'selected' property for JCheckBox1.
4. Set 'selected' property for JRadioButton1.
5. Push Test form.
RESULT: Check components (JCheckBox1, JRadioButton1) are selected.
Teardown:



Test suite 4: Connection Wizard test

Purpose:
Setup: Start IDE with clear userdir - default MDI mode is set. Create new JForm, put on JForm JButton and JLabel with default names. Press toggle button 'Connection Mode' on.

#Test caseDescription
1Connection wizard - Set Property
1. Select jButton1.
2. Select jLabel1.
3. Select in tree [action][actionPerformed], click Next.
4. Select setProperty.
5. Select property 'text', click Next.
6. Type value 'attempt'.
RESULT: Properly generated code.
2Connection wizard - Method Call
1. Select jButton1.
2. Select jLabel1.
3. Select in tree [action][actionPerformed], click Next.
4. Select Method call.
5. Select method setText(String), click Next.
6. Type value 'attempt'.
RESULT: Properly generated code.
3Connection wizard - User Code
1. Select jButton1.
2. Select jLabel1.
3. Select in tree [action][actionPerformed], click Next.
4. Select User code.
5. Select method setText(String), click Finish.
RESULT: Properly generated code.
Teardown:




Generated: Mon May 24 10:47:10 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