TS 69 JavaFX MobileEmulator

(Difference between revisions)
(Created page with '==Mobile Emulator Tests Specification== '''Author:''' [mailto:sunflower@netbeans.org Alexandr Scherbatiy] <br> '''Version:''' 1.0 <br> '''Last update:''' 1 October 2009 <br> '''I…')
(Mobile Emulator Tests Specification)
 
(3 intermediate revisions not shown)
Line 1: Line 1:
==Mobile Emulator Tests Specification==
==Mobile Emulator Tests Specification==
'''Author:''' [mailto:sunflower@netbeans.org Alexandr Scherbatiy] <br>
'''Author:''' [mailto:sunflower@netbeans.org Alexandr Scherbatiy] <br>
-
'''Version:''' 1.0 <br>
+
'''Version:''' 1.1 <br>
-
'''Last update:''' 1 October 2009 <br>
+
'''Last update:''' 4 August  2010 <br>
'''Introduction:''' The purpose of the specification is to test running JavaFX Script projects and debugging code in Mobile Emulator. <br>
'''Introduction:''' The purpose of the specification is to test running JavaFX Script projects and debugging code in Mobile Emulator. <br>
'''Comments:'''  <br>       
'''Comments:'''  <br>       
Line 9: Line 9:
__TOC__
__TOC__
        
        
-
====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.  <br>
 
-
Setup:  Tested platforms: Windows XP. <br>
 
      
      
-
# {{testcase|Create New JavaFX Project}}
+
=== {{testcase|Create New JavaFX Project}} ===
      
      
-
## Invoke 'File | New Project...' from the main menu bar.  <pre>  </pre>
+
* Invoke 'File | New Project...' from the main menu bar.   
          
          
-
## Under Categories, select JavaFX. <pre>  </pre>
+
* Under Categories, select JavaFX.  
          
          
-
## Under Projects, select JavaFX Script Application. <pre>  </pre>
+
* Under Projects, select JavaFX Script Application.  
          
          
-
## Click Next. <pre>  </pre>
+
* Click Next.  
          
          
-
## In the Project Name field, type JavaFXMobileApp. <pre>  </pre>
+
* In the Project Name field, type JavaFXMobileApp.  
          
          
-
## Click Finish. <pre>  </pre>
+
* Click Finish.  
          
          
-
#* {{result|EXPECTED RESULT: JavaFXMobileApp should be created in the Projects window. }} <pre>  </pre>
+
* {{result|EXPECTED RESULT: JavaFXMobileApp should be created in the Projects window. }}  
              
              
-
#* {{result|EXPECTED RESULT: Main JavaFX file should be opened. }} <pre>  </pre>
+
* {{result|EXPECTED RESULT: Main JavaFX file should be opened. }}  
              
              
-
#* {{result|EXPECTED RESULT: Main JavaFX file should contain a simple Stage example. }} <pre>  </pre>
+
* {{result|EXPECTED RESULT: Main JavaFX file should contain a simple Stage example. }}  
              
              
-
# {{testcase|Run Project in Mobile Emulator}}
+
=== {{testcase|Run Project in Mobile Emulator}} ===
      
      
-
## Invoke '' Properties '' on project node. <pre>  </pre>
+
* Invoke '' Properties '' on project node.  
          
          
-
## Select '' Run '' under categories. <pre>  </pre>
+
* Select '' Run '' under categories.  
          
          
-
## Select '' Run in Mobile Emulator '' check box. <pre>  </pre>
+
* Select '' Run in Mobile Emulator '' check box.  
          
          
-
## Press '' OK ''. <pre>  </pre>
+
* Press '' OK ''.  
          
          
-
## Invoke ''Run Project'' on the project node. <pre>  </pre>
+
* Invoke ''Run Project'' on the project node.  
          
          
-
#* {{result|EXPECTED RESULT: JavaFX SDK Manager should start. }} <pre>  </pre>
+
* {{result|EXPECTED RESULT: JavaFX SDK Manager should start. }}  
              
              
-
#* {{result|EXPECTED RESULT: Default FX Phone window should appear. }} <pre>  </pre>
+
* {{result|EXPECTED RESULT: Default FX Phone window should appear. }}  
              
              
-
#* {{result|EXPECTED RESULT:  Application should be started in the Mobile Emulator. }} <pre>  </pre>
+
* {{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}} ===
      
      
-
## Go to the editor. <pre>  </pre>
+
* Go to the editor.  
          
          
-
## Update Text content to "Hello World!".  <pre>  </pre>
+
* Update Text content to "Hello World!".   
          
          
-
## Invoke ''Run Project'' on the project node. <pre>  </pre>
+
* Invoke ''Run Project'' on the project node.  
          
          
-
#* {{result|EXPECTED RESULT: Application should show text "Hellow World" in the Mobile Emulator. }} <pre>  </pre>
+
* {{result|EXPECTED RESULT: Application should show text "Hellow World" in the Mobile Emulator. }}  
              
              
-
# {{testcase|Debug Project}}
+
=== {{testcase|Debug Project}} ===
      
      
-
## Create a JavaFX Script application. <pre>  </pre>
+
* Create a JavaFX Script application.  
          
          
-
## Invoke '' Properties '' on project node. <pre>  </pre>
+
* Invoke '' Properties '' on project node.  
          
          
-
## Select '' Run '' under categories. <pre>  </pre>
+
* Select '' Run '' under categories.  
          
          
-
## Select '' Run in Mobile Emulator '' check box. <pre>  </pre>
+
* Select '' Run in Mobile Emulator '' check box.  
          
          
-
## Press '' OK ''. <pre>  </pre>
+
* Press '' OK ''.  
          
          
-
## Copy the code to the editor:
+
* Copy the code to the editor:
<pre>   
<pre>   
var a = 10;
var a = 10;
Line 85: Line 81:
var c = add(a,b);  </pre>
var c = add(a,b);  </pre>
          
          
-
## Set a breakpoint to '''b''' variable. <pre>  </pre>
+
* Set a breakpoint to '''b''' variable.  
          
          
-
## Set a breakpoint to '''add''' function. <pre>  </pre>
+
* Set a breakpoint to '''add''' function.  
          
          
-
## Start Debugger (Press Ctrl+F5). <pre>  </pre>
+
* Start Debugger (Press Ctrl+F5).  
          
          
-
## Continue Debugging (Press F5). <pre>  </pre>
+
* Continue Debugging (Press F5).  
          
          
-
#* {{result|EXPECTED RESULT:  Debugger should stop on 'b' variable. }} <pre>  </pre>
+
* {{result|EXPECTED RESULT:  Debugger should stop on 'b' variable. }}  
              
              
-
#* {{result|EXPECTED RESULT:  Debugger should stop on 'add' function. }} <pre>  </pre>
+
* {{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. }} <pre>  </pre>
+
* {{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