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

3.8.3.Executing Tests in Batch Mode

You can run tests using MarathonITE batch mode. The -batch option informs Marathon that no UI is needed. For running all tests from the project use the following command:

If no TestCase is given on command line, Marathon runs all the tests from the project directory. If you want to run all tests from a subfolder of TestCases directory you need to append AllTests to the folder name.

MarathonITE creates a marathon-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.

Command Description
<TestCase> Name of the test case(s). Usage: testname1 testname2.
+<TestSuite> Charatcter '+' followed by name of the test suite. Usage: +suite_name
@<Feature> Charcter '@' followed by name of the Feature. Usage: @feature_name
#<Story> Character '#' followed by name of the Story. Usage: @story_name
!<Issue> Character '!' followed by name of the Issue. Usage: !issue_name
~<SavedRun> Character '~' followed by name of the saved run. Usage: ~savedrunname

Some of the other commands available in batch mode.

Command Description
-help Gives you the list of commands available.
-reportdir Path to report directory where test run report goes. Usage: -reportdir <pathtorepor_dirt>
-capture Capture's screen when error occurs.
-delay<slowdelayInMS> Delays after each statement execution Usage: -delay <delyatimein_ms>
-demo Runs AUT in demo mode. In this mode you can pause, delay or speed-up test(s) exceution.

Running AUT in DEMO mode

You can use Marathon to execute your test application in DEMO mode using -demo command line switch. MarathonITE displays a window. Using the controls in this window, you can change the delay time between statements, pause the execution etc.

Marathon DEMO Mode

Suggest Edit