images are dynamically changes how to compare two images

Answer Posted / karthick

hai friend..
for this you can use isequalbin method..i am showing below

' Code for comparing two images
Set CompareUtil = CreateObject("Mercury.FileCompare")
IsEqualFlag = CompareUtil.IsEqualBin(Img1, Img2, 0, 1)


in above code 0 means in file compare class showing no
error ; syntax FC_NO_ERROR = 0
1 means in file compare class showing difference of
size; FC_DIFF_SIZE = 1

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the concept of object repository and how quicktest professional recognises objects?

556


Hi Samrat, Thank u very much, what u said it is right.

1341


What is an object repository?

602


What VBScript operators, functions, and statements do you use in QuickTest Professional?

2170


Difference between action & Reusable action?

684






How can i get the image text that changes dynamically? Here i have used "GetROProperty", but it's not working. I used like Ex:Browser("webmail").Page("inbox").image ("captchaimage).getroproperty("innertext/text/value")

1418


What are the data types in qtp?

665


Suppose you are using shared objects repository in your test and you want to split your present action? At that time shared object repository is single or it’s also splits?

643


What is Distributed testing? How does UFT support it?

605


Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out

1577


can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process

1279


I want to configure the OR and library files to a particular QTP test during run time. Note: OR and Library files are located in Quality Center. Is it possible in QTP? Anybody having code?

1370


how to evalute defects in QTP script?

1485


How do you test DLL files using automation Tool QTP?

2729


How you know that a test case is a regression test case

3055