Actions

Actions are used to divide scripts into logically related groups of QTP statements. They are similar to VB Script functions
QTP Scripts are maintained with scenario and each module of the script is called as action.
Every Script will have one default action is Action1
A script can have max 255 actions.
Every action of the script will have a sheet in the data table and the sheet name will be same as that of action.
Every action can access the data from its own action sheet of global sheet.
Actions are used for easy implementation of script re-usability.
Actions maintains scripts and repositories also

Creating a new Action:

    Insert menu → Call to New Action → ( Insert Call to New Action window opens ) , Enter Action name → Select required location ( At end of the test, After the current step ) → Click OK button.
                        Or
    Right click on script editor → Select Actions → Insert Call to New → ( Insert Call to New Action window opens ) , Enter Action name → Select required location ( At end of the test, After the current step ) → Click OK button.


Contributed by: Vamshi Gowtham
m.vamsigowtham@gmail.com