images are dynamically changes how to compare two images
Answers were Sorted based on User's Feedback
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 |
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 |
What is the condition or scenario that leads the use of object spy in qtp? (while recording we can get all the properties) then wat leads to use this?
how do u handle an object without name using QTP 9.2?
How can we QTP Scripts in xml format? is there any way to do so?
How to Analyze the Checpoint results by Checking Bitmaps?
Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet.
What is difference between QC and TD?
How To Export The Screen Shoots Along With The Test Reports In QTP Version 10? Thanks In Advance SenthilKumar
I am trying to read the rediffmail usign the below code. But facing problem, while i user to get the link of the mail, i am getting all the link of the page, While i just want to get only mail name - link (not all the link of an page) so that i able to read the mail message by clcking on them in qtp. Dim Lnk,Webcheckbox Set Lnk= Description. Create '********* To count and display the webcheckbox Lnk("micclass" ).value=" Link" set LinkName= Browser("Welcome to Rediffmail:" ).Page("Welcome to Rediffmail:" ).ChildObjects( Lnk) LinkCount=LinkName. Count msgbox LinkCount For i=1-1 to LinkCount-1 DataTable.SetCurren tRow(i) DataTable.Value( "Name",1) =LinkName( i).GetRoProperty ("name") Next Waiting for the reply Praveen Saini
If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?
hi in real time who will execute the qtp test scripts? my faculty said, in a companty automation testers are written the test scripts and manual testers are execute the test scripts...IS IT RIGHT OR NOT?
what is clean sweep?
why do we go for Test Automation?