Documents
Resources
Learning Center
Upload
Plans & pricing Sign in
Sign Out
Get this document free

QTP Frame work

VIEWS: 333 PAGES: 1

									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.

In QTP-The frameworks are: -
               1) Object Driven.
               2) Keyword driven.
               3) function driven.
               4) Data table driven.
               5) Hybrid driven (Mixture of above all).

        Basically, there are 4 types-
                a) Linear.
                b) Modular.
                c) Keyword.
                d) Hybrid

        More info u can get in IBM home page-under Framework section.

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.

								
To top