Explain Test Driven Development Framework.

Software TestingFramework

Test Driven Development framework is the methodology implemented from a developer’s mindset. Here, a developer writes test cases covering each and every functionalities of the application with the intention of verifying if the code is proper.

Once these test cases get failed, the developers’ refactor the code in order to make those test cases pass. The process continues till all test cases get passed. This type of approach is extensively used in agile methodology. In this framework, test scripts are ready before the actual functionalities of the product are developed.

The most difficult thing in TDD is to design test scripts even before the code is developed.

The advantages of Test Driven Development Framework are listed below −

  • Uncover defects or errors early in the project life cycle.

  • Increases the productivity and efficiencies of the developers.

  • Yields faster feedback from the system.

  • Rework effort gets reduced to a large extent.

  • Cleaner design and development of code.

  • Easy to modify the design and implementation of the code.

  • Increases coordination and collaboration among the team members.

  • Ensures good test coverage.

Thus the process of TDD can be demonstrated like this −

  • Create automation scripts based on the requirements.

  • Execute all the test scripts on the newly developed code.

  • Analyze the results of execution of test scripts.

  • In case the test scripts fail, rewrite the code so that the test scripts pass.

  • Again execute all the test scripts on the newly developed code.

  • Finally refactor the code to increase the quality of the code.

raja
Published on 11-Jun-2020 15:49:52
Advertisements