TS 69 JavaFX MobileEmulator

(Difference between revisions)
({{testcase|Create New JavaFX Project}})
(Mobile Emulator Tests Specification)
 
Line 9: Line 9:
__TOC__
__TOC__
        
        
-
 
+
   
=== {{testcase|Create New JavaFX Project}}  ===
=== {{testcase|Create New JavaFX Project}}  ===
      
      
Line 28: Line 28:
* {{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}} ===
      
      
Line 42: Line 42:
* Invoke ''Run Project'' on the project node.  
* Invoke ''Run Project'' on the project node.  
          
          
-
** {{result|EXPECTED RESULT: JavaFX SDK Manager should start. }}  
+
* {{result|EXPECTED RESULT: JavaFX SDK Manager should start. }}  
              
              
-
** {{result|EXPECTED RESULT: Default FX Phone window should appear. }}  
+
* {{result|EXPECTED RESULT: Default FX Phone window should appear. }}  
              
              
-
** {{result|EXPECTED RESULT:  Application should be started in the Mobile Emulator. }}  
+
* {{result|EXPECTED RESULT:  Application should be started in the Mobile Emulator. }}  
              
              
=== {{testcase|Run Updated Project in Mobile Emulator}} ===
=== {{testcase|Run Updated Project in Mobile Emulator}} ===
Line 56: Line 56:
* Invoke ''Run Project'' on the project node.  
* Invoke ''Run Project'' on the project node.  
          
          
-
** {{result|EXPECTED RESULT: Application should show text "Hellow World" in the Mobile Emulator. }}  
+
* {{result|EXPECTED RESULT: Application should show text "Hellow World" in the Mobile Emulator. }}  
              
              
=== {{testcase|Debug Project}} ===
=== {{testcase|Debug Project}} ===
Line 89: Line 89:
* Continue Debugging (Press F5).  
* Continue Debugging (Press F5).  
          
          
-
** {{result|EXPECTED RESULT:  Debugger should stop on 'b' variable. }}  
+
* {{result|EXPECTED RESULT:  Debugger should stop on 'b' variable. }}  
              
              
-
** {{result|EXPECTED RESULT:  Debugger should stop on 'add' function. }}  
+
* {{result|EXPECTED RESULT:  Debugger should stop on 'add' function. }}  
              
              
-
** {{result|EXPECTED RESULT:  Breakpoints window should contain 'method add' and 'field b access or modification' lines. }}  
+
* {{result|EXPECTED RESULT:  Breakpoints window should contain 'method add' and 'field b access or modification' lines. }}  
              
              
<br>
<br>

Current revision as of 10:55, 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