It is a process of recording user operations on AUT (Application Under Test). Recording is something which records all the user actions (like clicking a button, clicking a link, entering data, closing browser etc. We mostly capture expected results during recording. During Recording QTP creates steps in Keyword view, and generates them in a script in the Expert view. Simultaneously it adds Objects information into an Object Repository.
QTP supports 3 types of recording:
- Normal Recording
- Analog Recording
- Low Level Recording
Normal Recording:
- It recognize the objects in AUT regardless of their location on the screen
- The Normal recording mode records the objects in your application and the operations performed on them.
- This is default recording method.
- In this Object Information will be stored in the object repository.
Analog Recording :
- In Analog Mode recording, all the user actions will be recorded based on X, Y co-ordinates on the screen. Similarly typing text inside any of the controls also will be captured using X, Y co-ordinates with the action asset text.
- This mode is useful for the operation which you can record at object level,such as drawing a picture,recording signature.
- There are two types of recording in Analog: Record Relative to screen: In this QTP records User operations with respect to Desktop co-ordinates.Relative to window:In this QTP records with respect to the window co-ordinates.
- It can't record object information.
- Analog recording require more disk space than normal recording mode.
Low Level Recording:
- All user actions are recorded in an object-oriented manner. For instance, no matter how you select a menu item (mouse click, shortcut, <Alt> and arrow), the generated code is the same: a ChooseMenu function is recorded. Within some applications, this intelligent recording does not work correctly. When Lowlevel Recording is selected, WinTask records keyboard and mouse actions exactly as they are performed.
- This is a Special recording mode provided by the QTP which is used for recording at least some minimum operations on the Non-Supported Environments also.
- We use this recording to record basic operations when QTP fails to identify a respective class
- It is possible to edit the scripts after recording within QTP.
- This mode records at the object level and records all runtime objects as window or window object Test objects.
- Supports the following methods for each test object:
Win Object test objects: Click, Dbl Click, Drag, Drop, Type
Window test objects: Click, Dbl Click, Drag, Drop, Type, Activate,
Advantages of Recording:
- It is used for Analyzing the AUT in the initial stage to determine weather the QTP tool is recognizing all of our Application Objects or not
- We get the logical name of the object.
- It takes less time to create Tests
- It helps in identifying the feasibility of automating the application.