Data Driven Vs Keyword Driven Automation Techniques

Data Driven Vs Keyword Driven Automation Techniques

Although close relatives,there are some differences in behaviours of keyword driven to Data driven test automation techniques.Both are structured ways of test scripting ,sharing 're usability' as common feature.

In Data driven based tests , test code is divided between test data and control/logic script files.Greatest benefit is expansion of test coverage is easier as test data can be enhanced with new test data entries by test analysts.With no significant cost of effort ,more test data can be added hence more testing coverage.Downside is having to maintain complex data files .If test data carries too many rows and columns, addition/editing of test data is subjected to manual errors.

Another disadvantage seen with data driven testing is too much focus on test data accuracy can lead to missing different test workflow scenarios like negative testting.

Above limitations of data-driven test techniques are covered by Keyword based techniques.In Keyword based test technique,keywords are basically action names given to set of instructions.Major difference compared to data driven is focus is on test work flows scenarios including the negative ones.But "Level of Abstraction" is key in Keyword based testing,too much of abstraction and multi-layering makes test suite complex and raise difficulties of understanding for Test/Business Analysts.Too low abstraction makes test procedures scripts lengthy and add addition of new tests requires more steps for less actions.


Both techniques have their own pros and cons,but together these are effective weapon in automation techniques's artillery.Test Automation engineer's choice is one weightage for test procedures coverage/complexity in comparision to flexibility required to add more data.

要查看或添加评论,请登录

社区洞察

其他会员也浏览了