Image comparasion validation problems
Posted: Tue Mar 29, 2011 8:01 pm
I can't make image comparasion to work.
Here are steps to reproduce:
* In Recorder, record following steps:
- start msPaint
- open some existing image from the disk
* start Ranorex Spy, capture screenshot of that image in msPaint (ElementMspaint), save it to "C:\captureTest\test.png"
* add validation code to the script:
It fails all the time. Why?
Here are steps to reproduce:
* In Recorder, record following steps:
- start msPaint
- open some existing image from the disk
* start Ranorex Spy, capture screenshot of that image in msPaint (ElementMspaint), save it to "C:\captureTest\test.png"
* add validation code to the script:
Code: Select all
Bitmap image = Imaging.Load ("C:\\captureTest\\test.png");
Validate.ContainsImage (repo.FormScreenShot_png___Paint.ElementMspaintInfo,
image,
Imaging.FindOptions.Default,
"Validation: All figures are correctly drawn");