TS 69 JavaFX MobileEmulator

(Difference between revisions)
(Mobile Emulator Tests Specification)
({{testcase|Create New JavaFX Project}})
Line 24: Line 24:
* Click Finish.  
* Click Finish.  
          
          
-
** {{result|EXPECTED RESULT: JavaFXMobileApp should be created in the Projects window. }}  
+
* {{result|EXPECTED RESULT: JavaFXMobileApp should be created in the Projects window. }}  
              
              
-
** {{result|EXPECTED RESULT: Main JavaFX file should be opened. }}
+
* {{result|EXPECTED RESULT: Main JavaFX file should be opened. }}  
-
           
+
-
** {{result|EXPECTED RESULT: Main JavaFX file should contain a simple Stage example. }}  
+
              
              
 +
* {{result|EXPECTED RESULT: Main JavaFX file should contain a simple Stage example. }}
 +
=== {{testcase|Run Project in Mobile Emulator}} ===
=== {{testcase|Run Project in Mobile Emulator}} ===
      
      

Revision as of 10:54, 4 August 2010

Mobile Emulator Tests Specification

Author: Alexandr Scherbatiy
Version: 1.1
Last update: 4 August 2010
Introduction: The purpose of the specification is to test running JavaFX Script projects and debugging code in Mobile Emulator.
Comments:


Contents


Create New JavaFX Project

  • Invoke 'File | New Project...' from the main menu bar.
  • Under Categories, select JavaFX.
  • Under Projects, select JavaFX Script Application.
  • Click Next.
  • In the Project Name field, type JavaFXMobileApp.
  • 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.

Run Project in Mobile Emulator

  • Invoke Properties on project node.
  • Select Run under categories.
  • Select Run in Mobile Emulator check box.
  • Press OK .
  • 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.

Run Updated Project in Mobile Emulator

  • Go to the editor.
  • Update Text content to "Hello World!".
  • Invoke Run Project on the project node.
    • EXPECTED RESULT: Application should show text "Hellow World" in the Mobile Emulator.

Debug Project

  • Create a JavaFX Script application.
  • Invoke Properties on project node.
  • Select Run under categories.
  • Select Run in Mobile Emulator check box.
  • Press OK .
  • 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);   
  • Set a breakpoint to b variable.
  • Set a breakpoint to add function.
  • Start Debugger (Press Ctrl+F5).
  • 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