What are Smart Screenshots?
How does Smart Screenshots really work? When a test is created and every time it's run, we collect data at every step to intelligently select the proper element. Along with this machine learning data, we also collect screenshots at every step. These screenshots help you diagnose errors and also help us verify that the selections and interactions were performed correctly.
Given all of this data, we can map the machine learning data directly to the screenshot. This means that when you want to edit tests, you can directly make certain changes straight from the last execution screenshot.
Note: Smart Screenshots are not available in certain situations:
- ML Data must have been collected for the previous step's execution, only executions starting April 2021 and later support Smart Screenshots
-
Sometimes ML data cannot be collected for a variety of reasons, try executing the test again if Smart Screenshots are not working as expected
Let's look at three of these Smart Screenshot features:
- Quick Select allows a user to update the element, since Functionize already knows all the elements on the screen as they relate to the screenshot, the user can simply click on a different element and this Quick Select can be used in a variety of use cases
For example: If your site has changed and we did not self-heal correctly or if you selected the wrong element for some reason. - Quick Add Actions allows a user to update their test to include certain types of actions, if the previous step has ML data to read from, some steps, like PageInit Actions, do not pull ML data, so this Quick Add option is not always available
- SmartFix recommends updates to a user's test if the test has failed, when there are element suggestions, the user can select one of the suggested elements, or the user can select any element, just like with Quick Select