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 theScreenshot/Objects Hierarchyarea and will generate assertions based on what field you choose in theElement DetailsareaRecording 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 objectsis selected -will record a
Tap()command on the object (when tap < 0.2 s) when the default action is set toTap / Swipewill record a
Click()command on the object (when click < 0.2 s) when the default action is set toClick / Presswill 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 coordinatesis selected -will record the
MoveMouse(),KeyDown()andKeyUp()commands in the test, moving the mouse to certain screen coordinates. These methods will be recorded when the default action is set toClick / Presswill record the
BeginTouch(),MoveTouch()andEndTouch()commands in the test, moving the mouse to certain screen coordinates. These methods will be recorded when the default action is set toTap / Swipe
Only move mouse on click/Move mouse while recording:if
Only move mouse on clickis selected - the change in the mouse position will be recorded only when a click is performedif
Move mouse while recordingis 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()andOneTimeTearDown()) only once and the generated tests can be added to the end of the file
Recorded Steps
under this tab are displayed the recorded steps and they will be also displayed during a recording on a small area under the
Objects Hierarchyfrom theInspectortab (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/.venvon MacOS
Copy button: will copy all the recorded steps to the clipboardErase 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 clipboardTest report button: for Robot Framework will open the generatedreport.htmlin the default browser