Results 1 to 15 of 15

Thread: QTP object repository

  1. #1
    Contributing Member
    Join Date
    Oct 2007
    Answers
    30

    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,


  2. #2
    Expert Member
    Join Date
    Oct 2007
    Answers
    375

    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


  3. #3
    Contributing Member
    Join Date
    Oct 2007
    Answers
    30

    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


  4. #4
    Contributing Member
    Join Date
    Oct 2007
    Answers
    30

    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.


  5. #5
    Expert Member
    Join Date
    Oct 2007
    Answers
    375

    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


  6. #6
    Contributing Member
    Join Date
    Nov 2007
    Answers
    88

    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


  7. #7
    Contributing Member
    Join Date
    Oct 2007
    Answers
    30

    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.


  8. #8
    Junior Member
    Join Date
    Oct 2007
    Answers
    5

    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


  9. #9
    Contributing Member
    Join Date
    Oct 2007
    Answers
    30

    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.


  10. #10
    Junior Member
    Join Date
    Oct 2007
    Answers
    9

    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


  11. #11
    Junior Member
    Join Date
    Nov 2007
    Answers
    3

    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....


  12. #12
    Contributing Member
    Join Date
    Oct 2007
    Answers
    30

    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.


  13. #13
    Contributing Member
    Join Date
    Oct 2007
    Answers
    30

    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


  14. #14
    Junior Member
    Join Date
    Oct 2007
    Answers
    9

    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


  15. #15
    Contributing Member
    Join Date
    Oct 2007
    Answers
    30

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact