1.What is an action in QTP
Ans:
Action is nothing but a specific task under one test
(Ex: Login is one action and Payment is another action)
(We can make them both in one action but it would be better if they are different)
2.How to call an action in QTP
Ans.
RunAction “Action2[Action Name]“,oneIteration, parameters
3.What is reusable action in QTP
Ans.
To call an action from other tests we must make it as reusable so that scope becomes global and can be called from any test.
A reusable action can be called and executed but not editable in the current test.
4.How many types of actions are there in QTP
Ans.
i)Non-Reusable Action :an action that can be called only in the test with which it is stored, and can be called only once.
ii)Reusable Action : an action that can be called multiple times by the test with which it is stored (the local test) as well as by other tests.
iii)External Action : a reusable action stored within another test.
External actions are read-only in the calling test.
The below are not types of actions.
Internal Action : an action which is created locally under one test . Eventhough if it is reusable action , it would be internal action
Independent Action : an action which is not dependent on any other action
Dependant Action :an action which is depend on other action(s)
tq sir. it wil b helpful for me