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:
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.
- Invoke 'Tools | Java Platforms' from the main menu bar.
- Press Platform... button
- Press Platform... button
- Add Java Platform dialog appears
- Add Java Platform dialog appears
- Select JavaFX Platform and press Next.
- Select JavaFX Platform and press Next.
- Give it a name.
- Give it a name.
- Leave Java Platform alone (defaults to IDE Java Platform) or set it to a specific Java Platform Version.
- 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.
- Browse for and select a JavaFX SDK Folder.
- Press Finish
- Press Finish
- EXPECTED RESULT: SDK should be recognized by javafx-sdk, not javafx-sdk/lib
- EXPECTED RESULT: SDK should be recognized by javafx-sdk, not javafx-sdk/lib
- EXPECTED RESULT: A new Platform should be added.
- EXPECTED RESULT: A new Platform should be added.
- EXPECTED RESULT: This platform can be assigned to an existing project via project
- 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.
- 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
- Select an existing FX project
- right click
- right click
- Select properties.
- Select properties.
- Select the Libraries Category
- Select the Libraries Category
- Press Manage Platforms... button
- Press Manage Platforms... button
- Add Platform.
- Add Platform.
- dialog appears.
- dialog appears.
- Select JavaFX Platform and press Next.
- Select JavaFX Platform and press Next.
- Give it a name.
- Give it a name.
- Leave Java Platform alone.
- Leave Java Platform alone.
- Browse for and select a JavaFX SDK Folder. (folder's \lib). Press Finish
- 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: SDK should be recognized by javafx-sdk, not javafx-sdk/lib
- EXPECTED RESULT: A new Platform should be added.
- EXPECTED RESULT: A new Platform should be added.
- EXPECTED RESULT: This platform can be assigned to an existing project via project
- 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.
- 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.
- 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.
- Create a project (use sample or create your own) that uses the new SDK.
- 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:
- 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 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.
- 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:
- 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: 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.
- 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.
- 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.
- 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 SDK.
- Create a new project that uses the SDK.
- Create a new project that uses the SDK.
- Delete the SDK.
- Delete the SDK.
- Select the project.
- Select the project.
- Configure project properties.
- Configure project properties.
- Add new SDK.
- Add new SDK.
- Compile/run the project.
- Compile/run the project.
- EXPECTED RESULT: Deleting the SDK should cause the project to become invalid.
- 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: Creating a new SDK (or selecting a existing FX SDK) should make the project valid again.
- EXPECTED RESULT: Project should compile/run correctly.
- 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.
- Add new SDK that points to different jdk.
- Right click project (newly created or old) > Properties and change the SDK to the new one.
- Right click project (newly created or old) > Properties and change the SDK to the new one.
- Compile/run.
- Compile/run.
- EXPECTED RESULT: Project libraries should be updated accordingly.
- 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).
- Install plugin (without SDK).
- Create a project.
- Create a project.
- Build it.
- Build it.
- Install SDK.
- Install SDK.
- Configure project to use SDK.
- Configure project to use SDK.
- Build it.
- Build it.
- EXPECTED RESULT: First build should fail, second should work without errors.
- 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).
- Install plugin (without SDK).
- Create a project.
- Create a project.
- Add external to IDE SDK.
- Add external to IDE SDK.
- Configure project to point to external sdk.
- Configure project to point to external sdk.
- Build it..
- Build it..
- EXPECTED RESULT: Project should run properly with external SDK.
- 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.
- Open stored project.
- Configure it to use SDK (if applicable).
- Configure it to use SDK (if applicable).
- Build/Run. (May need to clean first)
- Build/Run. (May need to clean first)
- EXPECTED RESULT: Changing to SDK should be error free.
- EXPECTED RESULT: Changing to SDK should be error free.
- EXPECTED RESULT: Application should build/run 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.
- Tools > Plugins.
- Installed Tab.
- Installed Tab.
- Select JavaFX SDK For Windows (or your platform).
- Select JavaFX SDK For Windows (or your platform).
- Press Uninstall button.
- Press Uninstall button.
- EXPECTED RESULT: Plugin should be uninstalled - IDE should restart.
- EXPECTED RESULT: Plugin should be uninstalled - IDE should restart.
- EXPECTED RESULT: Other plugins should not be affected.
- EXPECTED RESULT: Other plugins should not be affected.
- EXPECTED RESULT: Tools > Java Platforms should no longer show reference to removed SDK.
- 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: Existing projects should show missing reference if they pointed to the SDK.
- EXPECTED RESULT: Plugin should be available for re-installation.
- 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.
- 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.
- 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.
- NA. This is not possible at this time.
- EXPECTED RESULT: .
- EXPECTED RESULT: .