Implementing Unit Testing Best Practices


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description

Explore prominent unit testing patterns, differences between good and bad unit tests, code-driven unit testing frameworks, and other topics in this 14-video course. Begin with a look at Agile testing, focusing on Agile Testing Quadrants, then move on to prominent unit testing patterns and scenarios. Compare good and bad tests and the goals and approaches of writing good unit tests, and compare prominent code-driven unit testing frameworks that can be used to write unit tests in various programming languages. Discover how to implement the AAA unit testing pattern by using JUnit and TestNB, and the need for Test Double and how Dummy, Fake, stub class, and Mock objects are used to facilitate test replacements. Use Mockito application programming interface (API) to implement unit tests, and configure and write JUnit tests to test RESTful APIs with Mocha and Chai. In addition, unit test web services using SOAP UI, and use DBUnit to test data access objects written for database-driven applications. Explore unit testing using test-driven development (TDD) process, and automated testing with JUnit and Selenium.



Expected Duration (hours)
1.4

Lesson Objectives

Implementing Unit Testing Best Practices

  • discover the key concepts covered in this course
  • describe Agile testing and testing strategies that can be adopted in the Agile software development process, with a focus on Agile Testing Quadrants
  • list prominent unit testing patterns and scenarios where the patterns are applicable
  • compare good and bad tests and specify the goals and approaches of writing good unit tests
  • compare prominent code-driven unit testing frameworks that can be used to write unit tests in various programming languages
  • implement the AAA unit testing pattern using JUnit and TestNG
  • recognize the need for Test Double and describe how Dummy object, Fake object, stub class, and Mock object are used to facilitate test replacements
  • apply best practices to the configuration and use of the Mockito API for implementing unit tests with Mock objects
  • configure and write JUnit tests to test RESTful APIs with Mocha and Chai
  • unit test web services using SOAP UI and custom code
  • write unit tests using DBUnit to test data access objects that are written for database-driven applications
  • implement unit testing using the test-driven development process based on sample scenarios
  • implement automated testing with JUnit and Selenium to achieve enhanced browser compatibility
  • summarize the key concepts covered in this course
  • Course Number:
    it_atutbpdj_01_enus

    Expertise Level
    Intermediate