TS 72 JavaFX2

JavaFX2 Support Test Specification for NetBeans 7.2

Author: Štěpán Žebra
Version: 2.1
Last update: 14.6.2012
Introduction: JavaFX2 is the next step in the evolution of Java as a rich client platform. It is designed to provide a lightweight, hardware-accelerated Java UI platform for enterprise and business applications. This document describes how JavaFX2 support module should be tested in order to know whether all of its functionality works correctly.
Comments: This document is heavily based on TS_71_JavaFX2 which is now obsolete.

Contents


Compatibility Table

Table shows all possible combinations of JDK and JavaFX2 SDK and how they should run in NetBeans. They all should work the same regardless of which Java version is used to run NetBeans itself (any of Java 6 or 7, 32bit or 64bit). - issue 202165, issue 212058

JDK type FX SDK type compatible runs manual setting autodetection
6 32bit 2 32bit yes yes possible possible
6 32bit 2 64bit no no possible possible
6 64bit 2 32bit no no possible possible
6 64bit 2 64bit yes yes possible possible
7 32bit 2 32bit yes yes possible possible
7 32bit 2 64bit no no possible possible
7 64bit 2 32bit no no possible possible
7 64bit 2 64bit yes yes possible possible

Test suite: Activating JavaFX2 support

Purpose: Test whether JavaFX2 support activation works correctly from various entry points.
Setup: Compatible JavaFX2 SDK installed.

  1. Activating by creating FX Project
    1. Start IDE with fresh userdir.
    2. Invoke File | New Project... from main menu. "New Project" wizard shows up.
    3. In the first step of the wizard select "JavaFX" category and "JavaFX Application" project. Push Next > button.
    • EXPECTED RESULT: "Activating Java SE, Testing Tools, JavaFX 2" progress bar shows up for a moment and then the wizard continues with it's second step. Verify in Plugins manager, that JavaSE and JavaFX2 are activated.
  2. Activating by creating FX Sample
    1. Start IDE with fresh userdir.
    2. On the "Start Page", in "Learn & Discover" tab, press Try a Sample Project button.
    3. "New Project" wizard shows up with "Samples" category opened. Select the "JavaFX" subcategory.
    4. Select some sample project and push Next > button.
    • EXPECTED RESULT: "Activating Java SE, Testing Tools, JavaFX 2" progress bar shows up for a moment and then the wizard continues with it's second step. Verify in Plugins manager, that JavaSE and JavaFX2 are activated.
  3. Activating in Plugins manager - issue 202655
    1. Start IDE with fresh userdir.
    2. Invoke Tools | Plugins from main menu. "Plugins" manager shows up.
    3. Select "Installed" tab and tick "Show details" checkbox.
    4. Find the "JavaFX 2 Support" and "JavaFX 2 Scene Builder", tick them and push Activate button.
    5. "NetBeans IDE Installer" wizard shows up with a list of plugins for activation. Push Activate.
    6. Wait for the task to finish and then press Finish.
    • EXPECTED RESULT: JavaFX and JavaSE are now marked as activated. In New Project wizard, project templates in "Java" and "JavaFX" categories and samples for those categories are not grayed out and no activation is invoked upon creation of these projects.
  4. Activating by opening FX Project
    1. Start IDE with fresh userdir.
    2. Invoke File | Open Project... from main menu. "Open Project" wizard shows up.
    3. Browse to some previously created JavaFX2 project, select it and push Open Project button.
    • EXPECTED RESULT: Project is opened and JavaSE with JavaFX support are activated. Verify in Plugins manager.


Test suite: Managing JavaFX2 Platform

Purpose: Test whether the JavaFX2 SDK can set up for a use in the IDE.
Setup: Compatible JavaFX2 SDK installed.

  1. Automatic JavaFX Platform detection I (Project)
    1. Start IDE with fresh userdir.
    2. Invoke File | New Project... from main menu. "New Project" wizard shows up.
    3. In the first step of the wizard select "JavaFX" category and "JavaFX Application" project. Push Next > button.
    • EXPECTED RESULT: In the second step of the wizard, JavaFX2 SDK should be detected and added as "Default JavaFX Platform", then selected in the "JavaFX Platform" combobox. Press Manage Platforms... and check whether the "Default JavaFX Platform" was detected correctly as expected.
  2. Automatic JavaFX Platform detection II (Sample)
    1. Start IDE with fresh userdir.
    2. Invoke File | New Project... from main menu. "New Project" wizard shows up.
    3. In the first step of the wizard select "Samples" category and "JavaFX" subcategory.
    4. Select some sample project and push Next > button.
    • EXPECTED RESULT: In the second step of the wizard, JavaFX2 SDK should be detected and added as "Default JavaFX Platform", then selected in the "JavaFX Platform" combobox. Press Manage Platforms... and check whether the "Default JavaFX Platform" was detected correctly as expected.
  3. Manually adding JavaFX Platform I (Project)
    1. Invoke File | New Project... from main menu. "New Project" wizard shows up.
    2. In the first step of the wizard select "JavaFX" category and "JavaFX Application" project. Push Next > button.
    3. In the second step of the wizard, push Manage Platforms... button, next to the "JavaFX Platform" combobox.
    4. "Java Platform Manager" shows up. Press Add Platform... and select path for the JDK of your choice and push Next >.
    5. Enter desired "Platform Name" and press Finish
    6. Select the newly created platform in "Platforms" list. Select "JavaFX" tab and tick "Enable JavaFX" checkbox.
    7. Use Browse... button next to "JavaFX SDK" textfield to find a compatible JavaFX SDK location. "Runtime" and "Javadoc" textfields should be filled automatically.
    8. Push Close button. Back in the wizard, select your newly created JavaFX platform in the "JavaFX Platform" combobox.
    • EXPECTED RESULT: Newly created JavaFX platform can be selected in the combobox. No warning message is shown after it's selection, Finish button is enabled. Press Manage Platforms... again and check whether all settings of your new platform were saved correctly.
  4. Manually adding JavaFX Platform II (Menu & Sample)
    1. Invoke Tools | Java Platforms from main menu. "Java Platform Manager" shows up.
    2. Press Add Platform... and select path for the JDK of your choice and push Next >.
    3. Enter desired "Platform Name" and press Finish.
    4. Select the newly created platform in "Platforms" list. Select "JavaFX" tab and tick "Enable JavaFX" checkbox.
    5. Use Browse... button next to "JavaFX SDK" textfield to find a compatible JavaFX SDK location.
    6. "Runtime" and "Javadoc" textfields should be filled automatically. Push Close button.
    7. Invoke File | New Project... from main menu. "New Project" wizard shows up.
    8. In the first step of the wizard select "Samples" category and "JavaFX" subcategory.
    9. Select some sample project and push Next > button.
    10. In the second step of the wizard, select your newly created JavaFX platform in the "JavaFX Platform" combobox.
    • EXPECTED RESULT: Newly created JavaFX platform can be selected in the combobox. No warning message is shown after it's selection, Finish button is enabled. Press Manage Platforms... and check whether all settings of your new platform were saved correctly.
  5. Changing configuration of JavaFX Platform
    1. Invoke Tools | Java Platforms from main menu. "Java Platform Manager" shows up.
    2. Select "Default JavaFX Platform". Go to "JavaFX" tab.
    3. Change the path to "JavaFX SDK" to a different valid location and press Close.
    • EXPECTED RESULT: Configuration is successfully changed. Open "Java Platform Manager" again and check whether the changes were saved correctly. Any project using the modified platform should immediately respect the change.


Test suite: JavaFX2 Projects

Purpose: Test basic JavaFX2 Project handling.
Setup: Compatible JavaFX2 SDK installed.

  1. Create New JavaFX2 Application
    1. Invoke File | New Project... from main menu. "New Project" wizard shows up.
    2. In the first step of the wizard select "JavaFX" category and "JavaFX Application" project. Push Next > button.
    3. Keep all default settings and push Finish.
    • EXPECTED RESULT: A new JavaFX2 Project is created and opened. The project should be created without any errors and should be able to run.
  2. Close JavaFX2 Project
    1. In "Projects" view, select the root node of the previously created JavaFX2 project.
    2. Invoke pop-up menu and select Close.
    • EXPECTED RESULT: Project is successfully closed. All contents of the project disappears from all views.
  3. Open JavaFX2 Project
    1. Invoke File | Open Project... from main menu. "New Project" wizard shows up.
    2. Browse to the previously closed project, select it and push Open Project button.
    • EXPECTED RESULT: Project is opened and can run.


Test suite: JavaFX2 Preloaders

Purpose: Test JavaFX2 Preloaders support.
Setup: Compatible JavaFX2 SDK installed.

  1. Create FX Application with Preloader
    1. Invoke File | New Project... from main menu. "New Project" wizard shows up.
    2. In the first step of the wizard select "JavaFX" category and "JavaFX Application" project. Push Next > button.
    3. In the second step of the wizard, tick "Create Custom Preloader" checkbox.
    4. Keep all other settings default and push Finish.
    • EXPECTED RESULT: New JavaFX2 Application project is successfully created along with Preloader project. The application is set to use the preloader. Application can run.
  2. Create New Preloader
    1. Invoke File | New Project... from main menu. "New Project" wizard shows up.
    2. In the first step of the wizard select "JavaFX" category and "JavaFX Preloader" project. Push Next > button.
    3. Keep all default settings and push Finish.
    • EXPECTED RESULT: New Preloader project is successfully created and can be built.
  3. Set Preloader to FX Application I - issue 202968
    1. In "Projects" view, select the root node of the previously created JavaFX2 project.
    2. Invoke pop-up menu and select Properties.
    3. In the "Project Properties" manager, select "Run" category.
    4. Push Browse... next to "Use Preloader" field. "Choose Preloader Source" wizard shows up.
    5. In the first step of the wizard, keep "Choose Preloader from Project" selected and push Next >.
    6. In the second step, browse to the Preloader project created in previous test case, select it and push Finish.
    7. Back in the "Project Properties", verify correct "Preloader Class" is selected and press OK.
    • EXPECTED RESULT: New Preloader is successfully set to a JavaFX2 Application project. Application can run with it.
  4. Set Preloader to FX Application II - issue 201732
    1. In "Projects" view, select the root node of the previously created JavaFX2 project.
    2. Invoke pop-up menu and select Properties.
    3. In the "Project Properties" manager, select "Run" category.
    4. Push Browse... next to "Use Preloader" field. "Choose Preloader Source" wizard shows up.
    5. In the first step of the wizard, select "Choose Preloader from JAR" and push Next >.
    6. In the second step, browse to the "dist" directory of Preloader project created in the first test case, select the JAR file there and push Finish.
    7. Back in the "Project Properties", verify correct "Preloader Class" is selected and press OK.
    • EXPECTED RESULT: New Preloader is successfully set to a JavaFX2 Application project. Application can run with it.
  5. Disable Preloader - issue 213835
    1. In "Projects" view, select the root node of the previously created JavaFX2 project.
    2. Invoke pop-up menu and select Properties.
    3. In the "Project Properties" manager, select "Run" category.
    4. Untick the "Use Preloader" checkbox.
    5. Preloader fields should be gray, press OK.
    • EXPECTED RESULT: Preloader is successfully disabled in the JavaFX2 Application project. Application runs without it. Though the preloader isn't in use, it's setup is still visible and it can be activated again.
  6. Enable Preloader
    1. In "Projects" view, select the root node of the previously created JavaFX2 project.
    2. Invoke pop-up menu and select Properties.
    3. In the "Project Properties" manager, select "Run" category.
    4. Prelodader from the previous test case should be setup there, but disabled. Tick the "Use Preloader" checkbox.
    5. Preloader fields should return to normal color, press OK.
    • EXPECTED RESULT: Preloader is successfully enabled in the JavaFX2 Application project and application runs with it.
  7. Unset Preloader
    1. In "Projects" view, select the root node of the previously created JavaFX2 project.
    2. Invoke pop-up menu and select Properties.
    3. In the "Project Properties" manager, select "Run" category.
    4. Push the Clean button.
    5. Preloader fields should be empty, press OK.
    • EXPECTED RESULT: Preloader is successfully unset from the JavaFX2 Application project. Application runs without it. All preloader setup is cleared.


Test suite: JavaFX2 FXML

Purpose: Test JavaFX2 FXML support.
Setup: Compatible JavaFX2 SDK and JavaFX Scene Builder installed.

  1. Create new FXML Application
    1. Invoke File | New Project... from main menu. "New Project" wizard shows up.
    2. In the first step of the wizard select "JavaFX" category and "JavaFX FXML Application" project. Push Next > button.
    3. Keep all default settings and push Finish.
    • EXPECTED RESULT: A new JavaFX2 project with main class, "Sample.fxml" FXML and "Sample.java" Controller is created and opened. The project should be created without any errors and should be able to run.
  2. Create FXML File
    1. In "Projects" view, select the main package of the previously created JavaFX2 project.
    2. Invoke File | New File... from main menu. "New File" wizard shows up.
    3. Select "JavaFX" category and "Empty FXML" file type. Push Next > button.
    4. Type some "FXML Name" and push Finish.
    • EXPECTED RESULT: New FXML file is created and opened into editor.
  3. Create FXML File with Controller class
    1. In "Projects" view, select the main package of the previously created JavaFX2 project.
    2. Invoke pop-up menu and select "New | Empty FXML...". "New Empty FXML" wizard shows up.
    3. Type some "FXML Name" and push Next >.
    4. In the next step, tick "Use Java Controller".
    5. "Create New" option with default name should be selected. Push Finish button.
    • EXPECTED RESULT: New FXML file and Controller class are created and opened into editor. The FXML file should have assigned the fx:controller property to the Controller class.
  4. Create FXML File with CSS
    1. In "Projects" view, select the main package of the previously created JavaFX2 project.
    2. Invoke pop-up menu and select "New | Empty FXML...". "New Empty FXML" wizard shows up.
    3. Type some "FXML Name" and push Next >.
    4. In the next step, just push Next >.
    5. In the last step, tick "Use Cascading Style Sheets".
    6. "Create New" option with default name should be selected. Push Finish button.
    • EXPECTED RESULT: New FXML and CSS files are created and opened into editor. The FXML file should have the CSS linked in it's stylesheets element.
  5. Open FXML in NetBeans editor
    1. Close one of the previously created FXML files in editor.
    2. In "Projects" view, find the node for the file you just closed and select it.
    3. Invoke pop-up menu and select "Edit".
    • EXPECTED RESULT: FXML file is opened in the editor.
  6. Open FXML in Scene Builder
    1. In "Projects" view, select some previously created FXML file node.
    2. Invoke pop-up menu and select "Open" or double-click the node.
    • EXPECTED RESULT: JavaFX Scene Builder is started with the FXML file opened.
  7. Edit FXML in Scene Builder
    1. In Scene Builder, do some changes to the opened file.
    2. Invoke File | Save action in the main Scene Builder menu.
    • EXPECTED RESULT: Changes in the FXML file are visible in the NetBeans editor.


Test suite: JavaFX2 in Swing

Purpose: Test JavaFX2 in Swing support.
Setup: Compatible JavaFX2 SDK installed.

  1. Create new JavaFX in Swing Application
    1. Invoke File | New Project... from main menu. "New Project" wizard shows up.
    2. In the first step of the wizard select "JavaFX" category and "JavaFX in Swing Application" project. Push Next > button.
    3. Keep all default settings and push Finish.
    • EXPECTED RESULT: A new JavaFX2 project with main class that contains "JFXPanel" is created and opened. The project should be created without any errors and should be able to run.


Test suite: JavaFX2 Editor Features

Purpose: Test JavaFX2 specific Editor actions.
Setup: Compatible JavaFX2 SDK installed.

  1. Class Code Completion
    1. Create new JavaFX2 Application project. It's Application class should be opened it the editor.
    2. In the editor, create a new line in the import section and invoke code completion (Control+Space).
    3. Select import keyword from the Code Completion window.
    4. After the keyword, invoke code completion again and select javafx package.
    5. Code Completion window should remain open. Continue with selecting some subpackage and some class and finish line with semicolon.
    6. Import some more classes from javafx package.
    • EXPECTED RESULT: Code Completion window offers are available packages and classes. None of the added imports is marked as error in the editor.
  2. Method Code Completion
    1. In the editor window with previously created Application class, create a new line in the body of start method.
    2. Type in new Stage(). including the dot. After typing the dot, Code Completion window should open.
    3. Select some method without parameters from the list and press Enter.
    • EXPECTED RESULT: The selected method is generated into the code. There are no error marks.
  3. Method with Parameters Code Completion
    1. Delete the method generated in the previous test case, so the cursor is after the dot.
    2. Invoke code completion (Control+Space). Code Completion window should appear.
    3. Select some method with primitive type parameter from the list and press Enter.
    4. Type in the parameter value and press Enter.
    • EXPECTED RESULT: The selected method is generated into the code. There are no error marks.
  4. Show Method Parameters
    1. In the editor window with previously created Application class, click into parameters section of some method.
    2. Invoke Show Method Parameters (Control+P).
    3. Use arrows to move within the parameters section and modify the parameters.
    • EXPECTED RESULT: After invoking Show Method Parameters, tooltip with available parameters is shown. As you move within and modify the parametres section, coresponding parts of the tooltip are emphasized.
  5. Show Javadoc
    1. Invoke Window | Other | Javadoc from main menu.
    2. In the editor window with previously created Application class, click on various classes and methods.
    3. Inovke Show Documentation (Control+Shift+Space) at each clicked point.
    • EXPECTED RESULT: For every selected point, coresponding Javadoc page is show in the "Javadoc" tab. After invoking Show Documentation, an enbedded Javadoc page with coresponing content is shown.


Test suite: Basic IDE Tasks

Purpose: Test whether basic IDE tasks for JavaFX2 Project works correctly.
Setup: Compatible JavaFX2 SDK installed.

  1. Run
    1. Create new JavaFX2 Application and selects it's root node in "Projects" view.
    2. Invoke Run | Run Project ({projectname}) action from main menu.
    • EXPECTED RESULT: Project is successfully built and runs. In the "Files" view, check that "build" and "dist" folders were created in project's directory and that they contain compiled classes and deploy files.
  2. Clean
    1. In "Projects" view, select the root node of the previously created JavaFX2 project.
    2. Invoke pop-up menu and select Clean action.
    • EXPECTED RESULT: Project is successfully cleaned. In the "Files" view, verify that "build" and "dist" folders were removed.
  3. Build
    1. In "Projects" view, select the root node of the previously created JavaFX2 project.
    2. Invoke pop-up menu and select Build action.
    • EXPECTED RESULT: Project is successfully built. In the "Files" view, check that "build" and "dist" folders were created in project's directory and that they contain compiled classes and deploy files.
  4. Rebuild
    1. In "Projects" view, select the root node of the previously created JavaFX2 project.
    2. Invoke pop-up menu and select Build action.
    • EXPECTED RESULT: Project is successfully rebuilt. Verify in filesystem that previous "build" and "dist" folders and unchanged classes remained and all other content was replaced.
  5. Clean and Build
    1. In "Projects" view, select the root node of the previously created JavaFX2 project.
    2. Invoke pop-up menu and select Clean and Build action.
    • EXPECTED RESULT: Project is successfully cleaned and then built. Verify in filesystem that previous "build" and "dist" folders and all their contents were removed and replaced with new ones.


Test suite: Advanced IDE Tasks

Purpose: Test whether advanced IDE tasks for JavaFX2 Project works correctly.
Setup: Compatible JavaFX2 SDK installed.

  1. Debug
    1. Create new JavaFX2 Application and select it's root node in "Projects" view.
    2. Invoke Debug | Debug Project ({projectname}) action from main menu.
    • EXPECTED RESULT: Project is successfully started in debug mode.
  2. Profile
    1. In "Projects" view, select the root node of the previously created JavaFX2 project.
    2. Invoke Profile | Profile Project ({projectname}) action from main menu.
    3. Keep default settings and push Run.
    • EXPECTED RESULT: Project is successfully started in profile mode.
  3. Test
    1. In "Projects" view, select the main class of the previously created JavaFX2 project.
    2. Invoke Tools | Create Tests action from main menu. "Create Tests" window shows up.
    3. "JUnit" framework should be preselected there. Keep all other default settings and push OK.
    4. "Select JUnit Version" window shows up with "Junit 4.x" option selected. Push Select button to continue.
    5. Test file is generated. Select the project's root node in "Projects" view and invoke Run | Test Project ({projectname}) action from main menu.
    • EXPECTED RESULT: Project is successfully started in test mode.


Test suite: Run in Browser

Purpose: Test whether HTML page generated by the IDE runs.
Setup: Compatible JavaFX2 SDK installed.

  1. Run in Browser from IDE
    1. Create new JavaFX2 Application.
    2. In "Projects" view, select the root node of the newly created JavaFX2 project and invoke Properties pop-up menu action.
    3. In the "Project Properties" dialog, select the "Run" category.
    4. Select "in Browser" option and push OK.
    5. Invoke Run | Run Project ({projectname}) action from main menu.
    • EXPECTED RESULT: Application successfully runs in Browser.
  2. Run in Browser from filesystem
    1. Open system file manager.
    2. Locate the folder with the project created in the previous test case and open it.
    3. Open the "dist" subfolder.
    4. Execute the application HTML file.
    • EXPECTED RESULT: File is opened in the default system web browser and the webpage with FX application executes correctly.
  3. Run in Browser from web
    1. Upload the content of the "dist" folder from previous test case to a webserver.
    2. Open web browser and enter the address to the HTML file in the uploaded folder.
    • EXPECTED RESULT: The webpage with FX application executes correctly.


Test suite: Run as Webstart

Purpose: Test whether Webstart artifact generated by the IDE runs.
Setup: Compatible JavaFX2 SDK installed.

  1. Run as Webstart from IDE
    1. Create new JavaFX2 Application.
    2. In "Projects" view, select the root node of the newly created JavaFX2 project and invoke Properties pop-up menu action.
    3. In the "Project Properties" dialog, select the "Run" category.
    4. Select "as Web Start" option and push OK.
    5. Invoke Run | Run Project ({projectname}) action from main menu.
    • EXPECTED RESULT: Project successfully runs as Webstart.
  2. Run as Webstart from filesystem
    1. Open system file manager.
    2. Locate the folder with the project created in the previous test case and open it.
    3. Open the "dist" subfolder.
    4. Execute the application JNLP file.
    • EXPECTED RESULT: The FX application executes via Webstart correctly.
  3. Run as Webstart from web
    1. Upload the content of the "dist" folder from previous test case to a webserver.
    2. Open web browser and enter the address to the HTML file in the uploaded folder.
    3. Click the Webstart link on the HTML page.
    • EXPECTED RESULT: The FX application executes via Webstart correctly.


Test suite: Run Configurations

Purpose: Test support for various run configuration.
Setup: Compatible JavaFX2 SDK installed.

  1. Default configuration
    1. Create new JavaFX2 Application
    2. In "Projects" view, select the root node of the newly created JavaFX2 project.
    3. Verify that "<default config>" is selected in the toolbar combobox and run the project.
    • EXPECTED RESULT: Application is started in Standalone mode. Verify that the application is responsive and close it.
  2. WebStart predefined configuration
    1. In "Projects" view, select the root node of the previously created JavaFX2 project.
    2. Expand the toolbar combobox and select "Run as WebStart" configuration.
    3. Run the project.
    • EXPECTED RESULT: Application is started via WebStart. Verify that the application is responsive and close it.
  3. Browser predefined configuration
    1. In "Projects" view, select the root node of the previously created JavaFX2 project.
    2. Expand the toolbar combobox and select "Run in Browser" configuration.
    3. Run the project.
    • EXPECTED RESULT: Default browser is started with the application applet. Verify that the application is responsive and close the browser page.
  4. Switch configurations in Properties manager
    1. In "Projects" view, select the root node of the previously created JavaFX2 project.
    2. Expand the toolbar combobox and select "Customize...". "Project Properties - {projectname}" manager shows up with "Run" category selected.
    3. In the manager window, switch the "Configuration" combobox to "<default config>".
    4. The "Run" option should change to "Standalone". Push OK button and run the project.
    • EXPECTED RESULT: The toolbar combobox should be switched to "<default config>" and the application is started in Standalone mode. Verify that the application is responsive and close it.
  5. Create new configuration
    1. In "Projects" view, select the root node of the previously created JavaFX2 project.
    2. Invoke pop-up menu and select Properties. In the "Project Properties" manager, select "Run" category.
    3. Push the New... button next to "Configuration" combobox.
    4. "Create New Configuration" window shows up. Type CustomConf01 as the new "Configuration Name" and push OK.
    5. "CustomConf01" is now created and selected in the "Configuration" combobox. Push OK button and run the project.
    • EXPECTED RESULT: The toolbar combobox should be switched to "CustomConf01" and the application is started in Standalone mode. Verify that the application is responsive and close it.
  6. Adjust custom configuration
    1. In "Projects" view, select the root node of the previously created JavaFX2 project.
    2. Expand the toolbar combobox and select "Customize...". "Project Properties - {projectname}" manager shows up with "Run" category selected.
    3. Switch the "Run" option to "in Browser".
    4. Use the "Web Browser" combobox to switch to other than system default browser.
    5. Push OK button and run the project.
    • EXPECTED RESULT: Selected browser is started with the Application applet. Verify that the application is responsive and close the browser page.
  7. Adjust default configuration
    1. In "Projects" view, select the root node of the previously created JavaFX2 project.
    2. Invoke pop-up menu and select Properties. In the "Project Properties" manager, select "Run" category.
    3. In the manager window, switch the "Configuration" combobox to "<default config>".
    4. Modify settings in all fields.
    5. Push the New... button next to "Configuration" combobox.
    6. "Create New Configuration" window shows up. Type CustomConf02 as the new "Configuration Name" and push OK.
    • EXPECTED RESULT: All changed settings from <default config> should be propagated to all other configurations including the newly created one. "Run" option should be propagated only to configurations, in which it wasn't changed before.
  8. Remove configuration - issue 212900
    1. In "Projects" view, select the root node of the previously created JavaFX2 project.
    2. Invoke pop-up menu and select Properties. In the "Project Properties" manager, select "Run" category.
    3. In the manager window, switch the "Configuration" combobox to CustomConf01.
    4. Push Delete button next to the combobox and then push OK.
    • EXPECTED RESULT: The selected configuration is permanently removed and project is set to <default configuration>.


Test suite: Project Properties

Purpose: Test JavaFX2 Project specific properties.
Setup: Compatible JavaFX2 SDK installed.

  1. Changing JavaFX Platform - issue 212238
    1. Create a new JavaFX2 Project with "Default JavaFX Platform" and run it at least once.
    2. In the "Projects" view, right-click the root node of the project and select Properties.
    3. Select the "Libraries" category in the "Project Properties" manager.
    4. Change platform in "Java Platform" combobox to a different one (create it if needed) and press OK.
    • EXPECTED RESULT: Project platform is successfully changed. Project should be able to run on the newly selected platform.
  2. Setup Application Class
    1. Create new JavaFX Main Class in the project created in previous test case.
    2. Select the project root node, invoke pop-up menu and select Properties.
    3. Select the "Run" category in the "Project Properties" manager.
    4. Using the Browse..., change the "Application Class" to the newly created JavaFX Main Class.
    5. Push OK button.
    • EXPECTED RESULT: Project Application class is successfully changed. Verify by running the project.
  3. Using Parameters
    1. Download the Media:TS_72_JavaFX2_VerifyParameters.zip file, unzip the VerifyParameters project and open it the IDE.
    2. Select the project root node, invoke pop-up menu and select Properties.
    3. Select the "Run" category in the "Project Properties" dialog.
    4. Next to the "Parameters" field, push the Edit... button.
    5. In the "JavaFX Application Parameters" window, add at least one unnamed parameter and one named parameter.
    6. Push OK to proceed. Newly added parameters now should be visible in the "Parameters" field. Push OK to save the changes.
    7. Run the project in all modes (standalone, applet, webstart).
    • EXPECTED RESULT: The application successfully runs and shows a list of passed parameters in all three modes. The list contains all the valid parameters added in the properties manager.
  4. Using VM Options
    1. Create a new JavaFX2 Application project.
    2. Open the application class of the newly created project and add following lines to the end of the start method:
      RuntimeMXBean rmxb = ManagementFactory.getRuntimeMXBean();
      List<String> vmargs = rmxb.getInputArguments();
      for (String arg : vmargs) { System.out.println(arg); }
    3. Fix imports in the application class.
    4. In "Projects" view, select the root node of the project.
    5. Invoke pop-up menu and select Properties. In the "Project Properties" manager, select "Run" category.
    6. Enter some options into the "VM Options" field and push OK.
    7. Run the project.
    • EXPECTED RESULT: Application is started and the VM options are applied. Check output for the list of applied options.
  5. Setting applet size
    1. In "Projects" view, select the root node of the previously created JavaFX2 project.
    2. Expand the toolbar combobox and select "Run in Browser" configuration.
    3. Expand the combobox again and select "Customize...". "Project Properties" manager shows up.
    4. Modify the "Width" and "Height" values and push OK button.
    5. Run the project.
    • EXPECTED RESULT: Default browser is started with the application applet. Explore the source code of the browser page to verify that the width and the height of the applet are set accordingly.
  6. Choosing web browser
    1. In "Projects" view, select the root node of the previously created JavaFX2 project.
    2. Invoke pop-up menu and select Properties. In the "Project Properties" manager, select "Run" category.
    3. Expand the "Web Browser" combobox and select one of the available browsers, other than "<Default System Browser>".
    4. Push OK and run the project.
    • EXPECTED RESULT: Selected browser is started with the application applet. Verify that the application is responsive and close the browser page.



Test suite: Samples

Purpose: Test functionality of JavaFX2 Samples.
Setup: Compatible JavaFX2 SDK installed.
Comments: 3D samples require modern hardware with latest drivers. Some samples require internet access, if you're behind a proxy, set accordingly following VM Options:

-Dhttp.proxyHost=proxy.mydomain.com -Dhttp.proxyPort=80


Samples Table:

Sample media 3D FXML Swing proxy
AdvancedMedia X X
AudioVisualiser3D X X X
BrickBreaker
ColorfulCircles
CreateAdvancedStage
Cube3D X
CubeSystem3D X
DigitalClock
DisplayShelf
FXML-LoginDemo X
HTMLEditorApp
ChangeListener
ChartAdvancedArea
ChartAdvancedBar
ChartAdvancedPie
ChartAdvancedScatter
ChartAdvancedScatterLive
ChartAdvancedStockLine
ChartAudioArea X X
ChartAudioBar X X
ChartLine
KeyStrokeMotion
MouseEvents
PuzzlePieces
StopWatch
SwingIntrop X X
TimelineEvents
TimelineInterpolator
TransitionPath
TransitionRotate
WebViewBrowser X
Xylophone X

  1. Try Sample Project (do for each sample in the table)
    1. Invoke File | New Project... from main menu. "New Project" wizard shows up.
    2. In the first step of the wizard expand "Samples" category and select "JavaFX" subcategory.
    3. Select chosen project. Push Next > button.
    4. In the second step "Default JavaFX Platform" should be selected. Push Finish.
    5. Run the newly created project.
    • EXPECTED RESULT: The sample project is successfully created without any error and is able to run.



Attachments List

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