Results 1 to 7 of 7

Thread: update Object Repositorhy at Runtime

  1. #1

    update Object Repositorhy at Runtime

    Hi Friends,

    How can we update the Object Repository in Runtime with new properties?

    Can anybody provide clear code on this topic?

    Thanks

    Suresh K


  2. #2
    Expert Member
    Join Date
    Jan 2007
    Answers
    211

    Re: update Object Repositorhy at Runtime

    You need to Create the QTP Application object, here all the API's of QTP including that of Object Repository are Present which can serve the purpose.


    regards
    Nawab


  3. #3

    Re: update Object Repositorhy at Runtime

    Quote Originally Posted by NawabShaikh View Post
    You need to Create the QTP Application object, here all the API's of QTP including that of Object Repository are Present which can serve the purpose.


    regards
    Nawab

    Thank you for your answer. I need clear code for updating the Object Repository with "New Property" values at run time


    Advanced Thanks

    Suresh K


  4. #4
    Expert Member
    Join Date
    Jan 2007
    Answers
    211

    Re: update Object Repositorhy at Runtime

    Browser().Page().Frame().WebButton("Ok").SetTOProperty("name =: LH")

    regards
    Nawab


  5. #5
    Junior Member
    Join Date
    Mar 2008
    Answers
    4

    Re: update Object Repositorhy at Runtime

    We can update the values of Object at runtime using SetROProperty

    Browser().Page().Webedit().SetROProperty("name").Value = "abc"

    We can get runtime object values using getROProperty();

    If wrong Correct me..


  6. #6
    Expert Member
    Join Date
    Jan 2007
    Answers
    211

    Re: update Object Repositorhy at Runtime

    SetROProperty ....There is no such method.


    Regards,
    Nawab


  7. #7
    Contributing Member
    Join Date
    Nov 2007
    Answers
    48

    Re: update Object Repositorhy at Runtime

    Hi.

    Please read the following in detail.

    Objcet Repositry remains Read Only during Record and Run Session but the first time QuickTest encounters an object during a run session, it creates a temporary version of the test object for that run session. QuickTest uses the object description to create this temporary version of the object. For the remainder of the component, QuickTest refers to the temporary version of the test object rather than to the test object in the object repository

    So, You can modify the properties of the temporary version of the object during the run session without affecting the permanent values in the object repository by adding a SetTOProperty statement in a user-defined function.

    Use the following syntax for the SetTOProperty method:

    Object(description).SetTOProperty Property, Value



    Cheers
    SYCHO


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