Get in Touch

Course Outline

Day 1 – Introduction & Basics

Introduction

  • The role of Cypress within the testing pyramid
  • Setting up the test automation environment (Node LTS, npm)
  • Creating a minimal Cypress project structure
  • Writing the first 'smoke' E2E test in both GUI and headless modes

Core Concepts

  • Cypress fundamentals, command queue mechanics, and automatic retry features
  • Utilizing hooks: before, beforeEach, afterEach, after
  • Aliases and reusability (.as(), cy.get('@alias'))

API (Contract) Testing

  • Direct API testing using Cypress (cy.request())
  • API stubbing with cy.intercept() for handling edge cases
  • Ensuring stability in frontend-backend integration

Custom Cypress Commands

  • Consolidating repetitive actions (e.g., login, navigation) into custom commands
  • Achieving cleaner, more maintainable code through reusable calls (cy.login())

Schedule: theory + demo + hands-on exercises Prerequisites: basic JS knowledge, VSCode, Git

Day 2 – Advanced Practices & CI/CD

Building Complex Tests

  • Automating comprehensive user flows
  • State management using cy.intercept and cy.session
  • Preventing flaky tests and enhancing stability and execution speed

Data-Driven Testing

  • Storing test data in JSON files (fixtures)
  • Running parameterized tests that execute the same logic with various inputs

Cypress Plugins

  • Reporting tools: mochawesome, allure-cypress, junit-reporter
  • Interaction enhancements: cypress-file-upload, cypress-real-events
  • Accessibility testing: cypress-axe, cypress-audit
  • Visual regression testing: cypress-image-snapshot
  • Maintainability improvements: @testing-library/cypress, cypress-plugin-tab

CI/CD with Cypress

  • Integrating with GitHub Actions
  • Configuring the Node.js and Cypress environment for headless execution
  • Automating test runs upon push or pull request events
  • Secure handling of sensitive secrets

Summary and conclusion

Requirements

  • A foundational understanding of software testing principles

Target Audience

  • Software testers
 14 Hours

Number of participants


Price per participant

Testimonials (3)

Upcoming Courses

Related Categories