Fluent Assertions in Test Automation with AssertJ

Elevate Your Testing Precision and Code Readability

4.20 (148 reviews)
Udemy
platform
English
language
Software Testing
category
instructor
Fluent Assertions in Test Automation with AssertJ
6,018
students
1 hour
content
Feb 2021
last update
FREE
regular price

What you will learn

Basics of AssertJ

Writing Fluent Assertions For Selenium Automation Tests

Extend Assertions For Page Objects

Extend Assertions For WebElements

Why take this course?

Welcome to Fluent Assertions in Test Automation with AssertJ — your comprehensive guide to harnessing the power of AssertJ, a Java library designed to transform your testing experience. AssertJ not only enriches your code with a vast set of assertions but also enhances code readability and ensures helpful error messages, making it a must-have tool for Selenium test automation scripts.

What You'll Learn:

  1. Basics of AssertJ:

    • Gain a solid understanding of the fundamentals of AssertJ.

    • Explore its intuitive syntax and how it seamlessly integrates into your test automation workflow.

  2. Fluent Assert Statements for Selenium Scripts:

    • Dive into the world of fluent assertions, learning how to write concise and expressive assertions in your Selenium scripts

    • Discover how AssertJ's rich set of assertions simplifies the validation of complex scenarios.

  3. Extending Assertions for Page Objects:

    • Learn to extend AssertJ assertions for seamless integration with Page Object Models.

    • Elevate your Page Object design by incorporating robust and expressive assertions for enhanced test reliability.

  4. Extending Assertions for WebElements:

    • Explore advanced techniques for extending assertions to WebElements.

    • Ensure precise and readable validations for individual elements within your Selenium tests.

Why Enroll: This course is tailored for test automation enthusiasts, QA professionals, and developers seeking to master AssertJ for fluent assertions. By the end of the course, you'll be equipped with the skills to write assertions effortlessly, resulting in more maintainable and robust test scripts. Whether you're a beginner or experienced tester, this course provides a deep dive into AssertJ's capabilities, ensuring you can leverage its full potential in your projects.

Prerequisites: A basic understanding of Java and Selenium WebDriver concepts will be beneficial. Familiarity with test automation practices is recommended but not required.

Content

AssertJ - Crash Course

Introduction
Maven Dependencies
Project Setup
String Assertion
Q/A
Soft Assertion
List Assertion
List Individual Item Assertion
File Assertion

Custom Assertion For Test Automation

Custom Assertion Intro
WebElementAssert - Implementation
Base Test Implementation
Search Test - Demo
Attribute Value Assertion
Base Page - Implementation
Search Page - Implementation
Custom Page Assert - Implementation
Search Test - Refactor
Search Test - Final Run
Are We Complicating?
What's next?

Resources

Source Code

Reviews

Suryajit
November 1, 2021
Without a doubt, course and material provided by you is unique and adds so much value to our framework. The way you have introduced method chaining for webelement asserts, I will try to do the same for our explicit waits using awaility lib or some other way. Also, by learning from your courses, I have created the below Automation Framework (could you please have a look?) -> https://github.com/suryajit7/automation-suite
Alla
April 3, 2021
I founded useful and good explanation in this cours. But was difficult for me to understand the lector's pronounce. Subtitle in english would help me a lot.
Alexander
January 17, 2021
This course is ok, i missed some sort of slides introduction into the AssertJ framework, the AssertJ use TestNG as a test runner and introduction of author itself. About IDE choice, sure InteliJ is a default client choice, me as a consultant for my projects i used to Eclipse,just matter of choice. The difficulty with course was to get TestNG running in Eclipse which was not so difficult at all, but i think that i need to mention it here. This course has no concrete goals, sure you will see AssertJ in action with Selinium , but i rather expected to get the introduction into AsertJ modules, like for example AssertJ DB and AssertJ Swing or AssertJ Guava (who still use Swing? ;) ). Typing code is fun , when it runs and it runs. Still i am not fully convinced when i need to use AssertJ , Junit5 in my opinion have all what you need for typical testing purposes and for blackbox testing of websites you can use a Robot or Cypress framework. Selinium yes it is useful , but it must be used with caution and care. Can i recommend this course: i am not sure. Still if you completely unfamiliar with AssertJ try to read the docu first and only then take this course if you need.
HOANG
January 11, 2021
Really good course! Vinoth give us a good insights about how to make things working right, and why should we do that! 100% enjoy with the course pacing as well as course contents.

Charts

Price

Fluent Assertions in Test Automation with AssertJ - Price chart

Rating

Fluent Assertions in Test Automation with AssertJ - Ratings chart

Enrollment distribution

Fluent Assertions in Test Automation with AssertJ - Distribution chart
3197776
udemy ID
6/3/2020
course created date
11/4/2020
course indexed date
Lee Jia Cheng
course submited by