QTP 11 - How to capture all the objects in a window

2,491 views
Skip to first unread message

Aruna

unread,
Mar 22, 2011, 5:47:41 AM3/22/11
to QTP - HP Quick Test Professional - Automated Software Testing
In QTP 11 , by default it is not capturing all the objects in our
application web page.( Web 2.0 - Dojo based). Is there any specific
setting in QTP 11 to capture all the objects in the web page

Sreedhar

unread,
Mar 22, 2011, 9:06:45 AM3/22/11
to mercu...@googlegroups.com
In addin manager.. Select web 2.0 addin or install web extensibility addin

Sent from my iPhone

> --
> 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 Mercu...@googlegroups.com
> To unsubscribe from this group, send email to
> MercuryQTP+...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en

Aruna Nirmala

unread,
Mar 22, 2011, 11:09:23 AM3/22/11
to mercu...@googlegroups.com
Thanx for the reply, Can you please explain the difference between the functionality of Object spy and Object Repository?
--
regards ,
Aruna.T

kjdeepu10

unread,
Mar 23, 2011, 12:23:20 AM3/23/11
to QTP - HP Quick Test Professional - Automated Software Testing
Object spy : it will lists the properties of the object in the open
appln.
Object repository : it stores the object properties of the object and
we can save it.

On Mar 22, 8:09 pm, Aruna Nirmala <arunanirm...@gmail.com> wrote:
> Thanx for the reply, Can you please explain the difference between the
> functionality of Object spy and Object Repository?
>
>
>
>
>
> On Tue, Mar 22, 2011 at 6:36 PM, Sreedhar <sreedhar6...@gmail.com> wrote:
> > In addin manager.. Select web 2.0 addin or install web extensibility addin
>
> > Sent from my iPhone
>
> > On Mar 22, 2011, at 5:47 AM, Aruna <arunanirm...@gmail.com> wrote:
>
> > > In QTP 11 , by default it is not capturing all the objects in our
> > > application web page.( Web 2.0 - Dojo based). Is there any specific
> > > setting in QTP 11 to capture all the objects in the web page
>
> > > --
> > > 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 Mercu...@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > MercuryQTP+...@googlegroups.com
> > > 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
> > "QTP - HP Quick Test Professional - Automated Software Testing"
> > group.
> > To post to this group, send email to Mercu...@googlegroups.com
> > To unsubscribe from this group, send email to
> > MercuryQTP+...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/MercuryQTP?hl=en
>
> --
> regards ,
> Aruna.T- Hide quoted text -
>
> - Show quoted text -

Shawn

unread,
Mar 23, 2011, 8:04:11 AM3/23/11
to QTP - HP Quick Test Professional - Automated Software Testing
QTP only learns the objects you touch while in Recording mode.
However the better approach is to take the time to navigate your
application, learning all the objects and then saving them to a Shared
Object Repository for reuse on all your other test scripts you end up
building in order to have a central repository of object definitions
to maintain.

Based on that approach the easiest way to learn ALL the objects in
this learning process is to:
1. Open a new empty test script
2. Open the Object Repository
3. Manually navigate to your first window in your application
4. In the Object Repository click the "Add Objects to Local" icon or
select "Object > Add Objects to Local" from the menu
> Your mouse changes to a hand icon, click on the title bar of the
window
> The "Object Selection - Add to Repository" dialog box appears
and your window should be highlighted in the list. If it is not, then
click on the top level window in the displayed hierarchy and click the
OK button.
> The "Define Object Filter" dialog appears and select the 3rd
radio button "All object types" and click OK.
> At this point ALL the objects in the window are learned and
added to the Object Repository.
5. Leave the Object Repository open and Now navigate to the next
window in your application and repeat this learning process.

This is how you learn all the objects in your windows for your
application. It is a little tedious as you have to manually navigate
thru your application (but QTP wouldn't know how to do that without
script code) but the object learning process is significantly faster
using this approach. A single click on a window and you can learn
every object in the window is pretty cool.

Good luck.
---
Shawn LoPorto
Learn QTP Online Today!
Visit: http://www.asi-test.com/ASI/products/

Aruna Nirmala

unread,
Mar 23, 2011, 12:16:39 PM3/23/11
to mercu...@googlegroups.com, Shawn
Hai Shawn,

AS per your steps,


>>  > The "Define Object Filter" dialog appears and select the 3rd
radio button "All object types" and click OK.
>>  > At this point ALL the objects in the window are learned and
added to the Object Repository.

 Im not getting the "Define Object Filter" window in my application which developed in dojo flat form. So Im unable to select "All object types". Currently Im able to select only one object at a time(as per object learning ste).


--
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 Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en



--
regards ,
Aruna.T
Reply all
Reply to author
Forward
0 new messages