Analog
Recording:
It records
mouse clicks, key board operations and mouse movements w.r.t screen area or
specified window co-ordinates based.
There are 2
types of options in Analog Recording:
Record
relative to screen:
When we
select this option QTP records our operations w. r. to desktop co-ordinates
based
Script:
Desktop.RunAnalog
“Track1”
During
runtime QTP identify same position on desktop and perform operations
irrespective of application objects availability
Note: this
option can be preferred to record operations which we perform on pop-up windows
Record
Relative to the following window:
When we
select this option QTP records our operations w. r. to specified window
co-ordinates based
Script:
Window(“window
name”).RunAnalog “Track 1”
During
runtime first QTP identify specified window on screen and then perform
operations w. r. to that window co-ordinates based.
Navigation: for Analog Recording
1.
Enter
into standard recording mode
2.
“Automation”
menu
3.
Select
“Analog Recording”
4.
Select
option in “Analog Recording settings” window {if we selected 2nd
option click on “Hand icon” button and click on application window}
5.
Click
on “Start Analog recording” button
6.
Perform
required operations on AUT which you want to convert into automation script
7.
Stop
recording
8.
Ex: create
basic script to open 5th order number record in “FR” application
using analog recording 1st option
Ex: create
basic script to open 5th order number record in “FR” application
using analog recording 2nd option
Note:
Analog
recording script is not possible to perform any editing operations due that
reason it is not preferable to record all the operations into automation script
To record
general operations we prefer standard recording
To record
operations which are related to mouse movements like drawing operations,
digital signatures…etc
Ex: create
script to write “Mindq” in ms-paint window
Ex: Create
script to open 5th order number record and to send fax to customer