images are dynamically changes how to compare two images

Answers were Sorted based on User's Feedback



images are dynamically changes how to compare two images..

Answer / 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

images are dynamically changes how to compare two images..

Answer / guru

Set Obj = CreateObject("Mercury.FileCompare")
Flag = Obj.IsEqualBin(Img1, Img2, 1, 1)

Flag = 1 both images are same
Flag = 0 both image are not same

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

what is Unicode Compatibility ? HOw does this makes a diffrence from Winrunner.?

2 Answers  


Expalin Text/Text Area Checkpoint

1 Answers   Crea,


I have many listboxes in my application. I have to check whether the contents inside the listboxes are in sorted order or not..can anyone please send the code as early as possible

0 Answers  


Among all the check points what is the most important checkpoint?

1 Answers  


How to record a qtp script ?

0 Answers  






How To write script in QTP For Field Validation Example: password Field is accepting A range 8-20 characters only.How to write script?

3 Answers  


What are the advantages of QTP over WinRunner?

5 Answers   CTS,


Explain the benefits of quick test pro(qtp)?

0 Answers  


how to display message with out using msgbox function?

5 Answers   AppLabs,


Is it possible to split an action? How?

0 Answers  


write qtp descriptive programming to activate multiple notepads? please urgent friends

1 Answers   TCS,


I'm quite new at QTP. Im doing a web-based app testing. I create something new item and a new link is created in the home page. This link is dynamic as it changes every 3 seconds. Obviously the new link is not in my Object Repo and I am trying to find a way how can I do a check or get the propery of the link I created. I can do it on keyword, but I need to do a check on expert mode, vbscript. I always get an error that is not identified whenever i try to check it (browser(b),page(p).link(newlink). Any idea?

4 Answers  


Categories