TS 68 JavaFX Platforms

Platforms Test Specification

Author: Lark Fitzgerald
Version: 1.1
Last update: 01 September 2009
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

  1. Add a platform via menu
    1. Invoke 'Tools | Java Platforms' from the main menu bar.
        
    1. Press Platform... button
        
    1. Add Java Platform dialog appears
        
    1. Select JavaFX Platform and press Next.
        
    1. Give it a name.
        
    1. Leave Java Platform alone (defaults to IDE Java Platform) or set it to a specific Java Platform Version.
        
    1. Browse for and select a JavaFX SDK Folder.
        
    1. 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.
        
  1. Add a platform via project
    1. Select an existing FX project
        
    1. right click
        
    1. Select properties.
        
    1. Select the Libraries Category
        
    1. Press Manage Platforms... button
        
    1. Add Platform.
        
    1. dialog appears.
        
    1. Select JavaFX Platform and press Next.
        
    1. Give it a name.
        
    1. Leave Java Platform alone.
        
    1. 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.
        
  1. It should be forbidden to create JavaFX Platform on top of JDK 5 or less
    1. Start the IDE with FX plugin installed with JDK 1.5.
        
    1. Create a new SDK using steps from previous test cases.
        
    1. Create a project (use sample or create your own) that uses the new SDK.
        
    1. Try to compile or run the project. See Result for First Time:
        
    1. Create a new SDK that points to JDK1.6 and uses the FX SDK (Note: The IDE should still be using JKD 1.5)
        
    1. Create a project (use sample or create your own) that uses the new SDK or modify the existing application to use the new SDK.
        
    1. 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:

  1. Delete default Platform
    1. Invoke 'Tools | Java Platforms' from the main menu bar.
        
    1. .
        
    • EXPECTED RESULT: This should be ignored. You should NOT be able to remove the default SDK.
        
  1. Projects using deleted SDK's should be re-configurable.
    1. Create a new SDK.
        
    1. Create a new project that uses the SDK.
        
    1. Delete the SDK.
        
    1. Select the project.
        
    1. Configure project properties.
        
    1. Add new SDK.
        
    1. 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:

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


Test suite: Adding SDK Platform after project Creation

Purpose:
Setup:

  1. Install plugin without SDK, create project, build, install sdk build
    1. Install plugin (without SDK).
        
    1. Create a project.
        
    1. Build it.
        
    1. Install SDK.
        
    1. Configure project to use SDK.
        
    1. Build it.
        
    • EXPECTED RESULT: First build should fail, second should work without errors.
        
  1. Install plugin without SDK, point to external sdk, build, run
    1. Install plugin (without SDK).
        
    1. Create a project.
        
    1. Add external to IDE SDK.
        
    1. Configure project to point to external sdk.
        
    1. 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

  1. Load a project from the previous release or build and confirm that SDK can be used
    1. Open stored project.
        
    1. Configure it to use SDK (if applicable).
        
    1. 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: .

  1. Uninstall the SDK plugin via plugin manager
    1. Tools > Plugins.
        
    1. Installed Tab.
        
    1. Select JavaFX SDK For Windows (or your platform).
        
    1. 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: .

  1. non-gui way of setting default
    1. 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.
        
  1. GUI way of setting default - Note: this does not exist, RFE needed
    1. 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