Ok Mohamed.. I can explain things to you..

Capture bitmap is a default property of QTP.

Eg:

Browser().Page().Button().CaptureBitmap(filename)

then

Comparebitmap, u put as a function.


.

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

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