Exam Details
There is no exam as part of this course.
Objectives
- Get to grips with the Cypress Setup
- Learn how to create your first Spec File
- Gain a full understanding of adding Cypress Commands, using Hooks to load Fixture Test Data
- Setting up & using Cypress Cloud
Select a date
Please note: this course runs on demand so the price is TBC.
Please contact us for more details.
Course Content and Agenda
This course is delivered online in real time with a live trainer over three sessions of three hours each.
The sessions are usually scheduled for the morning, and finish by lunch time, avoiding too much disruption to your working day.
Joining instructions including links to access the training will be provided after booking is complete.
- What is Cypress
- Pros & Cons of Cypress
- Supported Browsers
- Help References
- History & Terms
- Executing JavaScript in the Console
- Syntax Basics
- Objects
- String Functions
- Functions
- Loops
- IDE Requirements
- NodeJS
- Installing & configuring VS Code features
- VS Code extensions
- Using npm, the package.json file
- Installing Cypress
- Cypress VS Code Extensions,
- Intellisense
- The Test Runner
- Cypress Folder Structure (Scaffolding)
- Creating your first Spec File
- Selector Playground
- Chrome Development Tools
- Steeping through your code, Async/Sync, .debug()
- logging & screensots
- Introduction to HTML & Web Page Anatomy CSS Notation
- Generating Selectors
- Locator Methods
- Chaining Locators
- Using .within(), traversing web elements, regular expressions, which locators to use
-
Common Actions, Action options, Drop-down lists
- Waiting for Elements to appear
- Local Timeouts, Test Spec Timeout, Global Timeout Config, CLI Parameters for Timeouts
- What is Mocha?
- Spec Structure
- Enabling/Disabling Tests
- Hooks
- Mocha Snippets for VS Code
- Chai Styles
- Implicit Asserts
- Regular Expressions
- Explicit Asserts
- When NOT to Assert
- Adding Cypress Commands
- Using Hooks to load Fixture Test Data
- Environment Variables
- Handling Alerts
- Capturing Alert messages
- Using npx & npm aliases
- CLI parameters
- Folder structure
- Using grep, using tags
- Setting up & using Cypress Cloud, other report types
- Setting up pipelines in Azure DevOps (ADO)
- JUnit reports, npm alias