what is keyword driven framework in qtp

Upload: dukkasrinivasflex

Post on 14-Apr-2018

220 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/30/2019 What is Keyword Driven Framework in Qtp

    1/2

    what is keyword driven framework in qtp

    Frame Work is the model or structure we follow for a

    Project. It is the approach that we follow to automate the

    Project. There are so many types of framework in QTP.

    1. Datadriven frame work

    2. Keyword driven frame work

    3. Module driven framework

    4. Hybrid driven frame work

    The framework you choose, depends on the model of your

    Project. Usually most of projects fall under hybrid driven

    frame work.

    Datadriven framework: Here we divide the entire project in

    to modules and start automation by writing data drivenscripting for each one of them. We will have test data

    either in excel sheet or flat files or from database...we

    will pass that test data in to the script and perform data

    driven testing.

    Keyword driven framework:

    Firstly we should add the objects to repository( Shared

    repository is preferable)

    Then we can generate/write scripts for each functionality

    and save them as the library files ( .vbs files)

    Then we have to associate all these library files(which aregenerated to test different funtionalities) to Quick Test.

    Module driven frame work: we will divide entire project in

    to modules and write functions or procedures for each and

    every module and automate the project.

    Hybrid driven framework: it is combination of Datadriven

    and module driven framework.

    hi this is nagesh

    framework: It is generic work prepared by group of experts followed test engineers to preform a

    specific task in an efficient, effective and optimized way.

    keyword driven framework:

    first we will preparing folder structure(env, lib, test data, repository, recovery, test script file).

    and first we will manually prepare

    env file: (by default qtp will create env file. env file extension .XML, (QTP>file

  • 7/30/2019 What is Keyword Driven Framework in Qtp

    2/2

    settings>env>click>user define>EX-name:nages, value:path of the application>save>.xml)and

    export this env file in env file)

    library file: first u will take notpad and u will prepare lib file lib file extension is .VBS

    Test data: u will prepare test data

    Test script: and u will genarating the basic script and u will split it and u will set reusabul and

    saved it)recovery secnario: u will prapare recovery secnario

    if possible u will prpare rgular expressions file

    and

    u will take new page

    and u will set in datatable some name like keys in that column u will prepare some variables

    ex:k1, k2. k3

    after u will write in expert view

    varibule name=datatabl("keys")

    and u will create select case andu will

    associate lib file, ev file, recovery file,and

    u will create case function and run

    Data-driven testing is a methodology used in Test automation

    where test scripts are executed and verified based on the

    data values stored in one or more central data sources or

    databases. These databases can range from datapools, ODBC

    sources, csv files, Excel files, DAO objects, ADO objects, etc.

    Keyword-driven testing or Table-driven testing is a Software

    testing methodology as part of the Test automation

    discipline that separates the programming work from the

    actual Test script so that the test scripts can be developed

    without knowledge of programming. As a result the test

    scripts can be maintained with only minor updates, even when

    the application or testing requires significant changes.