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 minimal Cypress project
  • Executing the initial "smoke" E2E test in both GUI and headless modes

Core Concepts

  • Cypress fundamentals, command queue, and automatic retry mechanisms
  • 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 edge cases
  • Ensuring stability in frontend-backend integration

Custom Cypress Commands

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

Schedule: theoretical instruction + demonstrations + 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
  • Preventing flaky tests by enhancing stability and performance

Data-Driven Testing

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

Cypress Plugins

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

CI/CD with Cypress

  • Integration with GitHub Actions
  • Configuring Node.js and Cypress environments for headless execution
  • Automating test runs on push or pull requests
  • Secure management of 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