EIEIOTECHNOVATION
← Training programmes

EIEIO / AUTOMATION & EMERGING TECHNOLOGY

Selenium WebDriver with Cucumber (Intermediate)

Course outline

2 days

Duration

2 days

Overview

This Selenium training, tailored to experienced developers and testers with substantial HTML and Java experience, teaches attendees how to automate testing of web application interfaces using Selenium with Java and Cucumber. Selenium is a testing framework for web applications, Java is a programming language that can be used to automate Selenium, and Cucumber is a software tool for running automated acceptance tests.

Course Objectives

  • Write realistic automated tests scripts for web applications
  • Build robust test frameworks and custom libraries
  • Integrate Java with Selenium
  • Design a data-driven test framework
  • Find elements on a web page and simulate user behavior
  • Automate user actions across multiple browser platforms
  • Develop Cucumber / BDD test plans with feature files using Gherkin
  • Continuous integration and testing

Who Should Attend

Java Developer

Prerequisite

  • Knowledge of Java
  • Understanding of programming is helpful
  • Understanding of web pages
  • Working computer with Firefox or Chrome browser
  • Familiar with software testing

Module 1 Understanding BDD

  • Compare BDD with TDD
  • Understand that BDD defines specifies requirements
  • Be able to classify Selenium vs Cucumber
  • Understand Automated Testing
  • Acceptance vs Regression Tests

Module 2 Getting Started with TestNG/JUnit & Selenium

  • Selenium Overview
  • Create a new project with TestNG/JUnit
  • Create your first test
  • Write assertions & run tests.
  • Generate tests with Selenium Builder
  • Running Tests & TestSuites

Module 3 Refactoring Test Scripts (with IntelliJ)

  • Understanding the Web Driver API
  • Element IDs & Name Selectors
  • CSS & XPath Selectors
  • Mouse & Keyboard Input
  • Timeouts and Waits
  • Debugging

Module 4 Page Object Model & Page Factory

  • Maintaining tests using the Page Object model
  • Refactor existing scripts to leverage Page Object Model
  • @FindBy(...)

Module 5 Cucumber Acceptance Tests using Selenium

  • Cucumber Overview
  • Following the user story style
  • Defining Cucumber steps as maintainable functions
  • Best practices for creating maintainable test scenarios and step definitions
  • Scenario Outlines

Module 6 WebDriver & Multiple Browsers

  • Requirements for running tests in multiple browsers
  • Creating test suites for multiple browsers
  • Creating portable tests
  • Installing and maintaining WebDrivers for multiple browsers

Module 7 Best Practices (touched on throughout the course)

  • TDD
  • Refactoring
  • Scrum
  • Continuous Integration
  • Iterative Development

Programme scope, delivery arrangements and suitability are confirmed during enquiry.