Recording is a process of capturing human actions performed on AUT and simultaneously creating a script, which can be replayed on AUT many times.
When a user records the scripts, QTP perform various tasks as shown in following steps:
QTP uses a test object model. It identifies the test object and operation performed on an object that belongs to AUT.
Then it stores the test object in a local object repository on which the user performed the action.
Object identification properties of the test object are captured, which allows identification of the object uniquely at time of replay.
It provides a logical name to a test object, which makes objects' names readable.
Create a test step; a test step contains test objects including parent(s), operation, and data, if applicable. The following code is an example of the test step:
Dialog("Login").WinEdit("Agent Name:").Set "ashish"
In the previous test step, Dialog
is the class name, Login
is its logical name, and...