Image validation with different image

Ask general questions here.
SanMan
Posts: 208
Joined: Tue Apr 13, 2010 9:59 am

Image validation with different image

Post by SanMan » Wed Feb 12, 2020 6:41 am

Hi,

I have a recording with image validation.

If I want to use this same image validation with different image (meaning validating the same area where image is displayed), can I call the validation recording with parameter (image number) that I want to validate now?

Do I need to convert this recording to user code and create the selection there? And then I need to copy the Image Feature Data to user code?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 5903
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Image validation with different image

Post by odklizec » Wed Feb 12, 2020 8:29 am

Hi,

To be able to set a custom image for image validation, you will have to use code. Converting Validation action to user code is the most obvious approach, but you will have to edit the code as well. I would suggest to search this forum, as image validation via code was discussed many times in the past, e.g. here:
https://www.ranorex.com/forum/image-val ... tml#p41188
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

sammyjason1
Posts: 2
Joined: Wed Feb 12, 2020 10:00 am

Re: Image validation with different image

Post by sammyjason1 » Wed Feb 12, 2020 10:12 am

Hi,
To be able to set a custom image for image validation, you will have to use code. Converting Validation action to user code is the most obvious approach, but you will have to edit the code as well. I would suggest to search this forum, as image validation via code was discussed many times in the past, e.g. here:
https://www.ranorex.com/forum/image-val ... tml#p41188
[/quote]

Thanks for your reply, user codes are really helpful