One or more macros can be used in AMP spiders to allow the associated automated tests to be run on pages and components that would normally not be accessible without human interaction. For example, AMP spiders would normally test the initial UI state of a page, which means that dynamic components like menus and modal windows would not be tested. Users can record macros that activate these dynamic components, and they can add these macros to an automated test in AMP to enable the components to be tested during spidering.
If an AMP test has one or more macros associated with it, when the spider encounters a page associated with one of those macros, the macros will be run prior to the page being tested.
Adding Macros to a Test
When creating an automated test in AMP a "Select Macros" section is available on the Create Test form. Note that the macros available for selection will be limited to those that have been made available to everyone AND those that have been created by the currently-logged-in user.
Select all macros that should be used when testing to allow the spider to access all pages and components that should be tested.