Recording Modes
In QTP, there are (3)
Recording Modes such as
1) Context Sensitive Mode
In
this mode QTP Records the operations which are performed on the objects.
Context Sensitive Mode is also called as “Standard Recording Mode / Normal
Recording Mode”.
Context Sensitive Mode
is default Recording Mode in QTP.
2) Analog Recording Mode
In this mode QTP records the Mouse and Keyboard
Operations with respective to Window (or) Desktop co-ordinates.
Syntax: If you take Desktop
Coordinates
Desktop--) Desktop.RunAnalog "<Track
No.>"
Window --)
Window("Window_Name").RunAnalog "<Track No.>"
Navigation
Start Recording
(F3) --) Automation
Menu --) Analog
Recording
Generally we are
using Analog Recording Mode to compare “Digital Signatures, Barcodes,
Scientific Graphs etc.,
Note
In Context Sensitive Mode, QTP Generate one statement
for each operation. But in Analog Recording Mode, QTP Generates single
statement for all the operations which you perform on the application.
In Analog Recording Mode, if you take Desktop
Co-ordinates, you can get wrong output, if application is moved from one place
to another place at Run Time.
If you
take Window co-ordinates, we can get right output even if the application moved
from one place to another place.
3) Low Level Recording Mode
We can use this mode to records the operations which
are not recognized
by Tool.
Navigation
Start Recording (F3) ---) Automation Menu --) Low Level Recording Mode (Crtl + Shift + F3) --) Record your required
Operation --)
Stop Recording (F4)
Note: We are giving low priority to this recording mode.
Important Note
If you
want to select Analog Recording Mode or Low Level Recording Mode you must be
under Context Sensitive Mode.





0 comments:
Post a Comment