Introduction to Cypress (CYP101)
Course Length: 1 day
Delivery Methods:
Available as private class only
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
Course Outline
- Getting Started with Cypress
- Cypress Overview
- Creating your first test
- Writing assertions & running tests
- Generating selectors with the Cypress selector playground
- Running Tests
- Benefits of using Cypress vs. Selenium or WebDriver
- CY Object
- How to interact with the browser and navigate between pages
- How to interact with page content to simulate user interaction (clicks, data entry)
- Using the different element selectors: get and contains
- Network Stubbing and Mocks
- How to simulate different scenarios by mocking HTTP requests
- Defining resource files to create mock scenarios
- Using HTTP request interceptors
- Cypress Test Runner
- Using the test runner to run and replay tests
- Recording tests results as a video with Cypress
- Debugging Tests
- Using the browser debugging tools with Cypress
- Time-traveling using test snapshots
- Cypress console outputs
- Cypress & Multiple Browsers
- Requirements for running tests in multiple browsers
- Installing and maintaining Cypress for multiple browsers
- Validation of a Small Web Application with Cypress
- Check that expected behavior happens on click
- Wait for asynchronous data
- Check that the right text shows up on the screen
- Check that the user actions trigger the expected behavior of the application
Class Materials
Each student will receive a comprehensive set of materials, including course notes and all the class examples.
Live Private Class
- Private Class for your Team
- Live training
- Online or On-location
- Customizable
- Expert Instructors