Course Outline
Day 1 – Introduction & Fundamentals
Introduction
- The role of Cypress 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, including the command queue and automatic retry mechanisms
- Utilizing hooks: before, beforeEach, afterEach, and after
- Aliases and 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 integration between frontend and backend
Custom Cypress Commands
- Consolidating repetitive actions (such as login and navigation) into custom commands
- Achieving cleaner, more maintainable code through reusable calls (cy.login())
Schedule: theory + demo + hands-on exercises Prerequisites: basic JavaScript knowledge, VSCode, Git
Day 2 – Advanced Practices & CI/CD
Constructing Complex Tests
- Automating comprehensive user flows
- Managing state with cy.intercept and cy.session
- Eliminating flaky tests while enhancing stability and performance
Data-Driven Testing
- Storing test data in JSON files (fixtures)
- Executing parameterized tests that run the same logic with multiple inputs
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
- Setting up the Node.js and Cypress environment for headless execution
- Automating test runs upon push/PR events
- Securely managing secrets
Summary and conclusion
Requirements
- A foundational understanding of software testing
Target Audience
- Software testers
Testimonials (3)
hands on exercises, easier to retain information
ashley bolen - Insurance Corporation of British Columbia
Course - Test Automation with Selenium
Key topics can be discussed and agreed upon with the trainer in advance. Relaxed and pleasant atmosphere during the seminar days.
Lorenz - Continentale Lebensversicherung AG
Course - Advanced Selenium
I gained new knowledge and I'm pretty confident about it. Nothing unclear.