I recorded an action as part of a test and now have decided it needs to be in some common location so others can easily find it and insert a call to it from their tests.
I did some experimenting and I kind of see how to move the action's repository information - it looks like I have to export the action's respository into a global repository of its own. But how do I get the "code" for the action into a global script file?
For example, I've created an action "login" while recording a test. I don't want people to have to insert a link to the action by refering to this test and inserting a call to this test's action "login". I'd rather have action "login" be in some global script somewhere, and have them insert a call to this global action "login", and there is only one "login" action in our "world" of QTP.
Once I move the action's repository information, how do I move the action "code" itself so when someone does Insert Call To Existing Action, they can open common file "abc" and select action "Login"?
if i understand your question, you have to create a copy of an action which in your local drive into a shared location which can be used by others.
Global actions mean re-usable actions.
so you either have to create a copy of your script as new one , else in a new script Insert call to copy of action and store that in the common place.
If you are planning to have a single repository then it should more or less be for your entire project(ofcourse with optimum size), else per action repository for that individual action would work as well.
if you go for a shared repository mode, this action block can be stored in a function as well if required.