-
Junior Member
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
-
Expert Member
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
-
Forum Rules