Recorder#

Recorder

By pressing the Recorder button from the header of the AltTester® Desktop a new section will open up having the following areas with components:

Recorder Controls

  • Start recording: will record your interaction with the Screenshot/Objects Hierarchy area and will generate assertions based on what field you choose in the Element Details area

  • Recording language: you can choose the language to generate the tests in (C#, Python, Java and Robot Framework are available)

  • Input actions:

    • Click objects/Click coordinates:

      • if Click objects is selected -

        • will record a Tap() command on the object (when tap < 0.2 s) when the default action is set to Tap / Swipe

        • will record a Click() command on the object (when click < 0.2 s) when the default action is set to Click / Press

        • will record a HoldButton() command (when tap/click >= 0.2 s)

        • will record a Swipe() command from object to object when the mouse was moved while holding the tap/click

      • if Click coordinates is selected -

        • will record the MoveMouse(), KeyDown() and KeyUp() commands in the test, moving the mouse to certain screen coordinates. These methods will be recorded when the default action is set to Click / Press

        • will record the BeginTouch(), MoveTouch() and EndTouch() commands in the test, moving the mouse to certain screen coordinates. These methods will be recorded when the default action is set to Tap / Swipe

    • Only move mouse on click/Move mouse while recording:

      • if Only move mouse on click is selected - the change in the mouse position will be recorded only when a click is performed

      • if Move mouse while recording is selected - the change in the mouse position will be recorded even if there is no click performed

  • Code settings:

    • Include Setup:

      • if unchecked - only the current test will be displayed

      • if checked - the current test will be displayed together with the setup and the imports. In your test file you need the setup methods (OneTimeSetup() and OneTimeTearDown()) only once and the generated tests can be added to the end of the file

Recorded Steps

Recorder
  • under this tab are displayed the recorded steps and they will be also displayed during a recording on a small area under the Objects Hierarchy from the Inspector tab (see the image on the right)

  • Run:

    • runs the recorded steps in Python or Robot Framework

    • if you don’t have Python installed or you have a version less than or equal to 3.8.0, Python 3.12.4 will be installed at C:\Users\USERNAME\.alttester\python\ on Windows and at /Users/USERNAME/.alttester/tests/.venv on MacOS

  • Copy button: will copy all the recorded steps to the clipboard

  • Erase button: will erase the steps recorded and the output for the run test

Test Run Output

  • under this tab are displayed the logs after running a test

    • Copy button: will copy the output to the clipboard

    • Test report button: for Robot Framework will open the generated report.html in the default browser