Skip to content
Related Articles

Related Articles

Difference between Data Driven Testing and Keyword Driven Testing

Improve Article
Save Article
Like Article
  • Last Updated : 02 Nov, 2021

1. Data Driven Testing :
Data driven testing or DDT is also named Parameterized testing. DDT is a process of testing software which is used to test the computer Software by applying some conditions like verified inputs. For testing the software various methods are used and every methodology differs from each other for maintaining the accuracy. DDT focuses on set of data which are present in databases for an automated framework where testing is done. Basically, this framework solves big and time taking process issues for conducting separate tests.  

For better understanding about DDT let us consider an example, DDT is just similar as searching for a particular student detail in a huge dataset. In that we just need to input that student Id after that we can get all info about that student, like that only for conducting this test in a huge dataset we just need to input the verified details so that we can get the correct execution.  

There are several types of Data Driven Testing in which the data are available in some format such as Comma Separated Values (CSV) files, Excel Sheets, Database Tables, Script Arrays and Table Variables.  

There are four operations in which DDT concentrates more those are:

  • Assembling various sets of data test in a bunch of data i.e., database or a file.
  • Formation of Scripts which can be readable.
  • Keeping the recovered data and then correcting the data if required.
  • Processing with the testing part by providing required inputs.

Advantages of DDT :

  1. DDT keeps individual data from test scripts and the similar test scripts can be used for various sets of input test data so that we can get the result automatically.
  2. It gives the clear scenario for the test scripts.
  3. DDT maintains all the records very efficiently and very easy to access.
  4. It decreases the error occurring ability.
  5. DDT is very easy to process for us human creators.

2. Keyword Driven Testing :
Keyword Driven Testing is also named as Action Word Based testing. This KDT is also used for testing software and is efficient for both manual and automated testing.  KDT is a type of scripting technique which restores the keyword and uses all the data files which can be applied during testing. It is a combination of high level and low-level keyword and having keyword argument which is then used in the testing process.

In KDT we have to first find out individually the set of keywords after that we have to identify the functions so that how that keyword going to work accordingly. KDT basically used in webpages, such as the opening and closing of the website pages, cursor, the keystrokes, the text typing inputting the information all these manages by the KDT.

The process of KDT includes various cases like it separates the documentation of test process like data and functions which are in use, and by the help of the instruction the test is occurred. It divides the test process into two stages i.e., Design and Development stage and an Execution stage.

For creating KDT framework we need clear about several things such as:

  • Excel Sheet:  First we have to identify the keywords and store all the keywords in a excel sheet.
  • Function Library: This library includes all the website logins and all the processing.
  • Data Sheets: It is used to store all the data which can be used during testing time.
  • Object Repository: It depends on the keyword and based on that keyword we can implement object repository.
  • Test Scripts: According to the blueprint of framework we can have test scripts for each individual test case.

Advantages of KDT :

  1. KDT helps in reducing the minor errors which can be caused during System or Software Under Test (SUT).
  2. It is an open framework in which we can access all the tools and data.
  3. By using this all the test can be written in a more efficient way.
  4. All the details of the test scripts are hidden from the user.
  5. KDT requires low maintenance and can be access for a long period of time.
  6. The test cases which are occurred that are easier to read an understand.

Data Driven Testing VS Keyword Driven Testing :

S.NO.

DDT

KDT

01.Data driven testing conduct tests by using several stored data, values and variables.Keyword driven testing conduct tests by using specific keywords.
02.DDT can store their data in many formats like CSV files, excel sheets, data base, tables and script arrays etc.KDT can store their data only in Excel sheets.
03.It is less time consuming.It is more time consuming.
04.All the test scripts are decoded from the user.All the test scripts are encoded from the user.
05.DDT can be occurred by several stages.KDT can be occurred by two different stages.
06.High level of programming and technical knowledge is required.Without knowledge of programming  also this test can be performed.
My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!