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, 2019 in Selenium by Sharon
2,466 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
Hope this helps!
Check out the Automation Testing training today and learn more about it!
answered Aug 5, 2019 by Anvi
• 14,150 points

Related Questions In Selenium

0 votes
2 answers

What is a headless browser in automation testing and what are it's benefits?

Hi Sanaya, a headless browser is a web browser ...READ MORE

answered Aug 1, 2019 in Selenium by Abha
• 28,140 points
4,240 views
0 votes
1 answer

What are the benefits of using Junit testing framework?

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

answered Jun 12, 2019 in Selenium by Abha
• 28,140 points
4,627 views
0 votes
1 answer

What are the drawbacks of using thread.sleep() command in Selenium Webdriver?

Hey Eric, some of the drawbacks of ...READ MORE

answered Jul 5, 2019 in Selenium by Abha
• 28,140 points
11,739 views
0 votes
2 answers

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,500 points
13,765 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,184 views
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,910 points
7,258 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,896 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, 2019 in Selenium by Anvi
• 14,150 points
1,755 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, 2019 in Selenium by Anvi
• 14,150 points
1,029 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP