| || |
Upgraded to QTPv10 - New object repository setup??
I recently upgradeded from QTP v8.2 to v10. I know there have been major changes to the object repository manager and set up, etc, since v8.2, but I can't seem to figure it out and the Help isn't really much help!
I want to be able to use one shared object repository / TSR, as before, which can be accessed and updated by any action, anywhere in my test script.
With QTPv8.2 it was just a case of pointing the settings to the shared repository when starting up a new script, no problem adding objects as you go. But with v10 it creates a new local repository by default for each new action. So if I'm in Action2 and I try to reference an object created in Action1 it will not recognise this as there are only local repositories for Action1 and Action2, etc.
As per v10 Help instructions, I created a shared repository / TSR via Object >> File >> Export and manually associated all the actions with this TSR via Associate Repository and I thought it would resolve the problem, but it made no difference. I still could only access Action1 objects in Action1, Action2 objects in Action2, etc.
I'm sure there must be a simple solution, but as I'm new to v10 I haven't found one yet! Anybody got any advice?
Your help would be appreciated!
Re: Upgraded to QTPv10 - New object repository set
Are you sure you have different names of objects located in LOR of Action1 and SOR associated to Action1?
P.S. try to use calc.exe to reproduce the situation with buttons. Lets say LOR has WinButton1("1") SOR has WinButton("2"). And look - will you be able to click on "1" and "2" buttons by replaing simple script.