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

Can we run multiple QTP scripts one after the other without manual intervention? How?

0 Answers  


Hi Guys, here I am posting one question. Wen u r working with Notepad. If it is not responding in the middle of TEst...what u will do.

7 Answers  


when we open flight reservation.at that time where we found synchronization point() and wait function().i m confused .i want this answer.

1 Answers  


Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?

0 Answers  


Have you faced any problems with object repository?

0 Answers  






What are the challenges u faced in testing with crm domain? How u overcome with?

0 Answers  


What does mean by Scope of Automation?n How we defined it?

0 Answers   L&T,


What is the diff between doing parametarisation using Data Driven wizard or manually. when do we go for manual para...and when do we use Data driver wizard..can anybody answer it ..Thanks in advance

6 Answers   Siemens,


I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format, as i'm not in a possition to afford any 'Fee' to join in any institutions. Hence, if possible, kinldy mail PDF file to my mail-ID: chakri_avala@yahoo.co.in Regards, Chakradhar Yadav.

95 Answers   Cap Gemini, Citrix, CTS, IBM, Logistics, QA InfoTech,


What is the difference between run time object and test object?

0 Answers  


how do u plan test automation?

0 Answers  


Diff b/w Test Design and Test case design? What is the Design Review's and Code Review's. When will you conduct tese reviews?

1 Answers  


Categories