What are the benefits and drawbacks of using Test Driven Development in Automation testing?

0 votes
What are the benefits and drawbacks of using Test Driven Development in Automation testing?
Aug 1 in Selenium by Sharon
66 views

1 answer to this question.

0 votes

Hi Sharon, Test Driven Development (TDD) is an iterative process where each iteration starts with a set of tests written for a new piece of functionality. These tests are supposed to fail during the start of iteration and in the next phase of the iteration Application code is written with an intention to pass all the tests written earlier in the iteration. Some of the benefits of using Test Driven Development are:

  1. Unit test proves that the code actually works
  2. Can drive the design of the program
  3. Refactoring allow to improve the design of the code
  4. Low Level regression test suite
  5. Test first reduce the cost of the bugs

Despite of having so many benefits, TDD has following drawbacks:

  1. Developer can consider it as a waste of time
  2. The test can be targeted on verification of classes and methods and not on what the code really should do
  3. Test become part of the maintenance overhead of a project
  4. Rewrite the test when requirements change
answered Aug 5 by Anvi
• 13,960 points

Related Questions In Selenium

0 votes
2 answers
0 votes
1 answer

What are the benefits of using Junit testing framework?

Hi Prakhar, some of the benefits of ...READ MORE

answered Jun 11 in Selenium by Abha
• 27,200 points
185 views
0 votes
1 answer
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,430 points
1,192 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,510 points
1,276 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,510 points
1,035 views
0 votes
2 answers

What are the benefits of using TestNG with Selenium?

Hi Falguni, some of the benefits of ...READ MORE

answered May 31 in Selenium by Anvi
• 13,960 points
135 views
0 votes
1 answer

What are the main functions of Xpath locator in Selenium?

Hi Danish, for handling complex and dynamic ...READ MORE

answered May 9 in Selenium by Anvi
• 13,960 points
85 views