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)
  • Establishing a basic Cypress project
  • Conducting the initial "smoke" E2E test in both GUI and headless modes

Core Concepts

  • Cypress fundamentals, command queue mechanics, and automatic retry logic
  • Utilizing hooks: before, beforeEach, afterEach, and after
  • Aliases and code 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 stable frontend-backend integration

Custom Cypress Commands

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

Schedule: theory + demonstration + hands-on exercises Prerequisites: basic JavaScript knowledge, VSCode, Git

Day 2 – Advanced Practices & CI/CD

Building Complex Tests

  • Automating complete user workflows
  • Managing state with cy.intercept and cy.session
  • Minimizing flaky tests to enhance stability and performance

Data-Driven Testing

  • Storing test data in JSON files (fixtures)
  • Executing parameterized tests with varied inputs

Cypress Plugins

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

CI/CD Integration with Cypress

  • Integrating with GitHub Actions
  • Configuring Node.js and Cypress environments for headless execution
  • Triggering automatic test runs on code pushes or PRs
  • Securely managing secrets

Summary and conclusion

Requirements

  • Familiarity with software testing principles

Target Audience

  • Software testers
 14 Hours

Number of participants


Price per participant

Testimonials (3)

Upcoming Courses

Related Categories