STS 73 J2ME

(Difference between revisions)
(Created page with '==J2ME Support Sanity Test Specification for NetBeans 7.3== '''Author:''' [mailto:stepan.zebra@oracle.com Štěpán Žebra]<br /> '''Version:''' 1.0<br /> '''Last update:''' 3.10…')
 
(One intermediate revision not shown)
Line 1: Line 1:
==J2ME Support Sanity Test Specification for NetBeans 7.3==
==J2ME Support Sanity Test Specification for NetBeans 7.3==
'''Author:''' [mailto:stepan.zebra@oracle.com Štěpán Žebra]<br />
'''Author:''' [mailto:stepan.zebra@oracle.com Štěpán Žebra]<br />
-
'''Version:''' 1.0<br />
+
'''Version:''' 1.2<br />
-
'''Last update:''' 3.10.2012<br />
+
'''Last update:''' 10.10.2012<br />
'''Introduction:''' Sanity test specification for testing Mobile and Embedded Java support. JavaME SDK is required for Mobility development. In NetBeans Full installer package, latest version of this SDK for each supported OS is bundled and pre-configured. To date, these are ME SDK 3.2 for Windows, ME SDK 3.0 for Mac and WTK 2.5.2 for Linux.<br />
'''Introduction:''' Sanity test specification for testing Mobile and Embedded Java support. JavaME SDK is required for Mobility development. In NetBeans Full installer package, latest version of this SDK for each supported OS is bundled and pre-configured. To date, these are ME SDK 3.2 for Windows, ME SDK 3.0 for Mac and WTK 2.5.2 for Linux.<br />
'''Comments:''' This document is heavily based on [[J2METestSpecificationSanity]] which is now obsolete.<br />
'''Comments:''' This document is heavily based on [[J2METestSpecificationSanity]] which is now obsolete.<br />
Line 8: Line 8:
__TOC__
__TOC__
-
====Test suite: CLDC project====
+
====Test suite: MIDP Project====
-
Purpose: To make sure J2ME CLDC project support exists and works correctly <br>
+
Purpose: Test MIDP project support functionality.<br />
-
Setup: Have NetBeans from either All or Java distribution installed on Windows <br>
+
Setup: NetBeans with Mobility module and JavaME Platform set up.<br />
 +
# {{testcase|MIDP Project creation}}
 +
## Push the '''New Project...''' button on the main IDE toolbar. "New Project" wizard shows up.
 +
## In the wizard, select "Java ME" category and "Mobile Application" project.
 +
## Push the '''Next >''' button to proceed to the next step.
 +
## In the second step, keep default values in all fields and push '''Next >'''.
 +
## In the third step, check that valid MIDP emulator device is selected and push '''Next >'''.
 +
## In the final step just push the '''Finish''' button.
 +
#* {{result|EXPECTED RESULT: New Mobile Application is created and it's Midlet.java file is opened in the editor.}}
 +
# {{testcase|MIDP Project run}}
 +
## In "Projects" view, select the root node of the "MobileApplication1" project. 
 +
## Inovke '''Run''' popup menu action.
 +
## Wait for the emulator window to show up and close it after the application is executed (confirm the "Hot Deployment" notification).
 +
#* {{result|EXPECTED RESULT: The project is successfully built without errors and executed in mobile device emulator.}}
 +
# {{testcase|MIDP Project closing/opening}}
 +
## In "Projects" view, select the root node of the "MobileApplication1" project. 
 +
## Inovke '''Close''' popup menu action.
 +
## Push the '''Open Project...''' button on the main IDE toolbar.
 +
## In the "Open Project" dialog, locate and select "MobileApplication1" and push the '''Open Project''' button.
 +
#* {{result|EXPECTED RESULT: After closing the project, the project contents disappears from "Projects" view and any project file opened in the editor is closed. After opening the project again, "MobileApplication1" is visible and responsive in the "Projects" view and any previously opened files in the editor are opened again.}}
 +
# {{testcase|MIDP Project deletion}}
 +
## In "Projects" view, select the root node of the "MobileApplication1" project. 
 +
## Inovke '''Delete''' popup menu action.
 +
## Tick the "Also delete sources under "<projectpath>" folder" checkbox.
 +
## Push the '''Yes''' button to confirm the project deletion.
 +
#* {{result|EXPECTED RESULT: The project closed in the IDE and removed from the filesystem.}}
 +
<br />
-
# {{testcase|CLDC Project creation}}
+
====Test suite: IMP Project====
-
## Press "New Project..." button on IDE main toolbar
+
Purpose: Test IMP project support functionality.<br />
-
## Select J2ME in Categories tree
+
Setup: NetBeans with Mobility module and JavaME Platform set up.<br />
-
## Select "Mobile Application" in Projects list, press Next
+
Note: ME SDK 3.2 ONLY!
-
## Check Project Name is MobileApplication1 and Project Location is predefined and valid, "Set as Main Project" and "Create Hello MIDlet" checkboxes are checked, press Next
+
# {{testcase|IMP Project creation}}
-
## Check "Java Platform Micro Edition SDK 3.0" emulator platform and ClamshellCldcPhone1 device are selected (on Linux there appears "Sun Java(TM) Wireless Toolkit 2.5.2 for CLDC" with Device "Default Color Phone"; CLDC-1.1 and MIDP-2.1 radio buttons are selected), press Next
+
## Push the '''New Project...''' button on the main IDE toolbar. "New Project" wizard shows up.
-
## Press Finish
+
## In the wizard, select "Java ME" category and "Embedded Application" project.
-
#* {{result|EXPECTED RESULT: new Mobile application is created in IDE, HelloMIDlet.java is opened in Visual Designer}}
+
## Push the '''Next >''' button to proceed to the next step.
-
# {{testcase|Running J2ME CLDC Application in emulator}}
+
## In the second step, keep default values in all fields and push '''Next >'''.
-
## Select MobileApplication1 project node in Projects tree, right-click it and press "Run"
+
## In the third step, check that valid IMP emulator device is selected and push '''Next >'''.
-
## Close the emulator window
+
## In the final step just push the '''Finish''' button.
-
## Select MobileApplication1, right-click it and close using popup menu
+
#* {{result|EXPECTED RESULT: New Embedded Application is created and it's IMlet.java file is opened in the editor.}}
-
#* {{result|EXPECTED RESULT: The application is built without errors and executed in mobile device emulator. Then it is closed properly so that nothing related to the closed project resides in editor and the project node disappears also from Projects view. }}
+
# {{testcase|IMP Project run}}
-
# {{testcase|J2ME CLCD Project opening }}
+
## In "Projects" view, select the root node of the "EmbeddedApplication1" project. 
-
## Press "Open Project..." button on IDE main toolbar
+
## Inovke '''Run''' popup menu action.
-
## Using "Open Project" dialog, find and select MobileApplication1, press "Open Project" button
+
## Wait for the emulator window to show up and close it after the application is executed (confirm the "Hot Deployment" notification).
-
#* {{result|EXPECTED RESULT: MobileApplication1 is opened in IDE }}
+
#* {{result|EXPECTED RESULT: The project is successfully built without errors and executed in mobile device emulator.}}
 +
# {{testcase|IMP Project closing/opening}}
 +
## In "Projects" view, select the root node of the "EmbeddedApplication1" project. 
 +
## Inovke '''Close''' popup menu action.
 +
## Push the '''Open Project...''' button on the main IDE toolbar.
 +
## In the "Open Project" dialog, locate and select "EmbeddedApplication1" and push the '''Open Project''' button.
 +
#* {{result|EXPECTED RESULT: After closing the project, the project contents disappears from "Projects" view and any project file opened in the editor is closed. After opening the project again, "MobileApplication1" is visible and responsive in the "Projects" view and any previously opened files in the editor are opened again.}}
 +
# {{testcase|IMP Project deletion}}
 +
## In "Projects" view, select the root node of the "EmbeddedApplication1" project. 
 +
## Inovke '''Delete''' popup menu action.
 +
## Tick the "Also delete sources under "<projectpath>" folder" checkbox.
 +
## Push the '''Yes''' button to confirm the project deletion.
 +
#* {{result|EXPECTED RESULT: The project closed in the IDE and removed from the filesystem.}}
 +
<br />
-
<br>
+
====Test suite: CDC Project====
 +
Purpose: Test CDC project support functionality.<br />
 +
Setup: NetBeans with Mobility module and JavaME Platform set up.<br />
 +
Note: ME SDK 3.2 & ME SDK 3.0 ONLY!
 +
# {{testcase|CDC Project creation}}
 +
## Push the '''New Project...''' button on the main IDE toolbar. "New Project" wizard shows up.
 +
## In the wizard, select "Java ME" category and "CDC Application" project.
 +
## Push the '''Next >''' button to proceed to the next step.
 +
## In the second step, keep default values in all fields and push '''Next >'''.
 +
## In the third step, check that valid CDC emulator device is selected and push '''Finish'''.
 +
#* {{result|EXPECTED RESULT: New CDC Application is created and it's Main.java file is opened in the editor.}}
 +
# {{testcase|CDC Project run}}
 +
## In "Projects" view, select the root node of the "CdcApplication1" project. 
 +
## Inovke '''Run''' popup menu action.
 +
## Wait for the emulator window to show up and close it after the application is executed (confirm the "Hot Deployment" notification).
 +
#* {{result|EXPECTED RESULT: The project is successfully built without errors and executed in mobile device emulator.}}
 +
# {{testcase|CDC Project closing/opening}}
 +
## In "Projects" view, select the root node of the "CdcApplication1" project. 
 +
## Inovke '''Close''' popup menu action.
 +
## Push the '''Open Project...''' button on the main IDE toolbar.
 +
## In the "Open Project" dialog, locate and select "CdcApplication1" and push the '''Open Project''' button.
 +
#* {{result|EXPECTED RESULT: After closing the project, the project contents disappears from "Projects" view and any project file opened in the editor is closed. After opening the project again, "MobileApplication1" is visible and responsive in the "Projects" view and any previously opened files in the editor are opened again.}}
 +
# {{testcase|CDC Project deletion}}
 +
## In "Projects" view, select the root node of the "CdcApplication1" project. 
 +
## Inovke '''Delete''' popup menu action.
 +
## Tick the "Also delete sources under "<projectpath>" folder" checkbox.
 +
## Push the '''Yes''' button to confirm the project deletion.
 +
#* {{result|EXPECTED RESULT: The project closed in the IDE and removed from the filesystem.}}
 +
<br />
-
====Test suite: Databinding====
+
====Test suite: Visual Mobile Designer====
-
Purpose: To check if Databinding functionality present and usable <br>
+
Purpose: Test VMD availability and functionality.<br />
-
Setup: Have MobileApplication1 project open in IDE <br>
+
Setup: NetBeans with Mobility module and JavaME Platform set up.<br />
 +
# {{testcase|Install VMD Plugin}}
 +
## Invoke '''Tools | Plugins''' main menu action. "Plugins" manager shows up.
 +
## Switch to the "Available Plugins (#)" tab in the manage.
 +
## Tick the checkbox for "Visual Mobile Designer" and push '''Install'''.
 +
## Proceed through the installer wizard until the installation is complete.
 +
#* {{result|EXPECTED RESULT: The plugin is available and successfully installed.}}
 +
# {{testcase|Create VMD Project}}
 +
## Push the '''New Project...''' button on the main IDE toolbar. "New Project" wizard shows up.
 +
## In the wizard, select "Java ME" category and "Mobile Application" project.
 +
## Push the '''Next >''' button to proceed to the next step.
 +
## In the second step, keep default values in all fields and push '''Next >'''.
 +
## In the third step, check that valid MIDP emulator device is selected and push '''Next >'''.
 +
## In the final step just push the '''Finish''' button.
 +
#* {{result|EXPECTED RESULT: New Mobile Application is created, this time with HelloMIDlet.java VMD file, which is opened in the editor.}}
 +
<br />
 +
====Test suite: Databinding====
 +
Purpose: Test that Databinding functionality is avilable and functional.<br />
 +
Setup: VMD project opened in the IDE.<br />
# {{testcase|Add DataSet to mobile application}}
# {{testcase|Add DataSet to mobile application}}
## In Projects tree, expand MobileApplication1 | Source Packages | hello node
## In Projects tree, expand MobileApplication1 | Source Packages | hello node
Line 55: Line 140:
## Close the emulator
## Close the emulator
#* {{result|EXPECTED RESULT: Greeting is displayed on device screen in emulator }}
#* {{result|EXPECTED RESULT: Greeting is displayed on device screen in emulator }}
-
 
+
<br />
-
<br>
+
====Test suite: SVG UI components support====
====Test suite: SVG UI components support====
-
Purpose: Verify the functionality allowing SVG UI components to be used in CLDC application<br>
+
Purpose: Verify the functionality allowing SVG UI components to be used in CLDC application.<br />
-
Setup: Have MobileApplication1 project open in IDE <br>
+
Setup: VMD project opened in the IDE.<br />
-
 
+
# {{testcase|Create and edit SVG file }}
# {{testcase|Create and edit SVG file }}
## Press "New File..." button on the IDE toolbar
## Press "New File..." button on the IDE toolbar
Line 89: Line 172:
## Exit the Emulator
## Exit the Emulator
#* {{result|EXPECTED RESULT: The application is complied and executed without errors}}
#* {{result|EXPECTED RESULT: The application is complied and executed without errors}}
-
 
+
<br />
-
<br>
+
====Test suite: Project Configurations====
====Test suite: Project Configurations====
-
Purpose: Verify the ability of using multiple configurations of CLDC project <br>
+
Purpose: Verify the ability of using multiple configurations of CLDC project <br />
-
Setup: Have MobileApplication1 project open in IDE <br>
+
Setup: VMD project opened in the IDE.<br />
-
 
+
# {{testcase|Add a new configuration}}
# {{testcase|Add a new configuration}}
-
## In Projects tree, expand MobileApplication1 node, select "Project Configuration" node, right-click it and invoke "Add Project Configuration" popup menu command
+
## In Projects tree, expand the project root node, select "Project Configurations" node, right-click it and invoke "Add Project Configuration" popup menu command
## In "Add Project Configuration" dialog, enter "MyConfiguration" in "New Configuration Name" entry field and press OK button
## In "Add Project Configuration" dialog, enter "MyConfiguration" in "New Configuration Name" entry field and press OK button
#* {{result|EXPECTED RESULT:  MyConfiguration is created and selected in "Set Project Configuration" combobox on main IDE toolbar }}
#* {{result|EXPECTED RESULT:  MyConfiguration is created and selected in "Set Project Configuration" combobox on main IDE toolbar }}
Line 121: Line 202:
## Exit the emulator
## Exit the emulator
#* {{result|EXPECTED RESULT: Both configurations are executed successfully }}
#* {{result|EXPECTED RESULT: Both configurations are executed successfully }}
-
 
+
<br />
-
<br>
+
====Test suite: Debugger====
====Test suite: Debugger====
-
Purpose: Verify the functionality of the debugger in CLDC Project <br>
+
Purpose: Verify the functionality of the debugger in CLDC Project.<br />
-
Setup: Have MobileApplication1 project open in IDE <br>
+
Setup: VMD project opened in the IDE.<br />
-
 
+
# {{testcase|Set a breakpoint in MIDlet source}}
# {{testcase|Set a breakpoint in MIDlet source}}
## Switch to HelloMIDlet.java
## Switch to HelloMIDlet.java
Line 141: Line 220:
## Exit the Emulator
## Exit the Emulator
#* {{result|EXPECTED RESULT: Execution can be stopped at breakpoint and then continued}}
#* {{result|EXPECTED RESULT: Execution can be stopped at breakpoint and then continued}}
-
 
+
<br />
-
<br>
+
-
 
+
-
====Test suite: CDC Project====
+
-
Purpose: To make sure J2ME CDC project support exists and works correctly <br>
+
-
Setup: Have NetBeans from either All or Java distribution installed on Windows <br>
+
-
 
+
-
# {{testcase|Create CDC Project}}
+
-
## Press "New Project..." button on IDE main toolbar
+
-
## Select J2ME in Categories tree
+
-
## Select "CDC Application" in Projects list, press Next
+
-
## Check Project Name is CdcApplication1 and Project Location is predefined and valid, "Set as Main Project" and "Create Main Class" checkboxes are checked, press Next
+
-
## Check "CDC Java Platform Micro Edition SDK 3.0" emulator platform is selected, press Finish
+
-
#* {{result|EXPECTED RESULT: new CDC application is created in IDE, Main.java is opened in Java source editor}}
+
-
# {{testcase|Run CDC Project in Emulator }}
+
-
## Right click on CdcApplication1 in Projects tree and invoke Run popup menu command
+
-
## Check the emulator is running and displays "Hello, World!" on device screen
+
-
## Exit the emulator
+
-
#* {{result|EXPECTED RESULT: CDC Application is successfully executed in emulator }}
+
-
 
+
-
<br>
+

Current revision as of 11:43, 10 October 2012

J2ME Support Sanity Test Specification for NetBeans 7.3

Author: Štěpán Žebra
Version: 1.2
Last update: 10.10.2012
Introduction: Sanity test specification for testing Mobile and Embedded Java support. JavaME SDK is required for Mobility development. In NetBeans Full installer package, latest version of this SDK for each supported OS is bundled and pre-configured. To date, these are ME SDK 3.2 for Windows, ME SDK 3.0 for Mac and WTK 2.5.2 for Linux.
Comments: This document is heavily based on J2METestSpecificationSanity which is now obsolete.

Contents


Test suite: MIDP Project

Purpose: Test MIDP project support functionality.
Setup: NetBeans with Mobility module and JavaME Platform set up.

  1. MIDP Project creation
    1. Push the New Project... button on the main IDE toolbar. "New Project" wizard shows up.
    2. In the wizard, select "Java ME" category and "Mobile Application" project.
    3. Push the Next > button to proceed to the next step.
    4. In the second step, keep default values in all fields and push Next >.
    5. In the third step, check that valid MIDP emulator device is selected and push Next >.
    6. In the final step just push the Finish button.
    • EXPECTED RESULT: New Mobile Application is created and it's Midlet.java file is opened in the editor.
  2. MIDP Project run
    1. In "Projects" view, select the root node of the "MobileApplication1" project.
    2. Inovke Run popup menu action.
    3. Wait for the emulator window to show up and close it after the application is executed (confirm the "Hot Deployment" notification).
    • EXPECTED RESULT: The project is successfully built without errors and executed in mobile device emulator.
  3. MIDP Project closing/opening
    1. In "Projects" view, select the root node of the "MobileApplication1" project.
    2. Inovke Close popup menu action.
    3. Push the Open Project... button on the main IDE toolbar.
    4. In the "Open Project" dialog, locate and select "MobileApplication1" and push the Open Project button.
    • EXPECTED RESULT: After closing the project, the project contents disappears from "Projects" view and any project file opened in the editor is closed. After opening the project again, "MobileApplication1" is visible and responsive in the "Projects" view and any previously opened files in the editor are opened again.
  4. MIDP Project deletion
    1. In "Projects" view, select the root node of the "MobileApplication1" project.
    2. Inovke Delete popup menu action.
    3. Tick the "Also delete sources under "<projectpath>" folder" checkbox.
    4. Push the Yes button to confirm the project deletion.
    • EXPECTED RESULT: The project closed in the IDE and removed from the filesystem.


Test suite: IMP Project

Purpose: Test IMP project support functionality.
Setup: NetBeans with Mobility module and JavaME Platform set up.
Note: ME SDK 3.2 ONLY!

  1. IMP Project creation
    1. Push the New Project... button on the main IDE toolbar. "New Project" wizard shows up.
    2. In the wizard, select "Java ME" category and "Embedded Application" project.
    3. Push the Next > button to proceed to the next step.
    4. In the second step, keep default values in all fields and push Next >.
    5. In the third step, check that valid IMP emulator device is selected and push Next >.
    6. In the final step just push the Finish button.
    • EXPECTED RESULT: New Embedded Application is created and it's IMlet.java file is opened in the editor.
  2. IMP Project run
    1. In "Projects" view, select the root node of the "EmbeddedApplication1" project.
    2. Inovke Run popup menu action.
    3. Wait for the emulator window to show up and close it after the application is executed (confirm the "Hot Deployment" notification).
    • EXPECTED RESULT: The project is successfully built without errors and executed in mobile device emulator.
  3. IMP Project closing/opening
    1. In "Projects" view, select the root node of the "EmbeddedApplication1" project.
    2. Inovke Close popup menu action.
    3. Push the Open Project... button on the main IDE toolbar.
    4. In the "Open Project" dialog, locate and select "EmbeddedApplication1" and push the Open Project button.
    • EXPECTED RESULT: After closing the project, the project contents disappears from "Projects" view and any project file opened in the editor is closed. After opening the project again, "MobileApplication1" is visible and responsive in the "Projects" view and any previously opened files in the editor are opened again.
  4. IMP Project deletion
    1. In "Projects" view, select the root node of the "EmbeddedApplication1" project.
    2. Inovke Delete popup menu action.
    3. Tick the "Also delete sources under "<projectpath>" folder" checkbox.
    4. Push the Yes button to confirm the project deletion.
    • EXPECTED RESULT: The project closed in the IDE and removed from the filesystem.


Test suite: CDC Project

Purpose: Test CDC project support functionality.
Setup: NetBeans with Mobility module and JavaME Platform set up.
Note: ME SDK 3.2 & ME SDK 3.0 ONLY!

  1. CDC Project creation
    1. Push the New Project... button on the main IDE toolbar. "New Project" wizard shows up.
    2. In the wizard, select "Java ME" category and "CDC Application" project.
    3. Push the Next > button to proceed to the next step.
    4. In the second step, keep default values in all fields and push Next >.
    5. In the third step, check that valid CDC emulator device is selected and push Finish.
    • EXPECTED RESULT: New CDC Application is created and it's Main.java file is opened in the editor.
  2. CDC Project run
    1. In "Projects" view, select the root node of the "CdcApplication1" project.
    2. Inovke Run popup menu action.
    3. Wait for the emulator window to show up and close it after the application is executed (confirm the "Hot Deployment" notification).
    • EXPECTED RESULT: The project is successfully built without errors and executed in mobile device emulator.
  3. CDC Project closing/opening
    1. In "Projects" view, select the root node of the "CdcApplication1" project.
    2. Inovke Close popup menu action.
    3. Push the Open Project... button on the main IDE toolbar.
    4. In the "Open Project" dialog, locate and select "CdcApplication1" and push the Open Project button.
    • EXPECTED RESULT: After closing the project, the project contents disappears from "Projects" view and any project file opened in the editor is closed. After opening the project again, "MobileApplication1" is visible and responsive in the "Projects" view and any previously opened files in the editor are opened again.
  4. CDC Project deletion
    1. In "Projects" view, select the root node of the "CdcApplication1" project.
    2. Inovke Delete popup menu action.
    3. Tick the "Also delete sources under "<projectpath>" folder" checkbox.
    4. Push the Yes button to confirm the project deletion.
    • EXPECTED RESULT: The project closed in the IDE and removed from the filesystem.


Test suite: Visual Mobile Designer

Purpose: Test VMD availability and functionality.
Setup: NetBeans with Mobility module and JavaME Platform set up.

  1. Install VMD Plugin
    1. Invoke Tools | Plugins main menu action. "Plugins" manager shows up.
    2. Switch to the "Available Plugins (#)" tab in the manage.
    3. Tick the checkbox for "Visual Mobile Designer" and push Install.
    4. Proceed through the installer wizard until the installation is complete.
    • EXPECTED RESULT: The plugin is available and successfully installed.
  2. Create VMD Project
    1. Push the New Project... button on the main IDE toolbar. "New Project" wizard shows up.
    2. In the wizard, select "Java ME" category and "Mobile Application" project.
    3. Push the Next > button to proceed to the next step.
    4. In the second step, keep default values in all fields and push Next >.
    5. In the third step, check that valid MIDP emulator device is selected and push Next >.
    6. In the final step just push the Finish button.
    • EXPECTED RESULT: New Mobile Application is created, this time with HelloMIDlet.java VMD file, which is opened in the editor.


Test suite: Databinding

Purpose: Test that Databinding functionality is avilable and functional.
Setup: VMD project opened in the IDE.

  1. Add DataSet to mobile application
    1. In Projects tree, expand MobileApplication1 | Source Packages | hello node
    2. Double-click HelloMIDlet.java node
    • EXPECTED RESULT: HelloMIDlet.java is opened in Visual Designer
  2. Add DataSet to the MIDlet
    1. In Navigator, right-click Databinding node and invoke New/Add|DataSet popup menu command
    • EXPECTED RESULT: new dataSet subnode is displayed under Databinding node in Navigator
  3. Bind a Screen item to the DataSet
    1. In the Editor area switch HelloMIDlet in Visual Designer to Screen view
    2. Select stringItem (the text with "Hello" string) on Device Screen
    3. In Properties, push ellipsis button near Text property and open custom property editor dialog
    4. In "stringItem - Text" dialog select Databinding radio button, select dataSet in Datasets combo, type dataSet.text in "EL Read" entry field, press OK button to close the dialog
    • EXPECTED RESULT: <databinding> is displayed on StringItem on Device Screen and as value of Text property in Properties pane
  4. Customize DataSet and run the application in emulator
    1. Select datSet node in Navigator, right-click it and invoke "Go To Source" popup menu command
    2. Scroll down to getValue method and replace its body with "return "Greeting!";" statement
    3. Run the project in emulator
    4. Close the emulator
    • EXPECTED RESULT: Greeting is displayed on device screen in emulator


Test suite: SVG UI components support

Purpose: Verify the functionality allowing SVG UI components to be used in CLDC application.
Setup: VMD project opened in the IDE.

  1. Create and edit SVG file
    1. Press "New File..." button on the IDE toolbar
    2. Choose Other category and then "SVG File" in "File Types" list, press Next
    3. Check the new file name is newImage and Folder value is preset and valid then press Finish
    • EXPECTED RESULT: New SVG file is added in the project and opened in SVG composer
  2. Add UI elements to the SVG file
    1. Drag and drop "Text Field" form component from Patette on canvas in SVG composer
    2. Drag and drop Button form component from Patette on canvas in SVG composer
    3. Press "Save All Files" button on the IDE main toolbar
    • EXPECTED RESULT: both SVG text field and SVG button are displayed on canvas in SVG composer
  3. Add SVG Form to the MobileApplication1 project and attach SVG image to the form
    1. Select HelloMIDlet.java tab
    2. Make sure Visual Designer is switched to Flow mode (press Flow button on editor's toolbar if needed)
    3. Drag and drop "SVG Form" component from Palette on canvas
    4. Drag newImage.svg from Projects tree and drop it on svgForm displayed on canvas
    • EXPECTED RESULT: svgButton item is displayed under SVG Buttons category in svgForm element on canvas
  4. Make the svgForm a part of Mobile Application workflow
    1. Right-click 'form' component on canvas and invoke "New/Add | OK Command" popup menu command
    2. Bind okCommand item added to the form to svgForm element on canvas
    3. Bind svgButton item of svgForm to "Mobile Device" element on canvas
    • EXPECTED RESULT: The application workflow definition is completed
  5. Run the application in Emulator
    1. Press "Run Project" button on the IDE main toolbar
    2. In Emulator, press OK
    3. In Emulator, select OK button using cursor keys and push it by pessing Enter key on keyboard
    4. Exit the Emulator
    • EXPECTED RESULT: The application is complied and executed without errors


Test suite: Project Configurations

Purpose: Verify the ability of using multiple configurations of CLDC project
Setup: VMD project opened in the IDE.

  1. Add a new configuration
    1. In Projects tree, expand the project root node, select "Project Configurations" node, right-click it and invoke "Add Project Configuration" popup menu command
    2. In "Add Project Configuration" dialog, enter "MyConfiguration" in "New Configuration Name" entry field and press OK button
    • EXPECTED RESULT: MyConfiguration is created and selected in "Set Project Configuration" combobox on main IDE toolbar
  2. Modify the newly created comfiguration
    1. In Projects tree, right-click MobileApplication1 node and open the project properties
    2. In MobileApplication1 dialog, uncheck "Use Values from "DefaultConfiguration" ckeckbox
    3. Select DelaultCLDCPhone1 in Device combobox, press OK button
    • EXPECTED RESULT: Modifying of the configuration went smoothly
  3. Build many configurations of the CLDC project
    1. Right-click MobileApplication1 node in Projects tree and invoke "Batch Build" popup menu command
    2. In "Build Selected Project Configurations" dialog, check both DefaultConfiguration and MyConfiguration checkboxes and press OK
    3. Verify NetBeansProjects\MobileApplication1\dist folder contains the following files: MobileApplication1.jad, MobileApplication1.jar
    4. Verify NetBeansProjects\MobileApplication1\dist\MyConfiguration folder contains the following files: MobileApplication1.jad, MobileApplication1.jar
    • EXPECTED RESULT: Both configurations are built successfully
  4. Run different project configuratons in Emulator
    1. Make sure MyConfiguration is selected as current project configuration in combobox on main IDE toolbar
    2. Run the project
    3. Verify DefaultCldcPhone1 device emulator is executing the application
    4. Exit the emulator
    5. Select DefaultConfiguration as current project configuration in combobox on main IDE toolbar
    6. Run the project
    7. Verify ClamshellCldcPhone1 device emulator is executing the application
    8. Exit the emulator
    • EXPECTED RESULT: Both configurations are executed successfully


Test suite: Debugger

Purpose: Verify the functionality of the debugger in CLDC Project.
Setup: VMD project opened in the IDE.

  1. Set a breakpoint in MIDlet source
    1. Switch to HelloMIDlet.java
    2. Switch editor to Source view
    3. In java source editor, expand "Generated Method: startMIDlet" code folder
    4. Set breakpoint at line "switchDisplayable(null, getForm());"
    • EXPECTED RESULT: Breakpoint is successfully set
  2. Debug the project
    1. Press "Debug Project" button on main IDE toolbar
    • EXPECTED RESULT: The execution is stopped at the breakpoint
  3. Continue execution
    1. Press Continue button on the main IDE toolbar (Try the same also by using F5 shortcut)
    2. Exit the Emulator
    • EXPECTED RESULT: Execution can be stopped at breakpoint and then continued


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