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
      1. Views
      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.1.5.Running Tests

You have multiple ways of running tests using MarathonITE. You can run the test currently loaded into the script editor, run multiple tests using the Test Runner view or use batch mode to run the test scripts without the UI.

Now that you know how to record a test, you can go ahead and record more tests. This tutorial shows with a single test – however, the same applies to multiple test scripts.

Running a single test from the editor

Main window with test loaded

Ensure your test script is loaded into the current editor. Use the Navigator to open the test script if it is not already open.

Play button

With the test script loaded into the editor, select Marathon -> Play button to execute the test. Alternatively, you can use Control+P key stroke or the Play button on the toolbar.

Results View

MarathonITE executes the test. The results are shown in the Results view. You might not have anything in the result view if the test case is executed without any errors or failures.

Running tests using Test Runner

MarathonITE includes a test runner view to execute multiple tests.

Test Runner view

Select the TestCases folder from the Navigator view and select Play option from the context menu displayed when you rightclick. MarathonITE opens a TestRunner view and executes all the tests from the folder.

If there are any failures or errors in the test scripts, the details are shown in the Trace section of the Test Runner view.

Runing tests in batch mode

You can run tests using MarathonITE batch mode. For running all tests from the project use the following command:

MarathonITE creates a marathonite-reports folder in which the results of the tests are written.

You can select only some tests to execute using various options of marathonite command.

Suggest Edit