# Visual Regression Testing With Qyrus Mobile

![New\_Visual\_Testing\_Overview](/files/BlwDQTPwe8Ih8RoloDej)

*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:$$Pixel Pass = \dfrac{MatchingPixels}{Total Pixels}$$

## 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](/mobile-testing/execution/visualtestingexecution.md)
* [Visual Testing as an Action Type](/mobile-testing/build/actiontypes.md#visual-testing-verify-screen)
* [Understanding the Visual Report](/mobile-testing/reports/visualtestingreports.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.qyrus.com/mobile-testing/advanced-features/visual-regression-testing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
