Thus we can say an Action represents any specific activity that user performs
on an application.
UFT contains a Test(Like Prime Minister of a country) and it comprises of multifarious actions(Like different department heads in a country, such as Finance,Education,Foreign ministers).
By default each test in UFT represent one Action.
![]() |
Function v/s Action in UFT |
Action calls:
How we can include actions in our Test.
1. Call to copy of action.
2. Call to new action.
3. Call to Existing action.
![]() |
Action Call types in UFT |
From the above picture we can make out the difference in the icons of all the action call types avaiable in UFT.
* symbol in front of “Call to New Action” depicts Inserting a New Action.
Call to copy of Action is like Inserting a local copy of an existing action, so we can edit and do any changes in the local copy, without affecting the original copied action.
+ symbol in front of “Call to Existing Action” depicts Inserting a call to existing re-usable action, we cannot edit it and all its components (datatable,OR) comes as readonly.
In our below example we have taken “Call to Existing Action”:
Approach 1:-
Select Design -> Call to Existing Action.
![]() |
Menu Bar insertion of “Call to existing action” |
![]() |
Keyword View |
![]() |
Canvas view |
In the Record tool bar click the Insert Action Call down arrow
![]() |
Editor(Expert view in QTP 11) |
i) We can insert a call to a reusable action that is stored in your current test (local action), or in any other test (external action).
![]() |
Selecting the local or external action for “Call to Existing action” |
![]() |
Setting the relative path. |
ii) Inserting a call to an existing action is similar to linking to it.Thus we can view the steps of the action in the action view, but we cannot modify them. The called action’s local object repository (if it has one) is also read-only.
![]() |
Called Action Data table is Read Only in called action. |
![]() |
Properties pane to look the External Action properties/Add Parameters/Test used(Right click on Action->Properties) |
v)If we chose to use the original action’s data when we call an external action, then changes to the original action’s data are applied as well.
4 replies on “Call to Existing Action in UFT ?”
My thoughts are on using an Existing Action external. If that action has a ExitTest command in it, it stops the whole test? How does one return it back to the test that called to it and resume test?
Hi,
This can be done by using the utility statement , ExitAction(It would exit the current action and return the control to calling action)
Thanks!!
I need to call an external action which contain linked function library as well as data table . While calling external action , only local object repository getting linked . Any solution to call function library plus data table along with the action ? Please help me.I am stuck here
Hey Sharaz,
Data Table values will be used by referring to origin action which was copied by 'call existing action'.