Hi,
I don't know how much feasible for you. Try this and see if it is helpful for you.
1. Open QTP, go toTools>Options>Folders tab
2. Set location from where you want look for the scripts using '+' button and make that first in the list to look for
Ex: ...\repository
3. Click OK
4. When you try to reuse the Action, means when you are trying to call Action using "Insert call to Existing Action" use relative path instead of full path.
Ex:
Suppose I have folder structure,
...\Tests\XYZ\scripta
I would provide path in Folder tab till ...\Tests
And when I Call the Action, will provide the relative path to above folder("XYZ\scripta") in From Test to look into.
So, in this way when you change the location of your script, you just need to modify the QTP search file location in Tools>Option>Folders tab.
In your case:
"...\Tests" to "...\repository", so when QTP tries to run a script with a call to a reusable action will not fail due to missing resource.
Alternatively:
Open Missing resources view> Double Click on the link for which it shows Missing Action >In Select Action correct the location
Does it make any sense to your question?
I don't know how much feasible for you. Try this and see if it is helpful for you.
1. Open QTP, go toTools>Options>Folders tab
2. Set location from where you want look for the scripts using '+' button and make that first in the list to look for
Ex: ...\repository
3. Click OK
4. When you try to reuse the Action, means when you are trying to call Action using "Insert call to Existing Action" use relative path instead of full path.
Ex:
Suppose I have folder structure,
...\Tests\XYZ\scripta
I would provide path in Folder tab till ...\Tests
And when I Call the Action, will provide the relative path to above folder("XYZ\scripta") in From Test to look into.
So, in this way when you change the location of your script, you just need to modify the QTP search file location in Tools>Option>Folders tab.
In your case:
"...\Tests" to "...\repository", so when QTP tries to run a script with a call to a reusable action will not fail due to missing resource.
Alternatively:
Open Missing resources view> Double Click on the link for which it shows Missing Action >In Select Action correct the location
Does it make any sense to your question?