freeCourse Image for Java 8 for Automation QA - Power of Functional Programming

Java 8 for Automation QA - Power of Functional Programming

Intermediate
24 Lessons
05h 35m

Java 8 has a lot in store, not only for the developer but for test automation engineers too. This exclusive lesson will teach you how to write clean and maintainable automation test cases by leveraging Java's new functional programming features. If you are still writing your code with imperative style or coming from a functional programming background, and if you want to improve the way you code and strive to write clean code every day, then this is a course for you.

Start Watching

Course Content

24 Lessons · 05h 35m

01. How Java 8 can make our life easy ? See the Magic in 15 min

16m 12s

Hi All, In this video, I will give a small sample on how Java 8 and functional programming can make our test automation engineers life easy. Assignment : Open Amazon.in Fetch all the links in the amazon.in home page. Fetch the text from the links and remove the empty links Remove the duplicates. Sort the text in the alphabetical order. Print only the text starting with character “C” and “D”

02. Playlist content & Benefits of Functional Programming

06m 20s

Hi All, In this video we will discuss about what we are going to learn in this playlist and also the benefits of functional programming in Java. List of Topics: Stream Method references Constructor references Functional Interfaces Consumer, Predicate, Function, Supplier and their BiTypes(Except Supplier) Primitive Functional Interfaces Lambda Expressions Anonymous inner class Benefits: We are not going to do something that is not possible in OOP Clean and readable code Reduces the probability of making errors Removing boiler plate codes Less code May be parallel processing

03. Anonymous Inner Class in Java

12m 25s

Hi All, In this video, we will see about, What is Anonymous Inner Class? When to use Anonymous Inner Class? Anonymous Inner Class with Interface

04. What is Lambda Expression ? When can we use Lambda expression

11m 07s

Hi All, In this video we will see the below topics, It forms the basis for functional programming. New operator is introduced (lambda operator) Conditions: Method return type should match Parameters to the method should match Interface should have only one abstract or unimplemented methods.

05. What is a Functional Interface ?

07m 54s

Hi All, In this video, we will see about, Interface with only one abstract or unimplemented method. From Java 8 - Interface can have any number of default or static methods but it should contain only one abstract method to be called as Functional Interface. Using functional interface annotation.

06. Writing different Lambda expressions - Eclipse shortcut for Lambda

23m 50s

Hi All, In this video, we will see about the below topics Lambda Syntax Eclipse shortcut to convert an anonymous inner class implementation to Lambda expression. Method accepts one parameter and does not return anything. Method accepts two parameter and does not return anything. Method does not accepts any parameter but returns something. Method accepts one parameter and returns something. Method accepts one parameter and returns a boolean. Understanding the irrelevancy of the method name in functional interface. What is the problem with creating multiple functional interfaces?

08. Passing Lamdas/Behavior as Method Parameter in Java

11m 10s

Hi All, In this video, we will try to cover the below topics, Everything in Java belongs to an object or a class. An entity cannot exists on its own or in isolation. (Before Java 1.8) We pass object that contains a behavior to perform a task. From Java 8 , we can pass behavior itself to a method as a parameter. We will understand this with simple example.

View All

What You Will Learn

  • What is functional programming?
  • Java 8's features - Anonymous Inner class, Lambda Expressions, Stream API & functional interface
  • Use cases of functional interface implementation in Test Automation
  • How to leverage functional programming in a Test Automation Framework

Prerequisites

  • Good understanding of Java
  • Experience in working with automation tools like Selenium