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

Core Concepts

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

API (Contract) Testing

  • Direct API testing with 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 + demonstration + hands-on exercises Prerequisites: Basic JavaScript knowledge, VSCode, and Git

Day 2 – Advanced Practices & CI/CD

Building Complex Tests

  • Automating complete user workflows
  • State management using cy.intercept and cy.session
  • Eliminating flaky tests to enhance stability and execution speed

Data-Driven Testing

  • Storing test data in JSON files (fixtures)
  • Parameterised tests executing identical logic with multiple input sets

Cypress Plugins

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

CI/CD with Cypress

  • Integration with GitHub Actions
  • Configuring Node.js and Cypress environments for headless execution
  • Automated test execution on push or pull request
  • Secure management of secrets

Summary and Conclusion

Requirements

  • A foundational understanding of software testing

Target Audience

  • Software testers
 14 Hours

Testimonials (4)

Related Categories