HP UFT (QTP) supports 3 types of recording modes
- Context Sensitive
- Low Level
Context Sensitive Recording mode
- The normal recording mode is also called Context Sensitive Mode
- It is the default mode of recording which takes full advantage of Quick Test Professional's test object model.
- It recognizes objects in the application regardless of their location on the screen.
- It records the objects in your application and the operations performed on them
Analog Recording Mode
- In an analog recording mode, Quick Test Professional records and tracks every movement of the mouse as you drag the mouse around a screen or window.
- Micro Focus UFT's Analog recording is captured as Tracks and stored in the directory of your test
- It is useful for recording operations that cannot be recorded at the level of an object. Eg., A signature produced by dragging the mouse
- In Analog mode you can record
- Record Relative to screen
- Relative to window
- When your analog operation is confined to just one window, use relative to a window
- When your analog operation involves multiple screens like dragging and dropping an object from one window to other use the screen option
- This mode enables you to record on any object in your application, irrespective of QTP recognizes the specific object or the specific operation.
- This mode records at the object level and records all run-time objects as either Window or WinObject test objects.
- It is used when the exact coordinates of the object are important for your tests. A good example would be hashmaps where clicking different sections of a picture take you to different links
- Used when recording tests in an environment (or on an object) not recognized by QTP
- Low-level mode records the x,y coordinates of any clicks
Learn Context, Analog, Low-Level Recording Modes with an example in the following video
Please be patient. The Video will load in some time. If you still face issue viewing video click here
- Analog recording and low-level recording require more disk space than normal recording mode.
- For both modes, screen positions during the record and run time needs to be identical otherwise script fails
- Hence, Use analog recording or low-level recording only when normal recording mode does not accurately record your operation.
- At times QTP automatically switches to low-level mode while recording objects or environments not supported by QTP