Basic QTP Scripting




Window / Object
Script
Main Window
Window(“Window_Name”)
Sub Window
Dialog (“Window_Name”)
Edit Box
WinEdit(“EditBox Name”)
ComboBox
WinCombo(“ComboBox Name”)
Menu
WinMenu (“Menu”)
RadioButton
WinRadioButton(“RadioButton Name”)
Check Box
WinCheckBox(“Check Box Name”)
PushButton
WinButton(“Push Button Name”)
              
Environment
Class Name
Visual Basic
VBButton
JAVA
JAVAButton
Web
WebButton
ActiveX
ACXButton
.Net
SWFButton

(Shock Wave Flash)
Standard Window
WinButton

Operations
Script
Active Window
.Activate
Enter Text in Edit Box
.Set "Text"
Select Item from the ComboBox
.Select "Item Name"
Select item from theMenu
.Select "Menu_Name;Item_Name"
Check on or off the RadioButton
.Set
Check on or off the Check Box
.Set “On/Off”
Press on Push Button
.Click
Enter Password in Edit Box
.SetSecure "Encrypted_Text"


Windows Based

In which window.on what object.what operationis done. Syntax:
Window(“Window_Name”).Object(“Object_Name”).Operations/Method.


Web Based
In which browser.in which page.on what object.what operationis done. Syntax: Browser(“Browser_Text_Name”).Page(“Page_Name”).Object(“Object_Name”)

.Operation/Method.