Recovery scenario settings enable you to specify how a business component recovers from unexpected events and errors during a run session or during execution

Trigger: Trigger is nothing but the cause for initiating the recovery scenario. It could be any popup window, any test error, particular state of an object or any application error.

Action: Action defines what needs to be done if scenario has been triggered. It can consist of a mouse/keyboard event, close application, call a recovery function defined in library file or restart windows. You can have a series of all the specified actions.

Post-recovery operation: Basically defined what need to be done after the recovery action has been taken. It could be to repeat the step, move to next step etc....

Action and a function
Action is a thing specific to QTP while functions are a generic thing which is a feature of VB Scripting. Action can have a object repository associated with it while a function can't. A function is just lines of code with some/none parameters and a single return value while an action can have more than one output parameters.

Types of Actions supported by Quick Test professional 
There are 3 kinds of actions:
Non-reusable action—an action that can be called only in the test with which it is stored, and can be called only once.

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.
External action—a reusable action stored with another test. External actions are read-only in the calling test, but you can choose to use a local, editable copy of the Data Table information for the external action.

Smart Identification:

Smart Identification is nothing but an algorithm used by QTP when it is not able to recognize one of the object. A very generic example as per the QTP manual would be, A photograph of a 8 year old girl and boy and QTP records identification properties of that girl when she was 8, now when both are 10 years old then QTP would not be able to recognize the girl. But there is something that is still the same, which is there is only one girl in the photograph. So it kind of PI (Programmed intelligence) not AI
Batch Execution: 


Sequence execution of more than one test scripts is called batch testing. It’s also known as test suit


Constant :

A value that is defined directly in the step and remains unchanged for the duration of the test

Use “focuses” property of “GetRoProperty” method”

Shared Repository and Action Repository:

Shared Repository: Entire application uses one Object Repository, that similar to Global GUI Map file in Win Runner Per Action: For each Action, one Object Repository is created, like GUI map file per test in Win Runner


Importance of Parameterization

A value that is defined or generated separately from the step and is retrieved when the specific step runs. For example, a parameter value may be defined in an external file or generated by Quick Test professional

Utility of Functions

We go for functions to achieve optimized execution time with less complexity. Here size of the script will be more. It’s compatible with almost all tools.