Types of recording
Go to Automation -> Record and Run Settings.
First thing that you have to determine is weather you want to do recording on Web based application or Windows based application, as shown below.
Both the tabs has some properties, some points you have to take care are :-
1. Choose the correct option while recording Windows application from "Record and run on any windows based application"/ "Record and run only on", if you select second option then it will record on applications as per the setting done below this option only, like you can add any application below using the + button.
Types of recording :
1. Recording using "Record" button with default settings.
Start recording with Calculator and it will generate script as shown below :
Window("Calculator").Activate
Window("Calculator").WinButton("7").Click
Window("Calculator").WinButton("4").Click
Window("Calculator").WinButton("5").Click
Window("Calculator").WinButton("2").Click
it denotes Window name/ Object name / Action performed
2. Analog recording
To start Analog recording, press Record button -> Go to Menu "Automation" -> Analog recording.
It will pop up a window as below:
We can do Analog recording in 2 types:
2.1 Record relative to screen
In this mode if recording is done by pressing button "Start Analog recording" and do complete action, a track of the path of the cursor is created and recorded, important thing is that it is relative to computer screen
it means if the application changes its position the the Play will not be correct, it takes co-ordinates of scree as 0,0 and record track in relation of this 0,0, so it is mandatory to open the application at same position on screen every time to run this step correctly.
You have to press "Stop" to complete the recording. Track code generated after recording as below:
Desktop.RunAnalog "Track1"
2.2 Record relative to following window
To start, Select "Record relative to following window" and click on hand button and select any window with respect to which recording will be done as below.
Now start recording and stop recording to generate the code.
Window("Calculator").RunAnalog "Track2"
The advantage of this recording is that it does not matter at what position of screen the application is opened at, recording is done with taking 0,0 of Calculator in this case, as long as object are at same place within the calculator this recording will run fine.
3. Low level recording
To start Low level recording click Record button-> Automation -> Low level recording and do the recording, following code will be generated
Window("Calculator").WinObject("4").Click 5,13
Window("Calculator").WinObject("5").Click 10,16
Window("Calculator").WinObject("4").Click 15,16
Window("Calculator").WinObject("7").Click 13,14
it denotes Window name/ Object name / Action performed/ Co ordinates of object
Do this type of recording if exact coordinates are required.