TS 69 JavaFX Platforms

Revision as of 10:45, 4 August 2010 by Sunflower (Talk | contribs)

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