Thank you for sending your enquiry! One of our team members will contact you shortly.
Thank you for sending your booking! One of our team members will contact you shortly.
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 structure
- Writing the first "smoke" E2E test in both GUI and headless modes
Core Concepts
- Understanding Cypress fundamentals, including the command queue and automatic retry mechanisms
- Utilizing hooks: before, beforeEach, afterEach, after
- Leveraging aliases for reusability (.as(), cy.get('@alias'))
API (Contract) Testing
- Performing direct API tests with Cypress (cy.request())
- Stubbing APIs using cy.intercept() for handling edge cases
- Ensuring stability in frontend-backend integration
Custom Cypress Commands
- Consolidating repetitive actions (such as login and navigation) into custom commands
- Achieving cleaner, more maintainable code through reusable calls like cy.login()
Schedule: theory + demo + hands-on exercises Prerequisites: basic JS 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 to enhance stability and performance
Data-Driven Testing
- Storing test data in JSON files (fixtures)
- Executing parameterized tests that run the same logic with various inputs
Cypress Plugins
- Reporting tools: mochawesome, allure-cypress, junit-reporter
- Interaction plugins: 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
- Configuring the Node.js and Cypress environment for headless execution
- Automating test runs upon push or PR events
- Securely managing secrets
Summary and conclusion
Requirements
- A foundational understanding of software testing principles
Audience
- Software testers
14 Hours
Testimonials (3)
hands on exercises, easier to retain information
ashley bolen - Insurance Corporation of British Columbia
Course - Test Automation with Selenium
Very interesting subject and very knowledgeable trainer
Pedro Miguel Costa - Natixis
Course - Automation Testing with Cypress
Key topics can be discussed and agreed upon with the trainer in advance. Relaxed and pleasant atmosphere during the seminar days.