Recording in QTP can be done in following modes:
Normal Recording
This is the default mode of recording in QTP. It records
the objects in your application and the operations performed on them. During normal recording objects are identified as standard objects are saved in repository.
To Access Normal Recording, Click the Record button or select Automation > Record or press F3 Key.
Analog Recording Mode
This mode records the mouse movement and keyboard
operation in the application.This mode is useful in case object is not recognized
as standard object.
To
Access Analog recording, start a recording session as we do in normal
recording. Click the Analog Recording button or select Automation
> Analog Recording to start analog recording.Once recording is complete,
click the analog recording button to close analog recording.
The
mouse and keyboard operation are saved in a track file which can be reused.The track file called by the RunAnalog method
contains all your analog data and is stored with the current action.
Window("Microsoft Internet
Explorer").RunAnalog "Track1"
Some useful points to remember about Analog recording are as follows:
1. Shortcut Key for Analog Recording is SHIFT+ALT+F3.
2. Useful for applications in which the actual movement of the mouse needs to be recorded.
3. Analog Recording can record relative to the screen or relative to a specific window. The settings are defined in Analog Recording Settings.
4. The steps are recorded in a separate file saved within the action.
5. Steps once recorded cannot be edited in Analog recording.
6. Test may fail in case screen resolution changes.
Low Level Recording
This enables user to record the exact coordinates of any
object, whether or not QuickTest recognizes the specific object or the specific
operation.
To
Access Low Level recording, start a recording session as we do in normal
recording. Click the Low level Recording button or select Automation
> Low Level Recording to start analog recording.
Some useful points to remember about Analog recording are as follows:
1. Shortcut key for Low Level recording is CTRL+SHIFT+F3
2.
Useful when object is not identified by QTP in normal recording mode.
3. During Low Level recording, objects and parent objects are added as window object.
Window("…").WinObject("…").Click
12,32
It is really a great work and the way in which u r sharing the knowledge is excellent.
ReplyDeleteThanks for helping me to understand basic concepts. As a beginner in software testing your post help me a lot.Thanks for your informative article. software testing Training institute in chennai | software testing Training in chennai