Get in Touch

Course Outline

Day 1 – Introduction & Basics

Introduction

  • Understanding Cypress's role in the testing pyramid.
  • Setting up the test automation environment (Node LTS, npm).
  • Creating a minimal Cypress project.
  • Writing the first "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.
  • Leveraging aliases and reusability (.as(), cy.get('@alias')).

API (Contract) Testing

  • Performing direct API testing with Cypress (cy.request()).
  • Stubbing APIs using cy.intercept() for edge cases.
  • Ensuring stability in frontend-backend integration.

Custom Cypress Commands

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

Schedule: Theory + Demo + Hands-on Exercises Prerequisites: Basic JavaScript knowledge, VSCode, Git.

Day 2 – Advanced Practices & CI/CD

Building Complex Tests

  • Automating comprehensive user flows.
  • Managing state with cy.intercept and cy.session.
  • Avoiding flaky tests to improve stability and execution speed.

Data-Driven Testing

  • Storing test data in JSON fixture files.
  • Executing parameterized tests that run the same logic with multiple inputs.

Cypress Plugins

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

CI/CD with Cypress

  • Integrating with GitHub Actions.
  • Setting up the Node.js and Cypress environment for headless execution.
  • Automating test runs on code pushes or pull requests.
  • Securely handling secrets.

Summary and Conclusion

Requirements

  • A foundational understanding of software testing.

Audience

  • Software testers.
 14 Hours

Number of participants


Price per participant

Testimonials (3)

Upcoming Courses

Related Categories