1. Preface
    1. About MarathonITE
    2. Supported Platforms
      1. Java/Swing™
      2. Java/FX™
      3. Web Applications
    3. What's New in MarathonITE 5.0
    4. Change Log a.k.a Version History
    5. System Requirements
    6. Copyright Notice
  2. Getting Started
    1. Introduction to Test Automation
      1. Unattended Testing
      2. Semi Automated Testing
      3. Exploratory Testing
    2. MarathonITE Projects
    3. Your First Project
      1. Java/Swing™ Test Project
        1. Application Under Test - SwingSet3
        2. Creating a Project
        3. Recording a Test
        4. Anatomy of a Test Script
        5. Running Tests
        6. Looking at Results
      2. Java/FX™ Test Project
        1. Application Under Test - Ensemble
        2. Creating a Project
        3. Recording a Test
        4. Anatomy of a Test Script
        5. Running Tests
        6. Looking at Results
      3. Web Application Test Project
        1. Application Under Test - DuckDuckGo Search
        2. Creating a Project
        3. Recording a Test
        4. Anatomy of a Test Script
        5. Running Tests
        6. Looking at Results
    4. MarathonITE Sample Projects
  3. User Guide
    1. Installation and Startup
    2. MarathonITE User Interface
      2. Editors
      3. Output Views
    3. Creating Marathonite Test Projects
    4. Recording Tests
    5. Managing Checklists
    6. Exploratory Tests
    7. Semi Automated Tests
    8. Executing Tests
      1. Executing a Test from Editor
        1. Debugging Scripts
        2. Using Script Console
      2. Executing Tests from Test Runner
      3. Executing Tests in Batch Mode
    9. Organizing Tests
      1. Organizing Tests in Folder Heirarchy
      2. Organizing Tests as Features and Stories
      3. Organizing Tests in Suites
      4. Linking Tests to TMS and Issue Manager
    10. Modularizing Test Scripts
      1. Module Methods
      2. Extract Method Refactoring
      3. Using Data Loops
      4. Convert to Data Loop Refactoring
    11. Data Driven Tests
      1. Convert to DDT Refactoring
  4. Advanced Scripting
    1. Ruby Programming Language
    2. Marathon and Ruby
    3. Selenium/WebDriver Bindings
      1. Java/Swing™ Components
      2. Java/FX™ Controls

2.3.2.Java/FX™ Test Project

A typical Java/FX™ application is a set of class files bundled together in one or more Java Archives (jar) files. In all these classes, there is a special class that has a main method that is the entry point into the application. Once you know the main class and have the list of JAR files, the application is launched as follows:

As this is a cumbersome way of launching an application, Java (and 3rd parties) provide a set of tools to ease the deployment of the applications.

  • Java Webstart™
    Java Web Start is a framework developed by Sun Microsystems (now Oracle) that allows users to start application software for the Java Platform directly from the Internet using a web browser. The launch information of the application is provided in a JNLP file. The file along with the application JAR files are stored in an accessible location for the user. The user needs to download the JNLP file and use javaws tool to launch the application. Java web start is also integrated into most desktop operating systems. So opening a JNLP file automatically launches the application.
  • Executables and Batch files
    Java applications are also typically wrapped as exeutable files or batch files. When the user runs this file, the arguments and the environment is processed and a properly constructed java command line is executed.
  • Applets
    Some java applications are deployed as applets. The applets are executed within a browser environment.
  • Executable JAR
    Java applications are also distributed as JAR file that can be launched with java -jar command.

When you create a project (or a fixture - more about it later) - you need to select an appropriate launcher that correspond to the way your application is launched. MarathonITE provides launchers for Java command line, web start, executable jar and command line to launch FX applications.

In this tutorial, we shall use java command line launcher to start the application. The User Guide explains all other types of launchers in detail.

Suggest Edit
Close Menu