Get in Touch

Course Outline

Day 1 – Introduction & Core Concepts

Introduction

  • The role of Cypress within the testing pyramid
  • Setting up the test automation environment (Node LTS, npm)
  • Establishing a basic Cypress project
  • Executing the first "smoke" E2E test in both GUI and headless modes

Core Concepts

  • Cypress fundamentals, including the command queue and automatic retry mechanisms
  • Applying hooks: before, beforeEach, afterEach, and after
  • Managing aliases and reusability (.as(), cy.get('@alias'))

API (Contract) Testing

  • Direct API testing using Cypress (cy.request())
  • Stubbing APIs with cy.intercept() to handle edge cases
  • Ensuring stable integration between frontend and backend components

Custom Cypress Commands

  • Grouping repetitive actions, such as login and navigation, into custom commands
  • Writing cleaner, more maintainable code through reusable calls (e.g., cy.login())

Schedule: theoretical instruction + demonstrations + hands-on exercises Prerequisites: fundamental JavaScript knowledge, VSCode, Git

Day 2 – Advanced Practices & CI/CD

Developing Complex Tests

  • Automating complete user workflows
  • Managing state using cy.intercept and cy.session
  • Preventing flaky tests while enhancing stability and performance

Data-Driven Testing

  • Storing test data in JSON files (fixtures)
  • Executing parameterized tests that apply the same logic to multiple 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 the Node.js and Cypress environment for headless execution
  • Automating test execution upon push or pull request
  • Secure management of sensitive information (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