TS 69 JavaFX Platforms

(Difference between revisions)
(Platforms Test Specification)
Line 8: Line 8:
__TOC__
__TOC__
 +
     
        
        
== Test suite: Creating Java FX SDK Platforms==
== Test suite: Creating Java FX SDK Platforms==
Line 15: Line 16:
=== {{testcase|Add a platform via menu}} ===
=== {{testcase|Add a platform via menu}} ===
      
      
-
* Invoke 'Tools | Java Platforms' from the main menu bar.  <pre>  </pre>
+
* Invoke 'Tools | Java Platforms' from the main menu bar.   
-
       
+
* Press Platform... button      
-
* Press Platform... button <pre>  </pre>
+
* Add Java Platform dialog appears         
-
       
+
* Select JavaFX Platform and press Next.         
-
* Add Java Platform dialog appears <pre>  </pre>
+
* Give it a name.         
-
          
+
* Leave Java Platform alone (defaults to IDE Java Platform) or set it to a specific Java Platform Version.         
-
* Select JavaFX Platform and press Next. <pre>  </pre>
+
* Browse for and select a JavaFX SDK Folder.         
-
          
+
* Press Finish         
-
* Give it a name. <pre>  </pre>
+
** {{result|EXPECTED RESULT: SDK should be recognized by javafx-sdk, not javafx-sdk/lib }}             
-
          
+
** {{result|EXPECTED RESULT: A new Platform should be added. }}             
-
* Leave Java Platform alone (defaults to IDE Java Platform) or set it to a specific Java Platform Version. <pre>  </pre>
+
** {{result|EXPECTED RESULT: This platform can be assigned to an existing project via project | Properties. }}             
-
          
+
** {{result|EXPECTED RESULT: On deploy as a webstart the .jars from the platform are deployed into the dist\lib directory - verify the contents of the .jars by dates of the files to be sure they are correct. }}  
-
* Browse for and select a JavaFX SDK Folder. <pre>  </pre>
+
-
          
+
-
* Press Finish <pre>  </pre>
+
-
          
+
-
** {{result|EXPECTED RESULT: SDK should be recognized by javafx-sdk, not javafx-sdk/lib }} <pre>  </pre>
+
-
              
+
-
** {{result|EXPECTED RESULT: A new Platform should be added. }} <pre>  </pre>
+
-
              
+
-
** {{result|EXPECTED RESULT: This platform can be assigned to an existing project via project | Properties. }} <pre>  </pre>
+
-
              
+
-
** {{result|EXPECTED RESULT: On deploy as a webstart the .jars from the platform are deployed into the dist\lib directory - verify the contents of the .jars by dates of the files to be sure they are correct. }} <pre>  </pre>
+
              
              
=== {{testcase|Add a platform via project}} ===
=== {{testcase|Add a platform via project}} ===
      
      
-
* Select an existing FX project <pre>  </pre>
+
* Select an existing FX project         
-
          
+
* right click         
-
* right click <pre>  </pre>
+
* Select properties.         
-
          
+
* Select the Libraries Category         
-
* Select properties. <pre>  </pre>
+
* Press Manage Platforms... button         
-
          
+
* Add Platform.         
-
* Select the Libraries Category <pre>  </pre>
+
*  dialog appears.         
-
          
+
* Select JavaFX Platform and press Next.         
-
* Press Manage Platforms... button <pre>  </pre>
+
* Give it a name.         
-
          
+
* Leave Java Platform alone.      
-
* Add Platform. <pre>  </pre>
+
* Browse for and select a JavaFX SDK Folder. (folder's \lib). Press Finish         
-
          
+
** {{result|EXPECTED RESULT: SDK should be recognized by javafx-sdk, not javafx-sdk/lib }}             
-
*  dialog appears. <pre>  </pre>
+
** {{result|EXPECTED RESULT: A new Platform should be added. }}             
-
          
+
** {{result|EXPECTED RESULT: This platform can be assigned to an existing project via project | Properties. }}             
-
* Select JavaFX Platform and press Next. <pre>  </pre>
+
** {{result|EXPECTED RESULT: On deploy as a webstart the .jars from the platform are deployed into the dist\lib directory - verify the contents of the .jars by dates of the files to be sure they are correct. }}  
-
          
+
-
* Give it a name. <pre>  </pre>
+
-
          
+
-
* Leave Java Platform alone. <pre>  </pre>
+
-
       
+
-
* Browse for and select a JavaFX SDK Folder. (folder's \lib). Press Finish <pre>  </pre>
+
-
          
+
-
** {{result|EXPECTED RESULT: SDK should be recognized by javafx-sdk, not javafx-sdk/lib }} <pre>  </pre>
+
-
              
+
-
** {{result|EXPECTED RESULT: A new Platform should be added. }} <pre>  </pre>
+
-
              
+
-
** {{result|EXPECTED RESULT: This platform can be assigned to an existing project via project | Properties. }} <pre>  </pre>
+
-
              
+
-
** {{result|EXPECTED RESULT: On deploy as a webstart the .jars from the platform are deployed into the dist\lib directory - verify the contents of the .jars by dates of the files to be sure they are correct. }} <pre>  </pre>
+
              
              
Line 75: Line 51:
=== {{testcase|It should be forbidden to create JavaFX Platform on top of JDK 5 or less}} ===
=== {{testcase|It should be forbidden to create JavaFX Platform on top of JDK 5 or less}} ===
      
      
-
* Start the IDE with FX plugin installed with JDK 1.5. <pre>  </pre>
+
* Start the IDE with FX plugin installed with JDK 1.5.         
-
          
+
* Create a new SDK using steps from previous test cases.         
-
* Create a new SDK using steps from previous test cases. <pre>  </pre>
+
* Create a project (use sample or create your own) that uses the new SDK.         
-
          
+
* Try to compile or run the project. See Result for First Time:         
-
* Create a project (use sample or create your own) that uses the new SDK. <pre>  </pre>
+
* Create a new SDK that points to JDK1.6 and uses the FX SDK (Note: The IDE should still be using JKD 1.5)         
-
          
+
* Create a project (use sample or create your own) that uses the new SDK or modify the existing application to use the new SDK.         
-
* Try to compile or run the project. See Result for First Time: <pre>  </pre>
+
* Try to compile or run the project. See Result for Second Time:         
-
          
+
** {{result|EXPECTED RESULT: First time you try to run you should get the message: "You are attempting to build JavaFX Application with JDK 5 (or less)." }}             
-
* Create a new SDK that points to JDK1.6 and uses the FX SDK (Note: The IDE should still be using JKD 1.5) <pre>  </pre>
+
** {{result|EXPECTED RESULT: The second time: The project should build/run without errors.  }}  
-
          
+
-
* Create a project (use sample or create your own) that uses the new SDK or modify the existing application to use the new SDK. <pre>  </pre>
+
-
          
+
-
* Try to compile or run the project. See Result for Second Time: <pre>  </pre>
+
-
          
+
-
** {{result|EXPECTED RESULT: First time you try to run you should get the message: "You are attempting to build JavaFX Application with JDK 5 (or less)." }} <pre>  </pre>
+
-
              
+
-
** {{result|EXPECTED RESULT: The second time: The project should build/run without errors.  }} <pre>  </pre>
+
              
              
<br>
<br>
Line 101: Line 69:
=== {{testcase|Delete default Platform}} ===
=== {{testcase|Delete default Platform}} ===
      
      
-
* Invoke 'Tools | Java Platforms' from the main menu bar. <pre>  </pre>
+
* Invoke 'Tools | Java Platforms' from the main menu bar.        
-
       
+
** {{result|EXPECTED RESULT: This should be ignored.  You should NOT be able to remove the default SDK. }}  
-
* . <pre>  </pre>
+
-
       
+
-
** {{result|EXPECTED RESULT: This should be ignored.  You should NOT be able to remove the default SDK. }} <pre>  </pre>
+
              
              
=== {{testcase|Projects using deleted SDK's should be re-configurable.}} ===
=== {{testcase|Projects using deleted SDK's should be re-configurable.}} ===
      
      
-
* Create a new SDK. <pre>  </pre>
+
* Create a new SDK.  
          
          
-
* Create a new project that uses the SDK. <pre>  </pre>
+
* Create a new project that uses the SDK.  
          
          
-
* Delete the SDK. <pre>  </pre>
+
* Delete the SDK.  
          
          
-
* Select the project. <pre>  </pre>
+
* Select the project.  
          
          
-
* Configure project properties. <pre>  </pre>
+
* Configure project properties.  
          
          
-
* Add new SDK. <pre>  </pre>
+
* Add new SDK.  
          
          
-
* Compile/run the project. <pre>  </pre>
+
* Compile/run the project.  
          
          
-
** {{result|EXPECTED RESULT: Deleting the SDK should cause the project to become invalid. }} <pre>  </pre>
+
** {{result|EXPECTED RESULT: Deleting the SDK should cause the project to become invalid. }}  
              
              
-
** {{result|EXPECTED RESULT: Creating a new SDK (or selecting a existing FX SDK) should make the project valid again. }} <pre>  </pre>
+
** {{result|EXPECTED RESULT: Creating a new SDK (or selecting a existing FX SDK) should make the project valid again. }}  
              
              
-
** {{result|EXPECTED RESULT: Project should compile/run correctly. }} <pre>  </pre>
+
** {{result|EXPECTED RESULT: Project should compile/run correctly. }}  
              
              
<br>
<br>
Line 137: Line 102:
=== {{testcase|Change project to new platform}} ===  
=== {{testcase|Change project to new platform}} ===  
      
      
-
* Add new SDK that points to different jdk. <pre>  </pre>
+
* Add new SDK that points to different jdk.  
          
          
-
* Right click project (newly created or old) &gt; Properties and change the SDK to the new one. <pre>  </pre>
+
* Right click project (newly created or old) &gt; Properties and change the SDK to the new one.  
          
          
-
* Compile/run. <pre>  </pre>
+
* Compile/run.  
          
          
-
** {{result|EXPECTED RESULT: Project libraries should be updated accordingly. }} <pre>  </pre>
+
** {{result|EXPECTED RESULT: Project libraries should be updated accordingly. }}  
              
              
<br>
<br>
Line 153: Line 118:
=== {{testcase|Install plugin without SDK, create project, build, install sdk build}} ===
=== {{testcase|Install plugin without SDK, create project, build, install sdk build}} ===
      
      
-
* Install plugin (without SDK). <pre>  </pre>
+
* Install plugin (without SDK).  
          
          
-
* Create a project. <pre>  </pre>
+
* Create a project.  
          
          
-
* Build it. <pre>  </pre>
+
* Build it.  
          
          
-
* Install SDK. <pre>  </pre>
+
* Install SDK.  
          
          
-
* Configure project to use SDK. <pre>  </pre>
+
* Configure project to use SDK.  
          
          
-
* Build it. <pre>  </pre>
+
* Build it.  
          
          
-
** {{result|EXPECTED RESULT: First build should fail, second should work without errors. }} <pre>  </pre>
+
** {{result|EXPECTED RESULT: First build should fail, second should work without errors. }}  
              
              
=== {{testcase|Install plugin without SDK, point to external sdk, build, run}}  ===
=== {{testcase|Install plugin without SDK, point to external sdk, build, run}}  ===
      
      
-
* Install plugin (without SDK). <pre>  </pre>
+
* Install plugin (without SDK).  
          
          
-
* Create a project. <pre>  </pre>
+
* Create a project.  
          
          
-
* Add external to IDE SDK. <pre>  </pre>
+
* Add external to IDE SDK.  
          
          
-
* Configure project to point to external sdk. <pre>  </pre>
+
* Configure project to point to external sdk.  
          
          
-
* Build it.. <pre>  </pre>
+
* Build it..  
          
          
-
** {{result|EXPECTED RESULT: Project should run properly with external SDK. }} <pre>  </pre>
+
** {{result|EXPECTED RESULT: Project should run properly with external SDK. }}  
              
              
<br>
<br>
Line 189: Line 154:
=== {{testcase|Load a project from the previous release or build and confirm that SDK can be used}} ===
=== {{testcase|Load a project from the previous release or build and confirm that SDK can be used}} ===
      
      
-
* Open stored project. <pre>  </pre>
+
* Open stored project.  
          
          
-
* Configure it to use SDK (if applicable). <pre>  </pre>
+
* Configure it to use SDK (if applicable).  
          
          
-
* Build/Run. (May need to clean first) <pre>  </pre>
+
* Build/Run. (May need to clean first)  
          
          
-
** {{result|EXPECTED RESULT: Changing to SDK should be error free. }} <pre>  </pre>
+
** {{result|EXPECTED RESULT: Changing to SDK should be error free. }}  
              
              
-
** {{result|EXPECTED RESULT: Application should build/run error free. }} <pre>  </pre>
+
** {{result|EXPECTED RESULT: Application should build/run error free. }}  
              
              
<br>
<br>
Line 207: Line 172:
=== {{testcase|Uninstall the SDK plugin via plugin manager}} ===
=== {{testcase|Uninstall the SDK plugin via plugin manager}} ===
      
      
-
* Tools &gt; Plugins. <pre>  </pre>
+
* Tools &gt; Plugins.  
          
          
-
* Installed Tab. <pre>  </pre>
+
* Installed Tab.  
          
          
-
* Select JavaFX SDK For Windows (or your platform). <pre>  </pre>
+
* Select JavaFX SDK For Windows (or your platform).  
          
          
-
* Press Uninstall button. <pre>  </pre>
+
* Press Uninstall button.  
          
          
-
** {{result|EXPECTED RESULT: Plugin should be uninstalled - IDE should restart. }} <pre>  </pre>
+
** {{result|EXPECTED RESULT: Plugin should be uninstalled - IDE should restart. }}  
              
              
-
** {{result|EXPECTED RESULT: Other plugins should not be affected. }} <pre>  </pre>
+
** {{result|EXPECTED RESULT: Other plugins should not be affected. }}  
              
              
-
** {{result|EXPECTED RESULT: Tools &gt; Java Platforms should no longer show reference to removed SDK. }} <pre>  </pre>
+
** {{result|EXPECTED RESULT: Tools &gt; Java Platforms should no longer show reference to removed SDK. }}  
              
              
-
** {{result|EXPECTED RESULT: Existing projects should show missing reference if they pointed to the SDK. }} <pre>  </pre>
+
** {{result|EXPECTED RESULT: Existing projects should show missing reference if they pointed to the SDK. }}  
              
              
-
** {{result|EXPECTED RESULT: Plugin should be available for re-installation. }} <pre>  </pre>
+
** {{result|EXPECTED RESULT: Plugin should be available for re-installation. }}  
              
              
<br>
<br>
Line 233: Line 198:
=== {{testcase|non-gui way of setting default}} ===
=== {{testcase|non-gui way of setting default}} ===
      
      
-
* Set the IDE's default platform by running the IDE with the --jdkhome swith on the command line or by entering the path to the JDK in the netbeans_j2sdkhome property of your INSTALLATION_DIRECTORY/etc/netbeans.conf file. <pre>  </pre>
+
* Set the IDE's default platform by running the IDE with the --jdkhome swith on the command line or by entering the path to the JDK in the netbeans_j2sdkhome property of your INSTALLATION_DIRECTORY/etc/netbeans.conf file.  
          
          
-
** {{result|EXPECTED RESULT: When you create a new project the SDK should point to the specified location. }} <pre>  </pre>
+
** {{result|EXPECTED RESULT: When you create a new project the SDK should point to the specified location. }}  
              
              
=== {{testcase|GUI way of setting default - Note: this does not exist, RFE needed}}  ===
=== {{testcase|GUI way of setting default - Note: this does not exist, RFE needed}}  ===
      
      
-
* NA.  This is not possible at this time. <pre>  </pre>
+
* NA.  This is not possible at this time.  
          
          
-
** {{result|EXPECTED RESULT: . }} <pre>  </pre>
+
** {{result|EXPECTED RESULT: . }}  
-
           
+
-
<br>
+
-
 
+
              
              
<br>
<br>

Revision as of 10:48, 4 August 2010

Platforms Test Specification

Author: Lark Fitzgerald
Version: 1.2
Last update: 04 August 2010
Introduction: The Java FX SDK Platform
Comments:


Contents


Test suite: Creating Java FX SDK Platforms

Purpose: Verify that the FX SDK can be added and used with a FX project.
Setup: Install the JavaFX Plugin

Add a platform via menu

  • Invoke 'Tools | Java Platforms' from the main menu bar.
  • Press Platform... button
  • Add Java Platform dialog appears
  • Select JavaFX Platform and press Next.
  • Give it a name.
  • Leave Java Platform alone (defaults to IDE Java Platform) or set it to a specific Java Platform Version.
  • Browse for and select a JavaFX SDK Folder.
  • Press Finish
    • EXPECTED RESULT: SDK should be recognized by javafx-sdk, not javafx-sdk/lib
    • EXPECTED RESULT: A new Platform should be added.
    • EXPECTED RESULT: This platform can be assigned to an existing project via project
    • EXPECTED RESULT: On deploy as a webstart the .jars from the platform are deployed into the dist\lib directory - verify the contents of the .jars by dates of the files to be sure they are correct.

Add a platform via project

  • Select an existing FX project
  • right click
  • Select properties.
  • Select the Libraries Category
  • Press Manage Platforms... button
  • Add Platform.
  • dialog appears.
  • Select JavaFX Platform and press Next.
  • Give it a name.
  • Leave Java Platform alone.
  • Browse for and select a JavaFX SDK Folder. (folder's \lib). Press Finish
    • EXPECTED RESULT: SDK should be recognized by javafx-sdk, not javafx-sdk/lib
    • EXPECTED RESULT: A new Platform should be added.
    • EXPECTED RESULT: This platform can be assigned to an existing project via project
    • EXPECTED RESULT: On deploy as a webstart the .jars from the platform are deployed into the dist\lib directory - verify the contents of the .jars by dates of the files to be sure they are correct.


It should be forbidden to create JavaFX Platform on top of JDK 5 or less

  • Start the IDE with FX plugin installed with JDK 1.5.
  • Create a new SDK using steps from previous test cases.
  • Create a project (use sample or create your own) that uses the new SDK.
  • Try to compile or run the project. See Result for First Time:
  • Create a new SDK that points to JDK1.6 and uses the FX SDK (Note: The IDE should still be using JKD 1.5)
  • Create a project (use sample or create your own) that uses the new SDK or modify the existing application to use the new SDK.
  • Try to compile or run the project. See Result for Second Time:
    • EXPECTED RESULT: First time you try to run you should get the message: "You are attempting to build JavaFX Application with JDK 5 (or less)."
    • EXPECTED RESULT: The second time: The project should build/run without errors.


Test suite: Deleting Java FX SDK Platforms

Purpose:
Setup:

Delete default Platform

  • Invoke 'Tools | Java Platforms' from the main menu bar.
    • EXPECTED RESULT: This should be ignored. You should NOT be able to remove the default SDK.

Projects using deleted SDK's should be re-configurable.

  • Create a new SDK.
  • Create a new project that uses the SDK.
  • Delete the SDK.
  • Select the project.
  • Configure project properties.
  • Add new SDK.
  • Compile/run the project.
    • EXPECTED RESULT: Deleting the SDK should cause the project to become invalid.
    • EXPECTED RESULT: Creating a new SDK (or selecting a existing FX SDK) should make the project valid again.
    • EXPECTED RESULT: Project should compile/run correctly.


Test suite: Changing project SDK Platforms

Purpose:
Setup:

Change project to new platform

  • Add new SDK that points to different jdk.
  • Right click project (newly created or old) > Properties and change the SDK to the new one.
  • Compile/run.
    • EXPECTED RESULT: Project libraries should be updated accordingly.


Test suite: Adding SDK Platform after project Creation

Purpose:
Setup:

Install plugin without SDK, create project, build, install sdk build

  • Install plugin (without SDK).
  • Create a project.
  • Build it.
  • Install SDK.
  • Configure project to use SDK.
  • Build it.
    • EXPECTED RESULT: First build should fail, second should work without errors.

Install plugin without SDK, point to external sdk, build, run

  • Install plugin (without SDK).
  • Create a project.
  • Add external to IDE SDK.
  • Configure project to point to external sdk.
  • Build it..
    • EXPECTED RESULT: Project should run properly with external SDK.


Test suite: Backwards Compatibility

Purpose: Sometimes the build.properties gets changed for fixes in ways that is not backwards compatible. Need to make sure that these changes are caught and backwards compatibility is not lost.
Setup: Load old stored projects from previous releases

Load a project from the previous release or build and confirm that SDK can be used

  • Open stored project.
  • Configure it to use SDK (if applicable).
  • Build/Run. (May need to clean first)
    • EXPECTED RESULT: Changing to SDK should be error free.
    • EXPECTED RESULT: Application should build/run error free.


Test suite: Uninstalling the Java FX SDK

Purpose: The SDK is a module like the FX plugin and can be uninstalled separately.
Setup: .

Uninstall the SDK plugin via plugin manager

  • Tools > Plugins.
  • Installed Tab.
  • Select JavaFX SDK For Windows (or your platform).
  • Press Uninstall button.
    • EXPECTED RESULT: Plugin should be uninstalled - IDE should restart.
    • EXPECTED RESULT: Other plugins should not be affected.
    • EXPECTED RESULT: Tools > Java Platforms should no longer show reference to removed SDK.
    • EXPECTED RESULT: Existing projects should show missing reference if they pointed to the SDK.
    • EXPECTED RESULT: Plugin should be available for re-installation.


Test suite: Setting SDK as default.

Purpose: Verify that you can set an SDK as the default.
Setup: .

non-gui way of setting default

  • Set the IDE's default platform by running the IDE with the --jdkhome swith on the command line or by entering the path to the JDK in the netbeans_j2sdkhome property of your INSTALLATION_DIRECTORY/etc/netbeans.conf file.
    • EXPECTED RESULT: When you create a new project the SDK should point to the specified location.

GUI way of setting default - Note: this does not exist, RFE needed

  • NA. This is not possible at this time.
    • EXPECTED RESULT: .


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