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 a Test

MarathonITE provides an inbuilt recorder that you can use to record your test script. For recording a test script, follow the below steps:

  1. Create a new test script
    Marathonite Toolbar - New Option

    From the File -> New select New Test Case option. Alternatively, you can use the toolbar button or press Ctrl+N to create a new test case. MarathonITE opens an Untitled test case in a new editor. The cursor is appropriately positioned so that you can start recording.

  2. Start recording

    Marathonite Toolbar - Record

    You can start recording your script. Use the Record toolbar button for starting the recording. Alternatively, you can use the Marathon -> Record menu item or use Ctrl+R keystroke to start recording.
    MarathonITE starts a new recording. You will see a Wait message and MarathonITE starts your application in the browser. The main window is closed and a Control Center window is displayed.

  3. Perform operations on the application
    You can use the application as it is used normally. Each of the operations performed are recorded as script elements by MarathonITE. The control center window displays the recordings of the last few operations.
    For this test, we perform a simple search operation. Enter Hello World into the search field and press ENTER. DuckDuckGo search is performed and the results are shown in the browser.

    Marathonite - DuckDuckGo Search Results

  4. Adding assertions
    A good test case not only includes the sequence of operations, but also includes checkpoints that verify that the operations are processed correctly. While using MarathonITE you can add assertions to the script by using the assertion window.
    Marathonite Assertions Window - Web

    Move the mouse cursor to the first result in the search results and press Control+RightClick. You can include assertions for any properties for the currently selected component into the script. Select the Text property and click on the Insert Assertion option of the bottom of the window. MarathonITE inserts an assert_p call into the script. Close the window by clicking on the close button.

  5. Finish recording

    Marathonite Control Center

    We completed recording of our first test. You can finish the recording by clicking on the Stop Recording button on the control center window. MarathonITE will display the main window again - now the script editor will contain the recorded script.

  6. Save test script
    Use File -> Save option to save the test script into a file. We save it as search_test.rb.
Suggest Edit
Close Menu