Tuesday, December 29, 2009

Difference Between Set and Dim

1.Dim can be used to store a value in a variable.
2.Dim is genarlly to initiate a variable

For example: Dim a
a 10

1.Set can be used to store a object or child object from AUT
eg. set a Browser(" ").Page(" ").childobject(obj)
obj is already described through descriptive programming & by using above script we can store child objects in a web page like webbutton webradio button web list link etc.
2. SET is used to assign a value to the initiated variable

Create an Action Template

To create an Action Template we have to follow below navigation
1.Open Notepad
2.Enter the details with comments
3.Save this notepad with .mst extension in C://ProgramFiles/MercuryInteractive/QTP/DAT/
4.CLick on Save with .mst extension
5.Open new script then the template should display.