Cypress Essentials Training Course

Designed for newcomers to Cypress, our course covers everything you need to know to become proficient at writing test cases in Cypress.

The course is online, live, instructor-led, and incorporates a comprehensive e-workbook for the course. In between each online session we give you practical exercises for you to have a go at. The sessions are recorded, so you can review them later, and we also provide resources through GitHub projects.

Course Delivery and Duration

The course is delivered online, instructor-led (VILT) over 4 days, with each day being approximately 3.5 hours training. It can also be delivered on-site, classroom-based and this is over 3 full days.

Platform

We use GoToTraining and Teams for delivery, which can be accessed from a web browser. It provides full audio (VoIP, or Phone), desktop sharing, polls, quizzes, recording etc. We can also Microsoft Teams if required. Cypress can be run on Windows, Linux or Mac, and the course relates to all three platforms.

Pre-requisites

None, we do have an optional JavaScript primer chapter if you are new to JavaScript. We can also email you the setup instructions before the course so you can setup Cypress in readiness.

Course Overview

Introduction

What is Cypress, Pros & Cons of Cypress, Supported Browsers, Help References

JavaScript (Optional)

History & Terms, Executing JavaScript in the Console, Syntax Basics, Objects, String Functions, Functions, Loops

Visual Studio Code IDE

IDE Requirements, NodeJS, Installing & configuring VS Code features, VS Code extensions

Cypress Setup

Using npm, the package.json file, Installing Cypress, Cypress VS Code Extensions, Intellisense, The Test Runner, Cypress Folder Structure (Scaffolding)

First Test

Creating your first Spec File, Selector Playground

Debugging & Logging

Chrome Development Tools, Steeping through your code, Async/Sync, .debug(), logging & screensots

Web Page anatomy

Introduction to HTML & Web Page Anatomy, CSS Notation, generating Selectors

Locators

Locator Methods, Chaining Locators, Using .within(), traversing web elements, regular expressions, which locators to use

Actions

Common Actions, Action options, Drop-down lists

Synchronisation

Waiting for Elements to appear, Local Timeouts, Test Spec Timeout, Global Timeout Config, CLI Parameters for Timeouts, Wait

Mocha

What is Mocha?, Spec Structure, Enabling/Disabling Tests, Hooks, Mocha Snippets for VS Code

Asserts

Chai Styles, Implicit Asserts, Regular Expressions, Explicit Asserts, When NOT to Assert

Custom Commands & Function Libraries

Adding Cypress Commands

Fixtures

Using Hooks to load Fixture Test Data

Environment Variables

Alerts

Handling Alerts, capturing Alert messages

Command Line Interface (CLI)

Using npx & npm aliases

CLI parameters

Test Organisation

Folder structure, using grep, using tags

Cypress Cloud

Setting up & using Cypress Cloud, other report types

Continuous Integration

Setting up pipelines in Azure DevOps (ADO)

JUnit reports, npm alias

How to Book

Please either phone +44 (0)333 939 8884, or email tom.millichamp@edgewords.co.uk

Private courses can be arranged at a date & time to suit, and are for up to 10 delegates.

Related Courses: