Image validation does not work

Ranorex Studio, Spy, Recorder, and Driver.
Dudla
Posts: 3
Joined: Fri Mar 24, 2023 7:50 am

Image validation does not work

Post by Dudla » Fri Mar 31, 2023 9:10 am

Ranorex version: 10.5.3 + git43e841eb

We prepared a test solution on Server A (working platform) with usage of Image validation. Validation in detail is using 'containsImage' at 'Screenshot_x'.
On Server A everything is running well.

For daily test runs we´re using a seperate server (Server B).
Image validation is not running here.
We receive following Warnings / Errors:

System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='_BrushButtonBackgroundDisabled'
Warning: Using color fallback for 'ColorControlForeground'.
Warning: Using color fallback for 'ColorControlForeground'.
Warning: Using color fallback for 'ColorPanelBackground'.
Warning: Using color fallback for 'ColorControlForeground'.

Does anybody having an idea how to resolve the failures?
You do not have the required permissions to view the files attached to this post.

mk20
Posts: 6
Joined: Fri Aug 04, 2023 11:41 am

Re: Image validation does not work

Post by mk20 » Thu Nov 16, 2023 11:26 am

I receive the same warning in my Test, too, when I run the the whole test case and just after Ranorex can not capture a screenshot during an image based validation.
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='_BrushButtonBackgroundDisabled'

Surprisingly I receive no error when I run only the module, in which this image validation is executed. It works fine and screenshot is captured and successfully compared.
P.S.: I got this warning message after I run the test in "maintenance mode".
as far as I understood the error occurs when Ranorex returns "null" value instead of a screenshot (which is a return value) during the validation. No screenshot is considered as "null" value which makes the comparison impossible and causes a failure.

(Using Ranorex Version 10.7.5)