8340  Reviews star_rate star_rate star_rate star_rate star_half

Acceptance Test-Driven Development, Behavior-Driven Development, and Test-Driven Development Training

This TDD training course covers Test-Driven Development and Behavior-Driven Development (BDD) concepts of “write your tests first” and “fail first.” Attendees learn how to drive their...

Read More
Duration 3 days
Course Code JAV-303
Available Formats Classroom

Overview

This TDD training course covers Test-Driven Development and Behavior-Driven Development (BDD) concepts of “write your tests first” and “fail first.” Attendees learn how to drive their development process through “test-implement-test pass-refactor” cycles. Students discover the link between Agile Stories and Acceptance Test-Driven Development (ATDD) through the definition of acceptance criteria that can then be implemented via Cucumber-JVM together with JUnit.

Attendees translate scenarios into runnable acceptance tests using Cucumber-JVM. Various testing patterns and approaches will be explored, including utilization of isolated testing via Stubs, Fakes, and Mock objects. Students leverage the evolution of User Stories and Business Flows into code to test web applications via the Selenium API.

Skills Gained

  • Capture the core JUnit syntax
  • Use BDD and the test-fail-first approach
  • Translate business requirements into user stories with acceptance tests
  • Refactor to clean up your code
  • Make your code testable
  • Use Fakes and Mocks for isolated Unit Tests
  • Use Cucumber-JVM to turn User Stores into code
  • Leverage the Selenium API

Prerequisites

All students must have Java experience.

Course Details

Training Materials

All attendees receive comprehensive courseware covering all topics in the course.

Software Requirements

  • Windows, macOS, or Linux with at least 8 GB RAM
  • A recent JDK version installed
  • Related software that Ascendient Learning will specify in a detailed setup sheet following the purchase of this class

Outline

  • Introduction
  • How Stories Fit into the Agile Process
    • What is Agile?
    • The Role of the Product Owner
    • Criteria for evaluating stories
    • Requirement analysis
    • The different types of stories
  • JUnit Overview/ Primer
    • What is Unit Testing?
    • JUnit, the test lifecycle - @Before, @After, @BeforeClass, @AfterClass, @Test
    • Writing assert methods – assertEquals, assertSame, assertTrue, assertFalse, assertNull
    • Hamcrest Matchers and using assertThat
    • PIT mutation testing
    • Code coverage
  • Test-Driven Development (TDD)
    • Principals and techniques
    • TDD Metaphors
    • Benefits, challenges, and limitations
    • Handling requirements change
    • Characteristics of good tests
    • Revisit anti-patterns
  • Testable Designs (Mocks, Fakes and Stubs)
    • Creating testable code - if you cannot test it what use is it?
    • Strategies for testable code
    • Test unfriendly features
    • Stubs, Fakes, and Mocks
    • Mocks as Collaborators
    • Mocks and return values, void methods, frequency calls, and ordering
    • Using the EasyMock and Mockito testing frameworks
  • Behavior-Driven Development (BDD) with Cucumber
    • Writing User Stories
    • Acceptance criteria
    • Acceptance Test-Driven Development (ATDD), specification by example
      • Creating software based on realistic examples,
      • Bridging the communication gap between business stakeholders 
    • Introduction to Cucumber
    • Writing scenarios with Gherkin
      • Gherkin syntax
      • Using given, when, then
      • Java, Ruby or Groovy Fixtures generated from scenarios
    • Using JUnit to run your Cucumber stories and scenarios
    • Writing set-up and tear down code using hooks (@Before and @After)
    • Using Data Tables, Scenario Outlines
    • Automate Cucumber steps to drive your application through and below the user interface
    • Refactor Cucumber step definitions to make them more readable and maintainable
    • Cucumber Reports
  • Testing Websites with Selenium with Cucumber
    • Using a WebDriver to test web applications and the Selenium API
    • Interrogating a response page
    • Simulating links and form submissions
    • Simulate multiple page navigation
    • Continuous Integration
  • Conclusion

Schedule

FAQ

Does the course schedule include a Lunchbreak?

Classes typically include a 1-hour lunch break around midday. However, the exact break times and duration can vary depending on the specific class. Your instructor will provide detailed information at the start of the course.

What languages are used to deliver training?

Most courses are conducted in English, unless otherwise specified. Some courses will have the word "FRENCH" marked in red beside the scheduled date(s) indicating the language of instruction.

What does GTR stand for?

GTR stands for Guaranteed to Run; if you see a course with this status, it means this event is confirmed to run. View our GTR page to see our full list of Guaranteed to Run courses.

Does Ascendient Learning deliver group training?

Yes, we provide training for groups, individuals and private on sites. View our group training page for more information.

What does vendor-authorized training mean?

As a vendor-authorized training partner, we offer a curriculum that our partners have vetted. We use the same course materials and facilitate the same labs as our vendor-delivered training. These courses are considered the gold standard and, as such, are priced accordingly.

Is the training too basic, or will you go deep into technology?

It depends on your requirements, your role in your company, and your depth of knowledge. The good news about many of our learning paths, you can start from the fundamentals to highly specialized training.

How up-to-date are your courses and support materials?

We continuously work with our vendors to evaluate and refresh course material to reflect the latest training courses and best practices.

Are your instructors seasoned trainers who have deep knowledge of the training topic?

Ascendient Learning instructors have an average of 27 years of practical IT experience and have also served as consultants for an average of 15 years. To stay current, instructors spend at least 25 percent of their time learning new, emerging technologies and courses.

Do you provide hands-on training and exercises in an actual lab environment?

Lab access is dependent on the vendor and the type of training you sign up for. However, many of our top vendors will provide lab access to students to test and practice. The course description will specify lab access.

Will you customize the training for our company’s specific needs and goals?

We will work with you to identify training needs and areas of growth.  We offer a variety of training methods, such as private group training, on-site of your choice, and virtually. We provide courses and certifications that are aligned with your business goals.

How do I get started with certification?

Getting started on a certification pathway depends on your goals and the vendor you choose to get certified in. Many vendors offer entry-level IT certification to advanced IT certification that can boost your career. To get access to certification vouchers and discounts, please contact info@ascendientlearning.com.

Will I get access to content after I complete a course?

You will get access to the PDF of course books and guides, but access to the recording and slides will depend on the vendor and type of training you receive.

How do I request a W9 for Ascendient Learning?

View our filing status and how to request a W9.

Reviews

It was very informative and covered all the required materials along with handson labs for practice.

I found this course informative. It was easy to follow and provided some good information.

ExitCertified was a great. They gave me all the materials and information I needed ahead of time to prepare for the course.

The training was very good to understand the concepts and how to set up things .

Overall ExitCertified is a great training provider and the remote learning is as effective as in person.