Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

QTP object repository

This is a discussion on QTP object repository within the QTP forums, part of the Software Testing category; Hi, I am using QTP 9.0 In object repository i select the item and click the "highlighted in the application" option But sometimes the objects are not highlighted in the ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 11-01-2007
Contributing Member
 
Join Date: Oct 2007
Location: Chennai
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
Punitha.R is on a distinguished road
QTP object repository

Hi,

I am using QTP 9.0

In object repository i select the item and click the "highlighted in the application" option But sometimes the objects are not highlighted in the application.

Can u help me to find this problem

Thanks,
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-01-2007
Expert Member
 
Join Date: Oct 2007
Location: Mumbai
Posts: 355
Thanks: 4
Thanked 58 Times in 47 Posts
bizzzzzare will become famous soon enough
Smile Re: QTP object repository

Hey Punitha,

It could be that the selected object is duplicated in the repository.
Also incase you are trying to higlight objects that are not in focus -

Say rollover Menu items or Objects that do not appear unless a action is performed, we generally get such messages....

So ensure that the object you are trying to highlight in Object Map is in visible state in AUT.

If still does not work, delete the particular object and add it again to the repository.
Do not add it without deletion as it would casue duplicate object creation

Cheers
Reply With Quote
  #3 (permalink)  
Old 11-03-2007
Contributing Member
 
Join Date: Oct 2007
Location: Chennai
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
Punitha.R is on a distinguished road
Question Re: QTP object repository

Hi bizzzzzare!

I just learned all the objects from that web page.
in that i have to differentiate some links and i have to count that links.
but all links are having same properties names and values.
i added some extra property for that links and try to count that
but i got some general error in my code
this is my code

Set descrip = description.Create()
descrip("html tag").value = "A"
descrip("val").value = "L" (This line is giving error(its my extra added property)
Set v = Browser("B").Page("P").ChildObjects(descrip)
N=v.count
msgbox N
Reply With Quote
  #4 (permalink)  
Old 11-03-2007
Contributing Member
 
Join Date: Oct 2007
Location: Chennai
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
Punitha.R is on a distinguished road
Question Re: QTP object repository

Hi,
in my web page i learned all the links, in this i have to count some group of links.
but all links properties age same. so i added a new property and write the script for add that group of links but i got general error from my script.
This is my code

Set descrip = description.Create()
descrip("html tag").value = "A"
'descrip("val").value = "L"
Set v = Browser("B").Page("P").ChildObjects(descrip)
N=v.count
msgbox N

Plz help to solve this problem

Thx.
Reply With Quote
  #5 (permalink)  
Old 11-05-2007
Expert Member
 
Join Date: Oct 2007
Location: Mumbai
Posts: 355
Thanks: 4
Thanked 58 Times in 47 Posts
bizzzzzare will become famous soon enough
Re: QTP object repository

Hey Punitha,

descrip("val").value = "L" - Is val a valid property that you are trying to assign at runtime. As far as I understand, value is the property listed in GUI Properties.

Why dont you try differentiating those links based on Assertive or Ordinal properties. When I say ordinal I mean - Index,Location, CreationTime etc.

I suppose by using index as an additional property along with Mandatory properties like "Html Tag" and "Name", you could definitely differentiate your links.

Let me know if this works else we could think of resolving your descriptive prog error

Cheers

Umesh Krishnan
Reply With Quote
  #6 (permalink)  
Old 11-05-2007
Contributing Member
 
Join Date: Nov 2007
Posts: 53
Thanks: 16
Thanked 9 Times in 5 Posts
srinii_vasu is on a distinguished road
Re: QTP object repository

Id cookies are there , Tool can't reconize the objects
if u delete all cookies and recording it will reconised

try it once
Reply With Quote
  #7 (permalink)  
Old 11-05-2007
Contributing Member
 
Join Date: Oct 2007
Location: Chennai
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
Punitha.R is on a distinguished road
Re: QTP object repository

Hi Krishnan,

Thanks for ur expiation.
But in my web page i have the pagination links like
1,2,3,4,5 these are all links.
I have to count these links (runtime generated links)
If i differentiate these for name or text or Index,Location, CreationTime etc.
i cant count these links. i can only differentiate each links.
I want some common property for these pagination links then only i can count these run time generated links. i have pannel for these links, But it has the next and previous links also.

Plz explain how i add the new common property for these links and differentiate. already i add the new property "val". now i cant delete this property from list.

i am new for Qtp. try to give me a clear explanation.

Plz help me to count these runtime generated links.

Thx.
Reply With Quote
  #8 (permalink)  
Old 11-05-2007
Junior Member
 
Join Date: Oct 2007
Location: plano
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
arunabala is on a distinguished road
Re: QTP object repository

hi punitha
This is aruna. Can u please give me your mail address. i have some doubts in qtp as well as in manual testing. please
Reply With Quote
  #9 (permalink)  
Old 11-06-2007
Contributing Member
 
Join Date: Oct 2007
Location: Chennai
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
Punitha.R is on a distinguished road
Re: QTP object repository

Hi Aruna,

I am new fro Qtp.
now only learning.
If u have any doubts u can ask me here itself
or u can sent private mail to my mail box.

Cheers

Punitha.
Reply With Quote
The Following User Says Thank You to Punitha.R For This Useful Post:
  #10 (permalink)  
Old 11-07-2007
Junior Member
 
Join Date: Oct 2007
Location: india
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
kpvasanth is on a distinguished road
Smile Re: QTP object repository

Hi,

The following below code is helpful for counting all the links on particular page,

Set oDesc = Description.Create()
oDesc("micclass").Value = "Link"
Set oLinks = Browser("Browser").Page("Booking").ChildObjects(oDesc)

NumberOfLinks = oLinks.Count()

Msgbox(NumberOfLinks)


Regards,
Vasanth
Reply With Quote
  #11 (permalink)  
Old 11-08-2007
Junior Member
 
Join Date: Nov 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Arsh75 is on a distinguished road
Re: QTP object repository

I am facing problems in QTP like above mentioned.
when i play the recorded test then system shows error,. " Object not visible" . Then i used the qtp > option > win.application > setting and record new test, same time another error shows

" Cannot find the "Cancel" object's parent "Add Person Wizard" (class SwfWindow). Verify that parent properties match an object currently displayed in your application."

Many time i try to handled this using spy object but cannot complete atleast one test.

my application is .NET using costomised control.

Any body give some guidelines to me.

Thanks.

Arsh....
Reply With Quote
  #12 (permalink)  
Old 11-15-2007
Contributing Member
 
Join Date: Oct 2007
Location: Chennai
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
Punitha.R is on a distinguished road
Re: QTP object repository

Hi Arsh,

This error displayed for object not added in the repository. so You first learn that object from the application using object repository then verify that object is display in the correct parent. ie, check the window or grid is correct parent for that object.

i think its helpful to you.

Cheers

Punitha.
Reply With Quote
  #13 (permalink)  
Old 11-15-2007
Contributing Member
 
Join Date: Oct 2007
Location: Chennai
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
Punitha.R is on a distinguished road
Re: QTP object repository

Hi vasanth,

Your code is count of links for one page.
Its fine
in that page i have so many links.
In that links i want differentiate some links and take count.
can u help me to overcome this

plz anybody help me

cheers

Punitha
Reply With Quote
  #14 (permalink)  
Old 11-15-2007
Junior Member
 
Join Date: Oct 2007
Location: india
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
kpvasanth is on a distinguished road
Re: QTP object repository

Hi Punith,

You can differentiate the links count based on either by taking similar kind of object descriptions of link object which you would like taking count or take all links names which you want to count, finally search and count the links.


In first case, it may throw error for links which you are not interested, it means, throwing error for not matching links description, so this can be resolved by handling error.


Cheers,
Vasanth
Reply With Quote
  #15 (permalink)  
Old 11-16-2007
Contributing Member
 
Join Date: Oct 2007
Location: Chennai
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
Punitha.R is on a distinguished road
Re: QTP object repository

Hi Vasanth,

All links names are different
so i cant take count a group of links
All links "Html tag" value is "A"

I have links linke 1,2,3,4,5,6,7,8............. Next, Previous, previous page, next page...............

In this i want take a count for 1,2,3,4,5,6.... links only

Thx
Punitha
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
I cannot add a object as winmenu to object repository carina QTP 2 12-05-2007 06:01 AM
Object Repository help nikki_qa QTP 2 11-29-2007 02:15 PM
More then one Object Repository in QTP iliaz.shaik QTP 4 11-02-2007 01:03 AM
Reference to an object in object repository Geek_Guest QTP 0 09-24-2007 07:45 PM
Per-action repository and shared object repository Geek_Guest QTP 1 06-22-2007 05:29 AM


All times are GMT -4. The time now is 06:57 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved