MobilityActionsTesting

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:
      1. create new MIDP application, Mobile Class Library
  • Create new file in Mobile project
  • tests
      1. [[[done | [done]] create all files described in http://wiki.netbeans.org/TS_60_MobilityCreateNew#section-TS_60_MobilityCreateNew-TestSuiteNewFileWizard
        1. all MIDP files must be compilable
        2. 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:
      1. [[[done | [done]] dialog opens
      2. [[[done | [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:
      1. [[[done | [done]] In Navigator - invoke action on a component -> it takes you into the Source view, cursor is in the component getter method
      2. 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:
      1. [[[done | [done]] In Navigator - invoke action on a component -> it takes you into the Screen view
      2. 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:
      1. [[[done | [done]] In Navigator - invoke action on a component -> component is deleted
      2. 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:
      1. [[[done | [done]] In Navigator - invoke action on a component -> add a new command to the component
      2. [[[done | [done]] In Navigator - invoke action on a MIDP Visual Design node -> add a new component to the design
      3. 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:
      1. [[[done | [done]] In Navigator - invoke action on a component -> rename the component (?#132046?)
      2. 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:
      1. [[[done | [done]] generate Java ME Web Services Client for WSDL - http://wiki.netbeans.org/wiki/attach/TS_60_MobilityEndToEnd/EchoNoArraysDOCUMENT.wsdl
        1. the generated code can be compiled
      2. LATER - generate Mobile Client to Web Application
        1. the generated code can be compiled


  • org.netbeans.modules.mobility.svgcore.navigator.FilterActions
  • popup menu on Navigator when svg image is opened
  • tests:
      1. [[[done | [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:
      1. [[[done | [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:
      1. [[[done | [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:
      1. [[[done | [done]] insert a preprocessor block into a source file in editor in mobility project, invoke the action -> code is correctly re-commented
        1. 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:
      1. [[[done | [done]] invoke the action from popup menu in editor - Preprocessor Blocks > Add Configurations to Project..., dialog appears
      2. [[[done | [done]] invoke the action from combobox in project properties, dialog appears
      3. [[[done | [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:
      1. [[[done | [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:
      1. [[[done | [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:
      1. [[[done | [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:
      1. [[[done | [done]] invoke the action , dialog appears
  • org.netbeans.modules.mobility.project.ui.security.SecurityManagerAction
  • Tools > Keystores
  • tests:
      1. [[[done | [done]] invoke the action, dialog appears


There are following actions available in Mobility

  • org.netbeans.modules.vmd.api.model.presenters.actions.MoveAction
  • tests: LATER
  • 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

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo