Test to automate in Mobility Pack
Setup/configuration
It is necessary to have WTK available in local disc. The build-qa-functional.xml can look like http://hg.netbeans.org/main/file/05462ca331e7/mobility.project/test/build-qa-functional.xml (ask Jirka Skrivanek about details).
Create New
- Create new project
- tests:
- create new MIDP application, Mobile Class Library
- Create new file in Mobile project
- tests
- [done] create all files described in http://wiki.netbeans.org/TS_60_MobilityCreateNew#section-TS_60_MobilityCreateNew-TestSuiteNewFileWizard
- all MIDP files must be compilable
- look at http://hg.netbeans.org/main/file/05462ca331e7/mobility.project/test/qa-functional/src/org/netbeans/test/mobility/NewProjectFileTest.java
Actions to be tested
ignore the LATER items.
- org.netbeans.modules.vmd.midp.palette.MidpPaletteManagerAction
- Tools > Palette > MIDP Visual Mobile Designer
- tests:
- [done] dialog opens
- [done] create new category
- org.netbeans.modules.vmd.midp.actions.GoToSourceAction
- "Go To Source" from popup on any screen in flow design or on a component node in Navigator(the file has to be opened in Editor)
- tests:
- [done] In Navigator - invoke action on a component -> it takes you into the Source view, cursor is in the component getter method
- LATER - invoke the action from popup on the component in Flow designer - see http://hg.netbeans.org/main/file/tip/jellytools/test/qa-functional/src/org/netbeans/jellytools/widgets/WidgetOperatorTest.java
- org.netbeans.modules.vmd.api.screen.actions.DesignerEditAction
- "Edit" from popup on any screen in flow design
- tests:
- [done] In Navigator - invoke action on a component -> it takes you into the Screen view
- LATER - invoke the action from popup on the component in Flow designer - see http://hg.netbeans.org/main/file/tip/jellytools/test/qa-functional/src/org/netbeans/jellytools/widgets/WidgetOperatorTest.java
- org.netbeans.modules.vmd.api.model.presenters.actions.DeleteAction
- "Delete" from popup on any screen in flow design
- tests:
- [done] In Navigator - invoke action on a component -> component is deleted
- LATER - invoke the action from popup on the component in Flow designer - see http://hg.netbeans.org/main/file/tip/jellytools/test/qa-functional/src/org/netbeans/jellytools/widgets/WidgetOperatorTest.java
- org.netbeans.modules.vmd.api.model.presenters.actions.AddAction
- "New/Add" from popup on screen or any widget in flow design
- tests:
- [done] In Navigator - invoke action on a component -> add a new command to the component
- [done] In Navigator - invoke action on a MIDP Visual Design node -> add a new component to the design
- LATER - invoke the action from popup in Flow designer - see http://hg.netbeans.org/main/file/tip/jellytools/test/qa-functional/src/org/netbeans/jellytools/widgets/WidgetOperatorTest.java
- org.netbeans.modules.vmd.api.inspector.common.RenameAction
- "Rename" from popup on any screen in flow design
- tests:
- [done] In Navigator - invoke action on a component -> rename the component (?#132046?)
- LATER - invoke the action from popup in Flow designer - see http://hg.netbeans.org/main/file/tip/jellytools/test/qa-functional/src/org/netbeans/jellytools/widgets/WidgetOperatorTest.java
- org.netbeans.modules.mobility.end2end.ui.editor.GenerateAction
- Finish in Java ME Web Services Client or Mobile Client to Web Application
- tests:
- [done] generate Java ME Web Services Client for WSDL - http://wiki.netbeans.org/wiki/attach/TS_60_MobilityEndToEnd/EchoNoArraysDOCUMENT.wsdl
- the generated code can be compiled
- LATER - generate Mobile Client to Web Application
- the generated code can be compiled
- org.netbeans.modules.mobility.svgcore.navigator.FilterActions
- popup menu on Navigator when svg image is opened
- tests:
- [done] have a sample svg image, invoke every filter action on the svg elements view in Navigator
- org.netbeans.modules.mobility.svgcore.export.SaveAnimationAsImageAction
- "Export Animation As Image" from popup on svg animation image (node or document)
- tests:
- [done] invoke the action on a simple animation (for animations - look at New Project > Samples > Mobility > MIDP > SVG ...), invoke the action, finish the dialog
- org.netbeans.modules.mobility.svgcore.export.SaveAsImageAction
- "Export As Image" from popup on svg image (node or document)
- tests:
- [done] invoke the action on a simple svg image (look at New Project > Samples > Mobility > MIDP > SVG ...), invoke the action, finish the dialog
- org.netbeans.modules.mobility.editor.actions.RecommentAction
- context menu in editor - Preprocessor blocks > Re-Comment
- tests:
- [done] insert a preprocessor block into a source file in editor in mobility project, invoke the action -> code is correctly re-commented
- preprocessor block //#if CLDC
System.out.println("CLDC");
//#else
System.out.println("ELSE");
//#endif
- org.netbeans.modules.mobility.editor.actions.AddProjectConfigurationAction
- context menu in editor - Add Configurations To Project
- tests:
- [done] invoke the action from popup menu in editor - Preprocessor Blocks > Add Configurations to Project..., dialog appears
- [done] invoke the action from combobox in project properties, dialog appears
- [done] invoke the action in Project Configuration Manager, add new configuration to project
- org.netbeans.modules.mobility.editor.actions.CreateIfElseBlockAction
- context menu in editor in project with more configurations - Create If/Else Block
- tests:
- [done] invoke the action in editor - Preprocessor Blocks > Create If/Else Block, new block is created in source code
- org.netbeans.modules.mobility.editor.actions.CreateDebugBlockAction
- context menu in editor in project with more configurations - Create Debug Block
- tests:
- [done] invoke the action in editor - Preprocessor Blocks > Create Debug Block, new block is created in source code
- org.netbeans.modules.mobility.editor.actions.AddElifBlockAction
- context menu in editor in project with more configurations - Create Elif Block Section
- tests:
- [done] invoke the action in editor in existing preprocessor block - Preprocessor Blocks > Create Elif Block Section, new block is created in source code
- org.netbeans.modules.mobility.project.deployment.MobilityDeploymentManagerAction
- Tools > Mobility Deployment
- tests:
- [done] invoke the action , dialog appears
- org.netbeans.modules.mobility.project.ui.security.SecurityManagerAction
- Tools > Keystores
- tests:
- [done] invoke the action, dialog appears
There are following actions available in Mobility
- org.netbeans.modules.vmd.api.model.presenters.actions.MoveAction
- org.netbeans.modules.mobility.svgcore.palette.ImportPaletteFolderAction
- action in svg image file
- tests: LATER
- org.netbeans.modules.vmd.midp.actions.ExportFlowAsImageAction
- "Export Flow As Image" from popup menu on visual midlet
- tests: LATER
- org.netbeans.modules.mobility.svgcore.export.SaveElementAsImage
- "Export SVG Element As Image" from popup on svg elemement
- LATER
Test specifications to be covered
When a testcase is covered by test assign AUTOMATED keyword to the testcase name