Macros are a neat feature of Manual testing that let you record your manual actions and replay them. It's handy if you are doing live debugging and know that you would like to execute the same sequence of actions again, without creating a fully-fledged automated test.
Creating and using macros
First, go to the Remote access page in Manual testing, and click Record Macro:
The record button
After that, the button will change to an animated Stop Recording button. You can now send any command you want, and when you are done, click the Stop Recording button:
Stop recording
A new form will appear, letting you edit and save the macro you've just recorded:
Saving macros
-
The Add button lets you add new actions.
-
The Save button is for saving (don't forget to give a name to your macro, in the input field at the top).
-
The Close and continue recording button closes the form and lets you run additional commands to be recorded.
-
The Cancel button closes the form and stops the recording.
You can also delete a command if you hover over it to reveal its delete button x:
Deleting a macro command
When you have saved your macro, you should see a new My Macros (1) button (1 indicating the number of macros):
The macros list toggle button
You can click that button to reveal the list of saved macros. Then, just click any of them and the commands it contains will be replayed:
The macros list
Caveat: macros only work for one kind of device
A macro will only work for one kind of device at the same time (SIM, ethernet agent or smartphone). If you record a macro with SIM actions and try to replay it on an ethernet device, it'll fail. So in the same macro, you cannot have commands for mixed types of devices (e.g. a SIM call command and an ethernet agent ping command).