your requirement is little bit vague and tedious.
you need to define and be specific on what you need to compare.
lets say you want to compare all textboxes in two webpages, and you are
comparing "name" property for it. you can use childobject method to retirve
all object with similar class.
so you can create an array1 for page1 which holds all textboxes names on
page 1.
you can create an array2 for page2 which holds all textboxes names on
page 2.
now you can create both arrays.
you can continue with other kind of objects like link, table, button, label
ect..
Set oDesc = Description.Create()
oDesc(”micclass”).Value = “WebEdit”
Set rc = Browser(”title:=XXX”).Page(”title:=XXX”).ChildObjects(oDesc)
num = rc.Count()
ReDim page1Edit(num)
For i=0 to num-1
page1Edit(i) =rc(i).GetRoProperty("name")
Next
good luck ..
Bhavin
On Sunday, October 20, 2013 7:23:51 AM UTC-4, suresh varatharajan wrote:
>
> Hi Bhavani,
>
> I need to compare all the objects in two web pages. I am going to compare
> around 250 pages as per the requirement.
>
> Please help me on that.
>
> Regards,
> Suresh
>
>
> On Sun, Oct 20, 2013 at 3:26 AM, bhavin v patel
> <[email protected]<javascript:>
> > wrote:
>
>> what you need to compare between two pages? its title, url or name? you
>> can do
>>
>> if page1.GetRoProperty("name of property") =page2..GetRoProperty("name of
>> property") then
>> pass
>> else
>> fail
>> end if ..
>> you can get value of property into an arrays and compare two arrays also.
>>
>>
>> On Saturday, October 19, 2013 3:25:44 AM UTC-4, suresh varatharajan wrote:
>>>
>>> Hi Guys,
>>>
>>> How to compare two web page objects using QTP and how to find the page
>>> difference and Error (Page cannot be found).
>>>
>>> Please help me to solve the above issue.
>>> --
>>> Regards,
>>> Suresh.V
>>>
>> --
>> --
>> 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]<javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> Regards,
> Suresh.V
> Ph:91-9940641701
>
--
--
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.