Purpose: Test assure Component Inspector funcionality as a component which cooperates with Source Editor , Explorer and Form Editor.
Setup: Start IDE with clear userdir. Create new project, Java Application (e.g. MyApplication) and create a new form (e.g JFrame) containg several components.
#
Test case
Description
1
Assure the popup menu context
Select component (top level component) and assure visual appearance of popup menu, enabling/disabling of appropriate/ unappropriate operations according to a popup menu context
RESULT:
2
Assure the data transfer actions (clipboard, delete)
Moving/Copying operation are not trivial like in the Explorer. Assure that properties of copied components persists (expect the unique properties e.g. Variable Name - check uniquity). Refer these changes with Source Editor
Try to rename component. Set new name as name of existing component. Rename component to name of deleted component
Try to select more components and (Cut/Copy) to another container. Cut/Copy container, and try to "nest" it, try it with (J)PopupMenu and (J)Menu
RESULT:
3
Assure consistence with form sub tree of Form Data Object Node
Every opened Form Data Object consists of class subnode and form subnode in Explorer (expand the form node in Explorer and expand Top-node in Component Inspector)
Refer all changes in AWT tree of Component Inspector with the form subnode tree of Explorer. Verify their consistency. These two trees should be the same and operation over one tree should affect the other
Open some form and assure there is new tab added into the editor pane. The name of the tab ends with [Form] suffix
RESULT:
4
Assure consistence of Component Inspector and Form Window
Traverse through tree
By the selection of node (component or top level component) also its "mirror" component in Form Window is selected
Also Component Inspector's built-in propertysheet should show properties of the selected components
RESULT:
5
Change order
Assure Change order in Component Inspector (in Top-node by Change order and in component by Move up/down )
Check changes in Source Editor (for GridLayout, FlowLayout, CardLayout, BoxLayout, BorderLayout the order change visual appearance in Form Editor, but for another layout must stay without change)
RESULT:
6
Go to actions
Assure focus traverse (the focus must be moving in tree when pressing arrow up and arrow down key)
Purpose: Test the content of the Basic properties tab and assure the possibility of settings change.
Setup: Start IDE with clear userdir. Create new project, Java Application (e.g. MyApplication) and create a new form (e.g JFrame) containg several components. Create new JFrame form and open it.
#
Test case
Description
1
Property Editors test
Assure there are three categories of settings (for JFrame form) in the Basic Properties tab (Properties, Other Properties and Accessibility).
Add the JButton into the form and assure there is one more category of Basic properties - Layout
Color editor (background, foreground, gridcolor, ... ). Test all way to set color (Swatches, HSB, RGB, AWT palette, Swing palette, System palette)
There is a special Property Editor for int[] (e.g. 'preferredSize' property of JButton) - you can enter only first value and this value is automatically copied into whole vector (it works only on the line) - check it (e.g. property maximumSize of JButton).
Change values of type
String (e.g. 'text' property of JButton),
String[] (e.g. 'model' property of JList),
int (e.g. 'iconTextGap' property of JButton),
int[] (e.g. 'preferredSize' property of JButton),
float (e.g. 'alignmentX' property of JButton)
Again, try to insert "weird" values to all types.
Boolean - Click on the checkbox toggles the value to the opposite state.
Font - Change Font, Font style and size
Icon - Try to switch various Image sources (URL,File, Classpath) or No picture and check the generated code
Border - Try to select all borders, set parameters and assure generated code. Try to invoke Border Editor for component which have defined itself border.(e.g. Label)
MenuBar (top node)
Insets (margin) - Try to set insets (Top, Left, Bottom, Right)
Dimension (Minimum size, Preffered size, .. ) - Try to set dimension (Width, Height)
Cursor (top node) - Open cursor editor and try to select one. Assure generate code
Directory / file editor (select) - Select file or directory and assure generated code
Model Editor (JComboBox model, JList model ) - Add items, Remove them, Edit them. change order of items by Move Up, Move Down
Model Editor - JTable - Create table, add columns, rows, edit table cells, change Title, set editable, change size and set some dafult values, change place (Move left/right)
Form Connection panel - check the dialog In this dialog you can set :
Value - set value ,
Property - select property,
Method Call - call method (with parameters) from class
User Code - write own code
RESULT:
3
Assure visual appearance of String Property Editor.
Dialog is opened by clicking on "..." in Properties:
Edit - Change, enter text in Property Editor. Try this on editable and uneditable properties.Assure propagation of change to Source Editor. Some properties are write to source after set new value and push Enter.
Cancel - Value is not set to properties. Property Editor is closed, no dialog appears during this action.
OK - Value is set to properties. Property Editor is closed, no dialog appears during this action.
RESULT:
4
Advanced button
Assure action by Advanced button which invokes dialog which allows to insert Pre and Post Initialization Code
Write some code and assure propagation to Source Editor and persistence of this code
RESULT:
5
Check all tooltips
Check tooltips over values (value is in tooltip description) and over properties (type and short description)
RESULT:
6
Assure Property Editors' Dialog
Assure next actions:
OK - confirmation,
Cancel - discard ( return to the original value ),
Default - set default value
RESULT:
7
Assure change Property Editor.
Try change property editor for any properties, set value, save and reopen file
Assure that value change is reflected in Source Editor
Purpose: Events tab assure consistency between Component Inspector's Events tab and Explorer's Methods view and persistence of following changes. Save and reload the form again.
Setup: Start IDE with clear userdir. Create new project, Java Application (e.g. MyApplication) and create a new form (e.g JFrame) containg several components.
#
Test case
Description
1
Assure click over name of the event
Click over empty handler in the Event tab causes appearance of default value eg. jButton1ActionPerformed
RESULT:
2
Assure make all possible handlers
Make all possible handlers of some component (check performance, refreshing of editor, event tab, ... )
RESULT:
3
Assure renaming of event handlers
Rename the same event handler more than once and check changes. Use "forbidden" names ( keywords, numbers, ... ). Use existing names of event handlers
RESULT:
4
Assure deleting of event handlers, delete the name of the event handler
Delete an event handler of a component
If the event handler is the last handler which is attached to the event then a dialog should be shown
You can confirm deleting of the event handler ( including user code - assure it ) or let it be
Rename event handler and delete the same handler
RESULT:
5
Assure multi selection of event handlers
Select 'Events' tab and display handlers of any event.
One event can have only one active event handler (there could be other reasonable event handler which can be set as active)
Assure adding, multiple selecting and removing these handlers and see generating of proper code
Handler names are displayed in popup under the event
Purpose: Layouts category in this test assure operation with layouts and their transformation.
Setup: Start IDE with clear userdir. Create new project, Java Application (e.g. MyApplication) and create a new form (e.g JFrame) containg several components.
#
Test case
Description
1
Assure property of all
Change a property and observe code and visual changes
RESULT:
2
Assure layouts constraints
Change a property and observe code and visual changes.
RESULT:
3
Assure changes by Visual Development
Change location of component by mouse in Form Editor and assure change value of properties in Layout category
Change properties in GridBag Customizer and assure change value of properties in Layout category
Purpose: Code tab in this test assure Component Inspector funcionality as a component which generates some parts of code.
Setup: Start IDE with clear userdir. Create new project, Java Application (e.g. MyApplication) and create a new form (e.g JFrame) containg several components.
#
Test case
Description
1
Assure Code Generation
There are two choices Generate Code and Serialize
RESULT:
2
Assure Post Creation Code, Custom Creation Code, Post Init Code, Pre Creation Code, Pre Init Code
These properties determines the init an creation code of its component
Create some code in all of this properties and assure changes in Source Editor, save and compile file
RESULT:
3
Assure the Serialize To property
You can specify the file into which the component will be serialized (the Code Generation property should be set to Serialize)
RESULT:
4
Assure Variable Name
Assure visual appearance after set new name
RESULT:
5
Assure setting Top-node properties
In Component Inspector select the main container node ([JFrame], [Frame] ...) and change properties :
Position and size - (Form position, Form Size, Form Size Policy)
Generating Code - (Generate Size, Generate Center, Generate Position)
Menu bar - add and remove code for setting a menu bar , change Menu bar and assure visual appearance
Purpose:
Setup: Start IDE with clear userdir. Create new project, Java Application (e.g. MyApplication) and create a new form (e.g JFrame) containg several components.
#
Test case
Description
1
Beans test
Create beans by compilation of components (JPanel) add to Component Palette
Try to add to frame (JForm), compile, save, reopen and assure created frame
Purpose:
Setup: Start IDE with clear userdir. Create new project, Java Application (e.g. MyApplication) and create a new form (e.g JFrame) containg several components.
#
Test case
Description
1
Customizer and AWT
Open form file with AWT components ( top-component)
Move Form Editor window over all desktop pane
Open more than one AWT frame and assure repainting crossovers forms
RESULT:
2
Customize
Open form file
Add some components
Set GridBagLayout and Customize layout
In Customizer Dialog move components
Set all properties
Close/open file
Assure code generation (GridBagConstraints)
Add some container to form(set GridBagLayout for top-container)
Push Design This Container (in Form window you can design selected container)