Saturday, July 25, 2009

Recording modes in QTP?

'analog
Analog recording mode records exact mouse and keyboard operations. The track of the operations recorded are stored in an external data file.

Desktop.RunAnalog "Track1" 'event for clicking a button
Desktop.RunAnalog "Track2" 'event for setting text in a text box

'low level
Window("Login").WinObject("Help").Click 9,9 'event for clicking a button
Window("Login").WinObject("Agent Name:1").Click 90,5 'event for setting text in a text box
Window("Login").WinObject("Agent Name:1").Type "gopi" 'event for setting text in a text box

X Optional. An Integer value. The x-coordinate of the click. Note that the specified coordinates are relative to the upper left corner of the object. Default = micNoCoordinate (-9999) -- center of the object.

Y Optional. An Integer value. The y-coordinate of the click. Note that the specified coordinates are relative to the upper left corner of the object. Default = micNoCoordinate (-9999) -- center of the object.

No comments:

Post a Comment