What is the difference between data driven framework and keyword driven framework?

Showing Answers 1 - 12 of 12 Answers

m.sureshbabu

  • Jan 18th, 2007
 

Data Driven Framework :

It is nothing but data driven test, performing the same functionality with multiple input values by using parametarization with the help of data table or data souce is called Data Driven Test.

Keyword Driven Framework :

It is nothing but keyword driven test or keyword view, used for parametarization.

It is dividing into 4 parts.

1. item     2. operation     3. value      4. documentation     ----> in QTP 8.2

In QTP 6.5 keyword view is nothing but Tree View. It displays the list of objects along with logical names.

Parametarization:

passing the runtime input values with the help of datatable or datasource is called parametarization.

Any queries

sureshmuppasani@gmail.com

  Was this answer useful?  Yes

priya

  • Jan 20th, 2007
 

Hi Suresh,

Nice answer for keyword driven framework.

Can you pls elaborate more on keyword driven framework also explain how to elaborate with an example

Thanks,

Priya.

  Was this answer useful?  Yes

chanti

  • Jan 23rd, 2007
 

Hai all,Can we use key word in data driven & vice versa.then what would be the frame work type.

  Was this answer useful?  Yes

msusmitha

  • Jan 25th, 2007
 

Data Driven Testing DDT DDT is a concept for implementing the retesting.In this we do 1 collect the test data from data table2 write the basic test3 parameterise the constant values for the data table4 ecutete the test5 analyse the resultKey word driven frame work KDFW we have to first write the library files. ie all the functions will be there in this file in order to call from the main test. these files may be stored as .vbswhenever we require the function we will call that functionobserve that DDT IS used for retestingKDFW is USED for calling the functions wherever we want to use that is specifying the desired keywords based on the end to end scenarios in the data table.for eg: for ADD, SUB, MUL ....WE have to first write the functions for add sub mulin the main test we call that functionsi think u understoodsusmithamadhav_sus@yahoo.co.in

  Was this answer useful?  Yes

ramesh

  • Jan 26th, 2007
 

Hidata driven and key deriven testing both are same.i.e passing the data to a variable during run time.free to ask questions on testing. this is my id ramesh16j@gmail.comregardsramesh.kQ.A

  Was this answer useful?  Yes

Keyword-driven testing is a technique that separates much of the programming work from the actual test steps so that the test steps can be developed earlier and can often be maintained with only minor updates, even when the application or testing needs change significantly. The keyword-driven testing methodology divides test creation into two stages:? Planning Stage? Implementation StageData- Driven testing is a framework where test input and output values are read from data files (datapools, ODBC sources, cvs files, Excel files, DAO objects, ADO objects, and such) and are loaded into variables in captured or manually coded scripts. In this framework, variables are used for both input values and output verification values. Navigation through the program, reading of the data files, and logging of test status and information are all coded in the test script.

  Was this answer useful?  Yes

Sorry the format in which I wrote the answer is not very readable. So writing the answer again - Keyword-driven testing is a technique that separates much of the programming work from the actual test steps so that the test steps can be developed earlier and can often be maintained with only minor updates, even when the application or testing needs change significantly. The keyword-driven testing methodology divides test creation into two stages:? Planning Stage? Implementation StageData- Driven testing is a framework where test input and output values are read from data files (datapools, ODBC sources, cvs files, Excel files, DAO objects, ADO objects, and such) and are loaded into variables in captured or manually coded scripts. In this framework, variables are used for both input values and output verification values. Navigation through the program, reading of the data files, and logging of test status and information are all coded in the test script.

  Was this answer useful?  Yes

NARAYNA

  • Feb 13th, 2007
 

Hi, Data driven Test:If want to run the one script with multiple sets of data that time we prefer Data Driven Test.Data Driven Frame work:If you want use the script multiple times ,that time you are storing some where and calling when you want that perticular script.Key word Diven frame work:Key word driven frame work is you are storing some different diferent scripts in some ohter places using public functionwhenever you want that script insted of writing just you are calling that perticular script by giving single word or letter. it will come and do that perticular operation any number of times IF YOU WANT MORE CLARIFICATION ABOUT THIS PLAZ CONTACT ME. Mob:09342845103MAIL:narayana321@gmail.com

venugopal

  • Nov 16th, 2012
 

Data-Driven Testing
Simple test scripts have test data embedded into them. This leads to a problem that when test data needs to be updated actual script code must be changed. This might not be a big deal for the person who originally implemented the script but for a test engineer not having much programming experience the task is not so easy. If the script is long and non-structured the task is hard for everyone. Another problem with having the test data inside test scripts is that creating similar tests with slightly different test data always requires programming. The task may be easy—original script can be copied and test data edited—but at least some programming knowledge is still required. This kind of reuse is also problematic because one particular change in the tested system may require updating all scripts. Because of these problems embedding test data into scripts is clearly not a viable solution when building larger test automation frameworks. A better approach is reading the test data from external data sources and executing test based on it. This approach is called data-driven testing External testdata must be easily editable by test engineers without any programming skills. It is often in tabular format and edited in spreadsheet programs.

Keyword-Driven Testing
Previous section introduced data-driven testing and stated that it has multiple promises. It also mentioned that its biggest limitation is that all test cases are similar and creating totally new tests requires programming effort. A solution for this limitation, among others, is the keyword-driven approach where not only the test data but also directives telling what to do with the data are taken from test scripts and put into external input files. These directives are called keywords and test engineers can use them to construct test cases freely. The basic idea—reading test data from external files and running tests based on it—stays the same as in data-driven testing. keyword-driven testing is a logical extension to data-driven testing.

  Was this answer useful?  Yes

deepak jaggi

  • May 7th, 2013
 

Very simple answer:

In Pure Data Driven framework : scripts related to application under test are hard coded, data is in some where in DATA TABLE/Arrays/Dict Objects/Excels...

In Pure keyword driven framework : nothing in the code you will find related to application under test. Controller is Excel having, Object name in OR, Operations like click, set, getRO, select, getselected, verify text..... and will be using a generic function to automate all test cases.

Once keyword driven framework is designed it can be used for Web, window, sap, java any application without changing a single line of code, jut you need to change your excel and OR.

but it is not true for data driven framework.

  Was this answer useful?  Yes

chandana

  • Nov 12th, 2016
 

Thanks it gave exact answer

  Was this answer useful?  Yes

Rajkumar

  • Jan 10th, 2018
 

Data-driven Framework:


Data driven test automation framework is focused on separating the test scripts logic and the test data from each other. Allows us to create test automation scripts by passing different sets of test data. The test data set is kept in the external files or resources such as MS Excel Sheets, MS Access Tables, SQL Database, XML files etc., The test scripts connect to the external resources to get the test data. By using this framework we could easily make the test scripts work properly for different sets of test data. This framework significantly reduces the number of test scripts compared to module based framework.

Keyword Driven Testing Framework:


It is also known as table-driven testing or action word based testing. In Keyword-driven testing, we use a table format to define keywords or action words for each function or method that we would execute. It performs automation test scripts based on the keywords specified in the excel sheet. By using this Framework, testers can work with keywords to develop any test automation script, testers with less programming knowledge would also be able to work on the test scripts. The logic to read keywords and call the required action mentioned in the external excel sheet is placed in the main class. Keyword-driven testing is similar to data-driven testing.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions