Thursday, July 26, 2012

Actions in QTP


******************************************************************************
Actions

******************************************************************************

Action is the concept from QTP,using which we can implement the modularity    

There are totally 3 three types of Actions:

 1.Reuabale action.
 2.Non reusbale action.
 3.External action
   default one is the non resubale action.
******************************************************************************
Non-reusable Action:
       The action which can't be called by any other test apart from the one in which it is created.
Reusable Action: 
    An action which can be called by any number of tests
External Action:

     This is a reusable action, which can't be modified in any other test. It can be just called and
used...

******************************************************************************
 Calling actions:

Call to copy action:
    if we are calling action with these option, the created action we can modify in the called test

 Call to existing actions : 
     if we are calling action with these option, the created  action we can't modify in the called test
******************************************************************************
Spliting Actions:
   We can Split an action into two actions
SplitAction Types:

Nested Action :
    If we split an action with Nested option,created two actions will be depedent to each other

Independent Action :
   If we split an action with Indepedent option,created two actions will be indepedent to each other
******************************************************************************

Q)Can we Merge two actions?
  No
******************************************************************************

Q) What is the difference between attheendoftext and ofterthecurrentstep?

  Generally while creating newaction qtp will ask for above two option
  if we are selecting "attheendoftext" option,the created new actions will be the  indepedent to current action
  if we are selecting "ofterthecurrentstep" option,the created new actions will be the  depedent(nested) to current action
******************************************************************************

Q)if we split one action,the respetive action object repository will be split or not?
  No.
******************************************************************************





No comments:

Post a Comment