Comparison Settings for SmartUI - Pixel to Pixel Comparison
Our Pixel to Pixel (P2P) Comparison Options
We offer multiple options for comparing the Baseline and the Test Output screenshots captured during your automation testing suites.
Here are the following common test setting options -
largeImageThreshold- Sets the pixel granularity at the rate to which the pixel blocks are created.errorType- Show the differences in the output screen by identifying the pixel changes type and capture the intended view.ignore- To remove the Pixel to Pixel false-positive rate in identifying the screenshot.transparency- To help adjust test transparency settings and strike a balance between highlighting in visual screening.boundingBoxes: [box1, box2]- By specifying a bounding box measured in pixels from the top left, you can narrow down the area of comparison.ignoredBoxes: [box1, box2]- By specifying a bounding box measured in pixels from the top left, you can exclude part of the image from comparison.ignoreAreasColoredWith- By specifying a RGBA color, you can exclude colored areas of the image from comparison.
Examples with comparison settings
Image Threshold
The image threshold settings helps you in analyzing the granularity of the pixel resolution for each block which shall be created by the algorithm for the comparison.
You can specify the following capability in the following format:
- Selenium
- Cypress
Make changes in your your test configuration file
let capabilities = {
/* ....Your Selenium capabilities go here */
"smartUI.project": "<Your Project Name>" // Your SmartUI project name
"smartUI.options": {
"largeImageThreshold": 100 // The image threshold for comparison the min of 100 and max of 1200
}
};
Add the following in your /project/lambdatest-config.json
"smart_ui": {
"project": "<Your Project Name>" // Add your SmartUI Project Name here
"options": {
"largeImageThreshold": 100 // The image threshold for comparison the min of 100 and max of 1200
}
}