Mobile Testing
  • Mobile Testing User Documentation
  • Getting Started
  • .github
    • Infra Checklist
    • version_branch_checklist
  • Advanced Features
    • Instrumentation Feature
    • IntegrationWithTestManagementTools
    • Integrations with Slack and Microsoft Teams
    • Test Sets
    • Visual Regression Testing With Qyrus Mobile
    • Data Management
      • Database Connectivity
      • Global Variables
      • Parameterized Files
    • Versioning and Branching
      • BranchingAndVersioningWithGitHubAndBitbucket
      • Versioning and Branching with Qyrus
  • Build
    • ActionTypes
    • Test Builder
  • Execution
    • Execution
    • Visual Testing Execution
  • Reports
    • Test Reports
    • Visual Test Report
  • Setup
    • Setup
Powered by GitBook
On this page
  • Overview
  • How It Works
  • More Information
  1. Advanced Features

Visual Regression Testing With Qyrus Mobile

PreviousTest SetsNextData Management

Last updated 1 day ago

Visual Test Report

Overview

Visual Regression Testing on Qyrus allows users to compare screenshots between test script executions for visual discrepancies. This can be done on the entire test script or on specific screens as an action type ("Visual Testing Verify Screen"). Comparisons are done after a test script execution completes and passes to ensure consistency between screenshots.

How It Works

Because of the subjective nature of Visual Regression Testing, Qyrus uses a combination of AI and Traditional Computer Vision techniques to capture differences from both a human perception perspective ("Similarity Score") and from a pixel-to-pixel perspective ("Pixel Pass").

Similarity Score The AI component of Visual Testing in Qyrus. Comparisons focus on notable features of the screen (text, images, color, lists). This is meant to mimic the way a human would check for similarities.

Pixel Pass A direct comparison of each screenshot's pixels based on their position on the screen. Pixels that differ are marked as "error pixels". The score is calculated as follows:PixelPass=MatchingPixelsTotalPixelsPixel Pass = \dfrac{MatchingPixels}{Total Pixels}PixelPass=TotalPixelsMatchingPixels​

More Information

Other customizations like ignoring portions of screenshots or setting pixel fail thresholds can help tailor visual comparisons based on the needs of each screen. More details can be found at the links below.

Executing a Visual Regression Test
Understanding the Visual Report
Visual Testing as an Action Type
New_Visual_Testing_Overview