Friday, 24 July 2015

FRAMEWORKS IN QTP


Framework:
                   Framework is a generic work (outline work) or a set of guidelines designed by an expert to perform a task in an effective, efficient and optimized way

Types of frame works: - (Mainly)
1.    Linear frame work
2.    Modular frame work
3.    Key-word driven frame work
4.    Hybrid frame work
5.    Data frame work

1.    Linear Framework

·         Generate the basic test
·         Enhance the test
·         Debug the test
·         Execute the test
·         Analyze the test

2.    Modular Framework:

·         Develop the individual components for each and every task
·         Make them as reusable components
·         Prepare the required drivers based on the end to end scenarios
·         Execute the drivers
·         Analyze the result

3.      Key word driven framework:

·         Create the folder structure as follows

·         Crate the required test data file and save them in the corresponding folders
·         Create the required shared repository files and save them in the corresponding folder
·         Create the required library files and save them in the corresponding folder
·         Create the required environment files and save them in the corresponding folder
·         Create the required recovery files and save them in the corresponding folder
·         Open the main test and associate all the required files to each
·         Develop the script in such a weather it executes based on the key words specified in the data table

Example:
                   Var= data table (“keys”,1)
Select case var
Case “L1”
Login( )
Ins ord( )
Logout( )

Case”L2”
Openord( )
Logout( )
Case “L3”
Login( )
Logout( )
End select

·         Specify the desired key words under the corresponding column in the data table and save the test in the corresponding folder



No comments:

Post a Comment