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.
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”
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
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.
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.
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?
Hi All, In this video we will see about, Problems in creating our own functional interfaces? Using generics to solve the issue. Inbuilt Functional interfaces to the rescue. Consumer, Supplier, Function, Predicate (Important Functional Interfaces)
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.
Hi All, In this video we will see about the below things, Abstract method name : get() Default methods : N/A BiType : N/A What is Lazy evaluation ? How to perform that using Lambdas? Use case 1 : Assertion Libraries Use case 2 : Explicit wait message
Hi All, In this video, we will see about the below topics, Abstract Method name : R apply(T t) Default methods : andThen and compose BiType - BiFunction : R apply (T t, U u) Static Method : Identity Child interfaces of Function
Hi All, In this video , we will learn how we can use lambda in explicit wait and how we can extend to handle stale element reference exception using function interface implementation.
Hi All, In this video, we will see how we can use function interface lambda to create a By locator factory. We will understand how it can make our code look clean.
Hi All, In this video we will cover the below topics, Abstract method signature : boolean test(T t) Default methods : and, or, negate Static method : isEqual BiType : boolean test(T t, U u) Use case 1 : Sum of Integers example