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. |
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 ...
|
|||||||
|
|||
|
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, |
| Sponsored Links |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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. |
| The Following User Says Thank You to Punitha.R For This Useful Post: | ||
|
|||
|
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 |
|
|||
|
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.... |
|
|||
|
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. |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
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 |