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

Could you please any one give code for the following ? Scenario : Suppose a excel file contains 10 records and earch have 5 fields. how can i input this excel file for datadrive wizard ? Please explain

1461


How does qtp identify gui object?

586


what is object and child object.. explain ..if possible give some example for better understanding ..

1531


Can we Test Welcome Screens and Process Images with QTP

1427


Write a script to verify font style and color of a windows object using descriptive programming

837






What is environment variable in qtp and why to use it?

547


How does you pass optional arguments in qtp?

565


Hoe can we do retesting using functions please give the code for it using login page

1566


Can anybody post some real time scenario in qtp? please its very urgent.

1802


Is it possible to split an action? How?

662


can u please explain what is the exact difference between qtp8.2 and 9.0

1680


PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME

5954


What are the main differences of qtp and win runner?

595


Explain how you can delete excel file in qtp?

592


What is the use of "New Property" in "Add properties" of testobject properties in object repository. How can i use "New properties" while writing scripts if i have assign some values to the testobject properties Can anyone help me? plz

1478