Macros can be recorded from the Access Assistant toolbar (versions 3.0 and higher). To record a macro, first launch Access Assistant from the page on which the macro will be recorded, and navigate to the Asset in which the macro should be saved. A "Macros" button will be available at the top of the screen, above the list of reports in the asset. Note that this feature is only available to users with a Standard User or higher role in AMP.
To create a new macro:
- Select the "Macros" button on the assets screen. This will open the list of macros for the asset. Users will only be able to see macros that are made available to everyone OR that they have created.
- Select the "New Macro" button at the top of the page.
- On the subsequent screen, specify the properties for the new macro:
- Name: Give the macro recording a name that is easily understood in AMP.
- Permissions: Select the appropriate permissions for the macro. Macros that are made available to "Everyone" can be selected for usage by anyone with permissions to create tests in the parent asset. If "Only Me" is selected for this field, only the currently-logged-in user will be able to select the macro recording for use in AMP spiders, and only in the parent asset.
- Record the macro:
- Select the "Record" button to initiate recording.
- In the main browser window, interact with the page, recording the interactions. For example, if the macro is recording a login to enable automated testing of a site that is behind a login, complete and submit the login form to record the login. NOTE: When recording a macro if the user navigates away from the page on which the macro is being recorded, the recording will automatically be paused. In the current version of the toolbar, recordings are limited to a single page. In future versions, recordings may span multiple pages. Additionally, note that you can't capture events that occur within <iframe> elements within the page you are recording for.
- When the actions that are to be recorded have been completed, navigate back to the Access Assistant window and select the "Pause" button. The recorded steps can be viewed at this time in the macro steps grid.
- Select the "Save" button to save the recording and make it available for usage in AMP.
- Select the "Record" button to initiate recording.
Once a macro is recorded it will be available in AMP, to the appropriate users based on the macro's permissions, for inclusion in tests in the given asset. See the "Using a Macro in an AMP Test" article to learn more about playback of macros.
Comments
0 comments
Article is closed for comments.