ZenoTest
ZenoTest — Windows Desktop UI Testautomatisierung für Qt, WPF, WinForms & native Apps. Aufzeichnen, skripten und automatisierte GUI-Tests mit CI/CD-Integration ausführen.

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 abs Array ceil CloseAUT Console mode do...while DoubleClick DragAndDrop Execute Fail File floor for Format GetAUTFileVersion GetAUTProductVersion GetAUTQtVersion GetAUTSuspectedCompiler GetAUTSuspectedFramework GetClipboard GetCurrentDate GetCurrentTime GetCurrentWorkingDir GetEnv GetName GetProcessID GetProcessIDHandle GetQtProperty GetText GetTimestamp GetValue Handle HasFocus IsAUT64Bit IsChecked IsEnabled IsVisible LeftMouseClick LeftMouseDown LeftMouseUp max MiddleMouseClick MiddleMouseDown MiddleMouseUp min MouseMove MouseWheel Pass pow Predefined Constants Print rand Regex RegexMatch RightMouseClick RightMouseDown RightMouseUp round Script Language SendKeys SendMessage SetClipboard SetFocus SetGlobal SetQtProperty ShellProcess Sleep sqrt srand StartAUT string TerminateProcess TimerStart TimerStop TimerVerifyLess vec2d VerifyContains VerifyEmpty VerifyEndsWith VerifyEqual VerifyExists VerifyFalse VerifyGreater VerifyGreaterEqual VerifyLess VerifyLessEqual VerifyNotEqual VerifyNotExists VerifyScreenCompareEdgeBased VerifyScreenComparePixelExact VerifyStartsWith VerifyTrue WaitForControl WaitUntilEnabled WaitUntilVisible while