How do you compare two images in a web page using QTP

Questions by gilchristdhoni

Showing Answers 1 - 2 of 2 Answers

function comparebitmap(actualbmp, expectedbmp)
set fcomapre=createobject("mercury.filecompare")
if fcomapre.isequalbin(actualbmp, expectedbmp,0,1)
then
          reporter.reportevent micpass,"Comparing Bitmap", actualbmp &"and" &expectedbmp &"are same"
          comparebitmap=true
else
         reporter.reportevent micpass,"Comparing Bitmap", actualbmp &"and" &expectedbmp &"are not same"
          comparebitmap=false

endif

comparebitmap("Path of actual bitmap","path of expected bitmap")

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions