Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Moving reusable action to another test
#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


Messages In This Thread
RE: Moving reusable action to another test - by sasmitakumari - 07-20-2010, 05:47 PM

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

Forum Jump:


Users browsing this thread: 2 Guest(s)