Automation Testing Question:
Download Job Interview Questions and Answers PDF
Do you know images are dynamically changes how to compare two images?
Answer:
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
' 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
Download Automation Testing Interview Questions And Answers
PDF
Previous Question | Next Question |
Suppose a[0]=I a[1]=N a[2]=D like that it gos . . out put we need INDIA? | What is the your roles and responsibilities as automation testing engineer? |