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|
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”:
Select Design -> Call to Existing Action.
|Menu Bar insertion of “Call to existing action”|
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.