Programming Private

Introduction to Cypress (CYP101)

Course Length: 1 day

Cypress is a popular front-end testing tool allowing developers to quickly and easily write, debug, and record tests.

Introduction to Cypress

Register or Request Training

  • Private class for your team
  • Live expert instructor
  • Online or on‑location
  • Customizable agenda
  • Proposal turnaround within 1–2 business days

Course Overview

Cypress is a popular front-end testing tool allowing developers to quickly and easily write, debug,
and record tests. This hands-on, live Cypress training course teaches experienced developers and testers how to
automate testing of web application interfaces using Cypress.

Course Benefits

  • How to run end-to-end tests with Cypress
  • Writing tests and using assertions
  • Debugging tests
  • Using Cypress for continuous integration
  • Navigating the Cypress user interface
  • Screenshots and video recordings to analyze test failures
  • Data stubbing and mocks to test different scenarios
  • Creating custom commands with Cypress

Delivery Methods

Private Class
Delivered for your team at your site or online.

Course Outline

  1. Getting Started with Cypress
    1. Cypress Overview
    2. Creating your first test
    3. Writing assertions & running tests
    4. Generating selectors with the Cypress selector playground
    5. Running Tests
    6. Benefits of using Cypress vs. Selenium or WebDriver
  2. CY Object
    1. How to interact with the browser and navigate between pages
    2. How to interact with page content to simulate user interaction (clicks, data entry)
    3. Using the different element selectors: get and contains
  3. Network Stubbing and Mocks
    1. How to simulate different scenarios by mocking HTTP requests
    2. Defining resource files to create mock scenarios
    3. Using HTTP request interceptors
  4. Cypress Test Runner
    1. Using the test runner to run and replay tests
    2. Recording tests results as a video with Cypress
  5. Debugging Tests
    1. Using the browser debugging tools with Cypress
    2. Time-traveling using test snapshots
    3. Cypress console outputs
  6. Cypress & Multiple Browsers
    1. Requirements for running tests in multiple browsers
    2. Installing and maintaining Cypress for multiple browsers
  7. Validation of a Small Web Application with Cypress
    1. Check that expected behavior happens on click
    2. Wait for asynchronous data
    3. Check that the right text shows up on the screen
    4. Check that the user actions trigger the expected behavior of the application

Class Materials

Each student receives a comprehensive set of materials, including course notes and all class examples.

Have questions about this course?

We can help with curriculum details, delivery options, pricing, or anything else. Reach out and we’ll point you in the right direction.