Or u can put it as a function and save it as a library.

Function CompareBitmap(ExpectedBmp, ActualBmp)

 Set fCompare = CreateObject("Mercury.FileCompare")

   If fCompare.IsEqualBin(ExpectedBmp, ActualBmp, 0, 1) Then
     Reporter.ReportEvent micPass,"Bitmap Verification",ActualBmp&" and
"&ExpectedBmp&" are same"
     CompareBitmap=True
  Else
     Reporter.ReportEvent micFail,"Bitmap Verification",ActualBmp&" and
"&ExpectedBmp&" are not same"
     CompareBitmap=False
 End If


End Function


*-Thanks & Regards,*

*RAJ KAMAL*
*
*

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to