Friday, 24 July 2015

ACTIONS &FUNCTIONS IN QTP


Actions
ACTIONS:        Action is a set of script statements used for performing a specific task

Types of Actions:

There are three types of actions
                             1. Normal actions
                             2. Re-usable actions
                             3. External actions

Note: External actions are not editable .The re-usable actions called in another test are known as external actions

Operations on Actions:

Navigation for inserting a new action:

·         Activate the menu item insert
·         Select the option call to new action
·         Rename the desired action
·         Select the one of the following options
o   At the end of the test
o   After the current step
·         Click on ok





Navigation for splitting an action in to two actions:

·         Save the action
·         Keep the cursor on the first statement of the second path
·         Activate the menu item step
·         Select the option split action
·         Select one of the following options
o   Independent of each other
o   Nested
·         Specify the desired action name
·         Click on ok

Navigation for making an action as reusable action:

·         Select the desired action
·         Activate the menu item step
·         Select the option action properties
·         Select the check box reusable action
·         Click on ok


Navigation for renaming the action:

·         Activate the menu item step
·         Select the option action properties
·         Specify the desired name
·         Click on ok

Navigation for calling on existing action:

·         Activate the menu item insert
·         Select the option call to existing action
·         Browse the desired test
·         Select the desired action
·         Select one of the following options
o   At the end of the test
o   After the current step
Click on ok

No comments:

Post a Comment