Simple play icon Course

Automated Tests in Java with Fluent Interface Using WebDriver Selenium

by Andrejs Doronins

Automated UI tests should be easy to read and clearly show business logic, not filled with low-level code. Learn how to create a Fluent Interface for your tests and make them highly readable, easy to maintain and pleasant to work with.

What you'll learn

Too often a suite of automated tests is thrown out because it is cumbersome to maintain. In this course, Automated Tests in Java with Fluent Interface Using WebDriver Selenium, you will gain the ability to write UI tests in an entirely different way - one that makes UI tests useful and actually pleasant to work with. First, you will learn the Page Object pattern and apply it to a UI test in order to remove low-level Selenium API details from the test. Next, you will discover how method chaining works to make your test fluent and improve your own experience writing and reading tests. Finally, you will explore how to approach the UI testing domain and design a more complex Fluent Interface that will feel like a real language, allowing anyone to read and understand what the test does. By the end of this course, you will have the necessary skills to write a small (or large) UI testing framework that enables you to create fluent and easy-to-read tests for your web application.

About the author

Andrejs is a Quality Assurance professional with over 6 years of experience. He specializes in Test Automation but does not neglect the importance of getting involved in the Software Development Life Cycle early - finding issues during requirements analysis is as important as doing manual and exploratory testing. He is experienced in writing unit, integration and acceptance tests for a wide number of technologies and contexts - from browser automation to the Web API layer and all the way to test... more

Ready to upskill? Get started