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.2.3.Recording 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
    Toolbar New 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
    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. 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 select the FXML Login Demo option. Click on the List option on the toolbar, then select Language option and followed by FXML Login Demo option.
    Ensemble FXML Login Demo Enter demo for both user name and password fields and click on Login button.
  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 Move the mouse cursor to the Please review your profile label, and click mouse right button while control key is pressed. MarathonITE displays an Assertions window. You can include assertions for any properties for the currently selected component into the script. Select the Text{Please review your profile} 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 pressing ESCAPE key or clicking on the close button.
  5. Finish recording
    Marathon 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 login_test.rb.
Suggest Edit