Record and run macros
This topic describes how to use macros to have Sprinter perform a series of user actions in your test and run them as a single command.
Macros can be used only in tests run in Power Mode.
To record or run a macro:
-
In Run mode, make sure that Power Mode is active, as indicated by a green indicator. Click Run or choose Run selected test. The Run screen opens. Expand the Macros sidebar. For details, see the relevant steps in Prepare a test to run in Power Mode.
-
Record a macro
If your application already has a macro associated with it that you want to run, you can skip this step.
-
In the Macros sidebar click the Record button .
-
Perform the actions you want to include in your macro.
-
In the Macros sidebar, click the Stop button . The Macro Details Dialog Box opens.
-
Set the definitions for your macro and save it. For details, see Macro Details dialog box.
-
-
Run a macro
-
For best results, close the instance of the application upon which the macro was recorded. Allow Power Mode to reopen the application.
-
In the Macros sidebar select the macro you want to run from the macros drop-down list.
-
In the Macros sidebar click the Run button .
-
The Macros sidebar displays an icon in its tab indicating the progress and success or failure of the macro. Click the icon for more details.
-
See also: