Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Moving reusable action to another test
#1
Not Solved
Hi,

I would like to move some reusable actions from tests where i create them to a "repository" test.

I ve found a way to copy them but actually no way to move them and keep them usable in tests where they are used.

Do i need to recreate them in the new "repository" test ?


regards,
Reply
#2
Not Solved
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?
Reply
#3
Not Solved
Sasmitakumari,

your solution is interresting as will use it to access reusable actions stored in "repository" test. (actions i will directly create and store in the "repository" test)

but it doesn't answer to the move issue for existing reusable actions already stored in others test.

by the way thanks for your answer.

regards
Reply
#4
Not Solved
For existing tests which uses these reusable actions, may be you need to fix them individually using missing resources view after moving/copying the reusable actions to repository.
If you find any other solution, please let us know by posting here.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Non-reusable action - doubt srsaritha 1 3,498 10-16-2012, 05:04 PM
Last Post: richa07
  how to call reusable actions by passing parameters.? Arun091 0 3,875 08-16-2012, 07:28 PM
Last Post: Arun091
  action status in QTP test - main action vanilla 1 4,607 02-12-2012, 10:59 PM
Last Post: rajpes
  Is there any mapping between script and reusable action. TurtleRock 2 3,162 12-20-2011, 09:56 AM
Last Post: Sathiya
  Doubt in non reusable actions pradeep singh 6 9,160 11-19-2011, 12:19 AM
Last Post: srsaritha

Forum Jump:


Users browsing this thread: 1 Guest(s)