Hi,
The scenario is
1. login to application
2. perform some action
3. It will display one image in the screen
4. capture screenshot
5. logout
6. login again
7. The image should be there in the main screen (this is the business requirement)
8. Now compare the two images
Expected : The previous and current image should be same
Please find the attached screenshot and snapshot both
How to compare two images in Ranorex
How to compare two images in Ranorex
- Attachments
-
- Canvas-Drawing-Canvas.rxsnp
- (144.69 KiB) Downloaded 17 times
-
- compare images.png (873.78 KiB) Viewed 1151 times
Re: How to compare two images in Ranorex
Code: Select all
Ranorex.Unknown element;
Bitmap expected_image;
Imaging.FindOptions find_options;
Validate.Options validate_options;
String description;
Ranorex.Validate.CompareImage(element, expected_image, find_options, description, validate_options);
Re: How to compare two images in Ranorex
Hi,
Thanks for your response,
As I shared the snapshot and screenshot, can you please help me with the values I have to enter in the place of these parameters what we are passing in here:
Ranorex.Validate.CompareImage(element, expected_image, find_options, description, validate_options);
Basically, in place of element, expected_image and so on........
Regards
Thanks for your response,
As I shared the snapshot and screenshot, can you please help me with the values I have to enter in the place of these parameters what we are passing in here:
Ranorex.Validate.CompareImage(element, expected_image, find_options, description, validate_options);
Basically, in place of element, expected_image and so on........
Regards