ZenoTest
ZenoTest — Windows desktop UI test automation for Qt, WPF, WinForms & native apps. Record, script, and run automated GUI tests with CI/CD integration.

VerifyScreenComparePixelExact

void VerifyScreenComparePixelExact(string ctrl,
string screenshotSelector,
float tolerance = 0.01,
int colorDelta = 10)

Description
Compares the current visual appearance of the specified control with its reference image.
The comparison passes if the difference is within the defined tolerance and color delta.

Parameters
- ctrl - The control to compare.
- screenshotSelector - The screenshot key to compare against (e.g. "default", "cmp01").
- tolerance - (optional) Allowed percentage of differing pixels (default = 0.04).
- colorDelta - (optional) Maximum allowed per-channel color difference (default = 10).

Example
void main()
{
    VerifyScreenComparePixelExact("BUTTON_OK", "default");
    VerifyScreenComparePixelExact("MAIN_WINDOW", "cmp01", 0.02, 15);
}
#define #include CloseAUT Console mode do...while DoubleClick Execute Fail File for GetAUTFileVersion GetAUTProductVersion GetAUTQtVersion GetAUTSuspectedCompiler GetAUTSuspectedFramework GetCurrentWorkingDir GetName GetProcessID GetProcessIDHandle GetQtProperty GetText GetValue Handle HasFocus IsAUT64Bit IsChecked IsEnabled IsVisible LeftMouseClick LeftMouseDown LeftMouseUp MiddleMouseDown MiddleMouseUp MouseWheel Pass Predefined Constants Print rand RightMouseClick RightMouseDown RightMouseUp Script Language SendKeys SendMessage SetFocus SetNotFoundBehavior SetQtProperty ShellProcess Sleep StartAUT string TerminateProcess TimerStart TimerStop TimerVerifyLess vec2d VerifyContains VerifyEndsWith VerifyEqual VerifyExists VerifyGreater VerifyLess VerifyNotEqual VerifyNotExists VerifyScreenCompareEdgeBased VerifyScreenComparePixelExact VerifyStartsWith while