Professional Documents
Culture Documents
com
QTP
Framework
Framework: - Organizing the test scripts in a particular fashion. The best way u managed you
write, modify and manage your script as per requirement.
VBScript Classes
Class Hello_World
Public Sub Say_Hello(Name)
MsgBox “Hello “ & Name & “ Welcome to “ & Garden
End Sub
Public Garden
End Class
Dim objHelloWorld
Set objHelloWorld = New Hello_World
objHelloWorld.Garden = “Fountain”
objHelloWorld.Say_Hello “Rajesh”
above we have created a class (Hello_World) and an instance (objHelloWorld) of that class.
VBScript uses the Class …. End Class to define the contents of the class. The property
(Garden) and procedure (Say_Hello) are also declared within the class.