What is meant by Keyword driven testing and what is Data Driven testing?kindly tell me the meaning with actual differences

Questions by kannannarayana   answers by kannannarayana

Showing Answers 1 - 16 of 16 Answers

deep022in

  • Feb 22nd, 2006
 

Keyword driventesting is new concept in qtp.

QTP has two views:

1.Keyword view

2. expert view

in keyword view one can see the object ,the operation performed on it and it's value

In keyword driven testing you use the recorded object to generate operations on it.

i mean you select a object and press f7 or right click the mouse and select insert step menu.that way you can generate code without having to generate it manually.

This is called keyword driven testing.Each object visible can be thaught of as keyword

DataDriven testing:

Datadrivent testing means testing the same functionality of application with different set of data to check whether it works on all kind of data.

For this case you parameterize a step in qtp,put alll the data values in datatable and run the script for number of iterations equal to number of rows in datatable.

chandu

  • Feb 22nd, 2006
 

Hi Key word driven testing is the one way of scripting the testcase without writing the code. here u no need to write the code , just select the object properties and the funtions which u want to do operations on it and the parametrs u want to declare.

u can do this if u dont know the scripting in vbs

  Was this answer useful?  Yes

anil

  • Mar 1st, 2006
 

Hi,

As the script will automatically generate while we record a test in the expert view.And objects are identified and displayed in keyword view.How do we make use of keyword driven testing without writing the code.

Can u explain what exactly is keyword driven testing in QTP 8.2.

Awaiting for your answer.

  Was this answer useful?  Yes

reddy

  • Mar 1st, 2006
 

keyword driven testing means testing the same functionality of application with different set of data to check whether it works on all kind of data. It similar to data driven testing in winrunner

  Was this answer useful?  Yes

raj

  • Aug 1st, 2007
 

A Keyword Framework is an application-independent automation framework. This framework requires the development of data tables and keywords, independent of the test automation tool used to execute them and the test script code that "drives" the Application Under Test (AUT) and the data. Keyword driven tests look very similar to manual test cases. In a Keyword Framework, the functionality of the AUT is documented in a table as well as in step-by-step instructions for each test.  The governing concept in a Keyword Framework is that the logic of each test is defined externally of the scripts.

  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.


Using the keyword-driven approach, test automation experts have full access to the underlying test and object properties, via an integrated scripting and debugging environment that is round-trip synchronized with the Keyword View.


  Was this answer useful?  Yes

Data Driven Testing means taking the data from external files like excel sheet or Database and performing testing on the application with the help of datatable threw QTP dynamically on the application. for this purpose we can use check points, output value for loops, If conditions, datatable methods and etc. By using DDT we can do re testing that means we can run the test for multiple times. when ever you are doing Data Driven Testing you should give some user friendly comments for user friendliness of script. That means if any other person is using already existing script that script should be understandable to others. that is data driven testing.


Keyword Driven testing means the same data driven testing will be done based on some keys. In Keyword driven testing we have to save all data, Script, Repositories, resources, library files, Recovery scenarios and etc. then we have to give some keys to perform End to End testing.

  Was this answer useful?  Yes

sravani

  • Nov 8th, 2012
 

data driven testing is a term that describes testing done using a table of conditions directly as test inputs and verifiable outputs as well as the process

  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