Results 1 to 2 of 2

Thread: Call Objects in Script

  1. #1
    Junior Member
    Join Date
    Dec 2007
    Answers
    1

    Call Objects in Script

    I have a below query.

    I have a created a script1 in Per Action mode in QTP 9.2.
    I want to use the objects of script1 to Script2.
    In this case wht I did is that I exported all the objects of that script1 to a file with the extension of .tsr.
    Then how to call those objects in script2?

    can you plz suggest me the best solution?

    Kind Regards

    Ramz


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

    Re: Call Objects in Script

    Hi,

    Since you have already completed the task of migrating your per action Repository to a .tsr (Shared Repository), to use the objects in Action2 you would have to associate Action 2 with Shared Repository.

    Open Action 2. Under Resources, navigate to Associate Repositories. Browse and select the .tsr file. You would find all actions present within the test displayed. Select Action 2 and Action 1 and click on move button.

    This associates Action 2 with the .tsr and you can use all objects in Action 2.

    Cheers...


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