Author: Jana Maleckova, Jaromir Uhrik
Version: 6.1
Lastupdate: 2008/08/15
Introduction: This is intended as tests of component Inspector.
Test suite: General
Purpose: Test assure Component Inspector functionality 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) containing several components.
- Assure the pop-up menu context
- Select component (top level component) and assure visual appearance of pop-up menu, enabling/disabling of appropriate/ inappropriate operations according to a pop-up menu context
- 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 uniqueness). 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
- Assure consistence with form sub tree of Form Data Object Node
- Every opened Form Data Object consists of class sub-node and form sub-node 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 sub-node 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
- 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
- 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)
- Go to actions from the Navigator window
- Assure focus traverse (the focus must be moving in the Navigator tree when pressing arrow up and arrow down key in the Editor)
- Push Goto Source actions from popup menu in the Navigator
- EXPECTED RESULT: The source editor for the form is focused, caret is placed appropriately.
Test suite: Testing various Previews
Purpose: To test if previews in various L&F are working
Setup: Start IDE with clear userdir. Create new project, Java Application (e.g. MyApplication) and create a new form (e.g JFrame) containing several components like, jCombobox, jLabel, jTable, jTree, jList, various controls and containers
- Test Metal L&F
- Open design form in design
- Select [Frame] node in navigator
- Invoke popup menu and choose Preview Design -> Metal
- EXPECTED RESULT: Preview is opened with the same component's layout as is seen in design. No exception is thrown
- Test Nimbus L&F
- Open design form in design
- Select [Frame] node in navigator
- Invoke popup menu and choose Preview Design -> Nimbus
- EXPECTED RESULT: Preview is opened with the same component's layout as is seen in design. No exception is thrown
- Test CDE/Motif L&F
- Open design form in design
- Select [Frame] node in navigator
- Invoke popup menu and choose Preview Design -> CDE/Motif
- EXPECTED RESULT: Preview is opened with the same component's layout as is seen in design. No exception is thrown
- Test Windows L&F
- Open design form in design
- Select [Frame] node in navigator
- Invoke popup menu and choose Preview Design -> Windows
- EXPECTED RESULT: Preview is opened with the same component's layout as is seen in design. No exception is thrown
- Test Windows Classic L&F
- Open design form in design
- Select [Frame] node in navigator
- Invoke popup menu and choose Preview Design -> Windows Classic
- EXPECTED RESULT: Preview is opened with the same component's layout as is seen in design. No exception is thrown
- Test Custom L&F
- Open Palette Manager from popup menu invoked on Palette
- Press button Add from Jar ...
- Choose napkinlaf.jar
from your disk
- Select listed NapkinLookAndFeel component and press next
- Choose Look and Feel Category
- Press Finish
- Press Close
- Select [Frame] node in navigator
- Invoke popup menu and choose Preview Design -> NapkinLookAndFeel
- EXPECTED RESULT: Preview is opened with the same component's layout as is seen in design. No exception is thrown
- "Test Button Group in Preview
- Open design form in design
- Add e.g. 2 jRadioButtons and assign them to one jButtonGroup
- Select [Frame] node in navigator
- Invoke popup menu and choose one of the Preview Design
- EXPECTED RESULT: Check if only one jRadioButton could be selected in preview
- Test all prevous usecases on different platforms
- EXPECTED RESULT: Should work
Test suite: Layouts category
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) containing several components.
- Assure property of all
- Change a property and observe code and visual changes
- Assure layouts constraints
- Change a property and observe code and visual changes.
- 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
Test suite: Beans tests
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.
- 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
- 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
Test suite: GridBag Customizer
Purpose:
Setup: Start IDE with clear userdir. Create new project, Java Application (e.g. MyApplication) and create a new form (e.g JFrame) containing several components.
- 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
- 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)
- Try to customize GridBagLayout of top-container