TS 68 JavaFX MobileEmulator

Mobile Emulator Tests Specification

Author: Alexandr Scherbatiy
Version: 1.0
Last update: 1 October 2009
Introduction: The purpose of the specification is to test running JavaFX Script projects and debugging code in Mobile Emulator.
Comments:


Contents


Test suite: Mobile Emulator

Purpose: Check that JavaFX Script projects start in Mobile Emulator.

    Check that Debugger works when a project has Run in Mobile Emulator settings.  

Setup: Tested platforms: Windows XP.

  1. Create New JavaFX Project
    1. Invoke 'File | New Project...' from the main menu bar.
        
    1. Under Categories, select JavaFX.
        
    1. Under Projects, select JavaFX Script Application.
        
    1. Click Next.
        
    1. In the Project Name field, type JavaFXMobileApp.
        
    1. Click Finish.
        
    • EXPECTED RESULT: JavaFXMobileApp should be created in the Projects window.
        
    • EXPECTED RESULT: Main JavaFX file should be opened.
        
    • EXPECTED RESULT: Main JavaFX file should contain a simple Stage example.
        
  1. Run Project in Mobile Emulator
    1. Invoke Properties on project node.
        
    1. Select Run under categories.
        
    1. Select Run in Mobile Emulator check box.
        
    1. Press OK .
        
    1. Invoke Run Project on the project node.
        
    • EXPECTED RESULT: JavaFX SDK Manager should start.
        
    • EXPECTED RESULT: Default FX Phone window should appear.
        
    • EXPECTED RESULT: Application should be started in the Mobile Emulator.
        
  1. Run Updated Project in Mobile Emulator
    1. Go to the editor.
        
    1. Update Text content to "Hello World!".
        
    1. Invoke Run Project on the project node.
        
    • EXPECTED RESULT: Application should show text "Hellow World" in the Mobile Emulator.
        
  1. Debug Project
    1. Create a JavaFX Script application.
        
    1. Invoke Properties on project node.
        
    1. Select Run under categories.
        
    1. Select Run in Mobile Emulator check box.
        
    1. Press OK .
        
    1. Copy the code to the editor:
   
var a = 10;
var b = 20;

function add(x:Number, y:Number): Number{
    return x + y;
}

var c = add(a,b);   
    1. Set a breakpoint to b variable.
        
    1. Set a breakpoint to add function.
        
    1. Start Debugger (Press Ctrl+F5).
        
    1. Continue Debugging (Press F5).
        
    • EXPECTED RESULT: Debugger should stop on 'b' variable.
        
    • EXPECTED RESULT: Debugger should stop on 'add' function.
        
    • EXPECTED RESULT: Breakpoints window should contain 'method add' and 'field b access or modification' lines.
        


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