SAP Testing - QTP


Advertisements

HP Quick Test Professional (QTP) is an automated functional testing tool that helps testers to perform automated regression testing in order to identify any gaps, errors/defects in contrary to the actual/desired results of the application under test.

Object Repository

Object Repository is a collection of objects and properties with which QTP will be able to recognize the objects and act on it. When a user records a test, the objects and its properties are captured by default. Without understanding the objects and its properties, QTP will NOT be able to play back the scripts.

Actions

Actions help testers to divide scripts into groups of QTP statements called actions. Actions are similar to functions in VBScript, however there are a few differences. By default, QTP creates a test with 1 action.

Actions Functions
Actions are inbuild feature of QTP. VBScript Functions are supported by both VBScript and QTP.
Actions parameters are passed byvalue only. Function parameters are passed either byvalue or byref.
Actions have extension .mts Functions are saved as .vbs or .qfl
Actions may or may not be reusable. Functions are always reusable.

The properties of the action can be accessed by right-clicking the Script Editor Window and selecting "Properties".

Actions

Action properties contain following information −

  • Action Name
  • Location
  • Reusable Flag
  • Input Parameters
  • Output Parameters

Types of Actions

There are three types of actions −

  • Non-reusable action − An action that can be called only in that specific test in which it has been designed and can be called only once.

  • Reusable action − An action that can be called multiple times any test in which it resides and can also be used by any other tests

  • External Reusable action − It is a reusable action stored in another test. External actions are read-only in the calling test, but it can be used locally with the editable copy of the Data Table information for the external action.

For more information, please use the following link − http://www.tutorialspoint.com/qtp/index.htm

Advertisements