Banner

Java Basics Primer for Selenium Users

Live Classroom
Duration: 5 days
Live Virtual Classroom
Duration: 5 days
Pattern figure

Overview

The Java basics primer for Selenium users is targeted towards Selenium testers and users, with an aim to introduce them to Java basic syntax. The course equips participants with the skills and knowledge essential for working efficiently with the testing scripts and automation tools in Selenium, while also discussing how to customize and enhance the Selenium capabilities to meet specific requirements.

What You'll Learn

  • Objects, classes and OO implementations
  • OO concepts such as encapsulation, inheritance, polymorphism and abstraction
  • Role of Java in the Selenium functionality
  • Basic Java syntax for flow control (looping and conditionals)
  • String handling and basic data structures
  • Java exception handling features
  • Classes, inheritance and polymorphism

Curriculum

  • Java platforms
  • Lifecycle of a Java program
  • Responsibilities of JVM
  • Documentation and code reuse

  • Setting up environment
  • Locating class files
  • Compiling package classes
  • Source and class files
  • Java applications
  • Exercise: Exploring MemoryViewer
  • Exercise: Exploring ColorPicker

  • Workbench and workspace
  • Views
  • Editors
  • Perspectives
  • Projects
  • Tutorial: Working with Eclipse Oxygen

  • Classes in Java
  • Class modifiers and types
  • Class instance variables
  • Primitives vs. object references
  • Creating objects
  • Exercise: Create a simple class

  • Passing parameters into methods
  • Returning a value from a method
  • Overloaded methods
  • Constructors
  • Optimizing constructor usage
  • Exercise: Create a class with methods

  • Operators
  • Comparison and logical operators
  • Looping
  • Continue and Break statements
  • The switch statement
  • The FOR-EACH () loop
  • Exercise: Looping

  • Strings
  • String methods
  • String equality
  • StringBuffer
  • StringBuilder
  • Exercise: Fun with Strings
  • Exercise: Using StringBuffers and StringBuilders

  • Extending a class
  • Casting
  • The object class
  • Default constructor
  • Implicit constructor chaining
  • Exercise: Creating subclasses

  • Instance vs. local variables – usage differences
  • Data types
  • Default values
  • Block scoping rules
  • Final and static fields
  • Static methods
  • Exercise: Field test

  • Arrays
  • Accessing the arrays
  • Multi-dimensional arrays
  • Copying arrays
  • Variable arguments
  • Exercise: Creating an array

  • Class location of packages
  • The package keyword
  • Importing classes
  • Executing programs
  • Java naming conventions

  • Polymorphism: The subclasses
  • Upcasting vs. Downcasting
  • Calling superclass methods from subclass
  • The final keyword
  • Exercise: Salaries – Polymorphism

  • Separating capability from implementation
  • Abstract classes
  • Implementing an interface
  • Abstract classes vs. interfaces
  • Exercise: Mailable – interfaces

  • Exception architecture
  • Handling multiple exceptions
  • Automatic closure of resources
  • Creating your own exceptions
  • Throwing exceptions
  • Checked vs. unchecked exceptions
  • Exercise: Exceptions

  • Generics and subtyping
  • Bounded wildcards
  • Generic methods
  • Legacy calls to generics
  • When generics should be used
  • Exercise: Shopping cart

  • Characterizing collections
  • Collection interface hierarchy
  • Iterators
  • The set interface
  • The list interface
  • Queue interface
  • Map interface
  • Using the right collection
  • Collections and multi-threading
  • Exercise: Collections poker
waves
Ripple wave

Who should attend

  • Software testers
  • Application testers
  • Quality assurance professionals
  • Business analysts
  • Automation testers
  • Test engineers
  • QA automation engineers

Prerequisites

Participants need to have a fundamental working knowledge of developing or testing software applications.

Interested in this Course?

    Ready to recode your DNA for GenAI?
    Discover how Cognixia can help.

    Get in Touch
    Pattern figure
    Ripple wave