Skip to content

Files

Latest commit

 

History

History
222 lines (174 loc) · 6.78 KB

build-options-for-visual-regression-testing.md

File metadata and controls

222 lines (174 loc) · 6.78 KB
id title sidebar_label description keywords url slug
smart-ui-build-options
Build Configuration and Options for Smart UI
Build Config & Options
Navigate through our support doc to adeptly build Configuration & Options for Smart UI using LambdaTest!
Visual Regression
Visual Regression Testing Guide
Visual Regression Test Automation
Visual Regression Automation Testing
Running Visual Regression Tests
Visual Regression Testing Online
Run Visual Regression
Visual Regression Run Specific Test
Visual Regression Testing Environment
How to Run Visual Regression Tests
smart-ui-build-options/

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';


<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify({ "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "name": "LambdaTest", "item": "https://www.lambdatest.com" },{ "@type": "ListItem", "position": 2, "name": "Support", "item": "https://www.lambdatest.com/support/docs/" },{ "@type": "ListItem", "position": 3, "name": "Smart Visual Testing", "item": "https://www.lambdatest.com/support/docs/smart-ui-cypress/" }] }) }} ></script>

Using the LambdaTest platform, perform regression testing in just one click and explore various possible solutions for grouping your screenshots into different builds and map as per your testing suite needs.

Enabling build mapping for multiple screenshots

If you have multiple screenshots running the same test suite and want to run the comparison for the same test suite. We have to enable the mapping with the smartUI.build to be added your capabilities.

let capabilities = {
    // highlight-next-line
    "smartUI.build": <Your_Build_Name> // Please add your build name of choice here
}
"smart_ui": {
    // highlight-next-line
      "build": <Your_Build_Name> // Please add your build name of choice here
}
const capabilities = {
'LT:Options': {
    // highlight-next-line
      "smartUIBuildName": <Your_Build_Name> // Please add your build name of choice here
    
}}
const capabilities = {
'LT:Options': {
    // highlight-next-line
      "smartUIBuildName": <Your_Build_Name> // Please add your build name of choice here
    
}}
const capabilities = {
'LT:Options': {
    // highlight-next-line
      "smartUIBuildName": <Your_Build_Name> // Please add your build name of choice here
    
}}

Enabling build as a baseline

If you want to mark your build as a baseline from your test suite while executing tests then you have to enable the below mentioned capability configuration needs to be enabled.

let capabilities = {
  // highlight-next-line
  "smartUI.baseline": true / false, // Enable if you want to update to a new baseline build
};
"smart_ui": {
    // highlight-next-line
      "baseline": true/false // Enable if you want to update to a new baseline build
}
const capabilities = {
'LT:Options': {
    // highlight-next-line
      "smartUIBaseline": true // Please add if you want to make this build as baseline
    
}}
const capabilities = {
'LT:Options': {
    // highlight-next-line
      "smartUIBaseline": true // Please add if you want to make this build as baseline
    
}}
const capabilities = {
'LT:Options': {
    // highlight-next-line
      "smartUIBaseline": true // Please add if you want to make this build as baseline
    
}}

Build Features

The following are the list of features that are available for the build process in SmartUI:

  • All the screenshots are grouped together as a one build.
  • The screenshots are mapped from the baseline to the Comparison screenshot in the same sequential pattern as per the baseline build.
  • Add additional screenshots if needed for the existing build by using the same build name in the capabilities. This will add new screenshots to the build.
  • You can also update any build of choice as a new Baseline build.

:::info We currently only support one baseline for one project in our current version. We recommend you to create a new project for multiple baseline builds :::


Build Status Information

We are provide multiple build status options for the project owners to check the status of builds and take required actions to the screenshots by the approver(s).

<img loading="lazy" src={require('../assets/images/smart-visual-testing/build-status-dotlapse.webp').default} alt="cmd" width="768" height="373" className="doc_img"/>