Advanced Test Settings
There are several optional advanced settings that control how Autonomous takes screenshots in a test. You can set advanced settings for all URLs in a test, and in a full website test or URL list test you can define settings for individual URLs within the test.
To Set Advanced Settings for All URLs in a Test
You can set advanced settings for an entire test. This determines how screenshots are taken for all URLs in the test, except for individual URLs that have different advanced settings applied.
-
In the Test management > Tests and select a test.
, select -
At the top of the Test Details page, click and enable the required advanced settings as defined below.
To Set Advanced Settings for a Single URL
In a full website test or URL list test you can set advanced settings for a single URL. For example, if there is a URL with lazy loading, you can enable lazy load for that URL without changing other URLs in the test.
-
In the Test management > Tests and select a test.
, select -
In the list of URLs, click on a URL and in the area on the right select > Advanced settings.
-
Enable the required advanced settings as defined below.
To Set Advanced Settings for Multiple URLs
You can set advanced settings for multiple URLs. If some of the URLs previously had other advanced settings enabled or disabled, this process replaces previous settings for those URLs.
-
In the Test management > Tests and select a test.
, select -
Click on a URL list test.
-
In the list of URLs, select the required URLs and click > Advanced.
-
Enable the required advanced settings as defined below.
Lazy Load
Lazy loading (also known as asynchronous loading) is a technique in web design to defer initialization of an object until the point at which it is needed. This means that to get a screenshot of the entire screen, you need to slowly scroll to the bottom of the screen, allowing each section to load.
If the lazy load option is enabled, before taking the screenshot, Autonomous loads the screen in increments, pausing between each increment and then scrolling down. This allows the entire page to load before the screenshot is taken.
The default settings work for most lazy load URLs. If the results do not include the complete screen, click on Modify default values and modify the following values:
-
Number of pixels to scroll in each increment – If there are incomplete or blank sections in the middle of the screenshot, you may need to reduce the number of pixels scrolled in each increment. The default value is 300 pixels.
-
Total number of pixels to scroll on the page – This value corresponds to the size of the complete page once it has fully loaded. The default value is 15000 pixels.
-
Number of milliseconds to wait between each scroll – If there are incomplete or blank sections in the middle of the screenshot, you may need to increase the number of milliseconds to wait between each scroll. The default value is 2000 milliseconds.
Wait Before Screenshot Capture
You can set the system to wait a predefined number of milliseconds before taking the screenshot. This is useful for screens that may take time to fully load. The default value is 2000 milliseconds.
Responsive Layout Support
Select this option if your website has a responsive design logic that changes the website using JavaScript onresize/onLoad events depending on the viewport size.
Pattern Detection
Enables pattern recognition for efficient structure-matching and editing, used to improve the results in Layout match level.
Run a Script Before Screenshot Capture
Enter a JavaScript to run in the environment before each screenshot is taken.
For example, the following script selects the HTML element of the page and resets the height of the element to the client height, to make sure that the full content of the page is rendered. This is useful if the content of the page changes dynamically based on the viewport size or other factors.
document.querySelector("html").style.height = document.querySelector("html").clientHeight + "px";
Use Custom Flow's Start URL
If you have a custom flow set to run before each step in a full website test or URL list test test, for example, a test which closes a popup, by default the start URL of the custom flow test will be ignored. This means that it will start with the second step of the test.
Enable Use the custom flow's start URL if you do not want the system to ignore the default URL step in a customized pre-step.
This option is only available for full website tests or URL list tests that have a pre-step assigned. For more information, see Flow to Run Before Steps.