Course Outline
Day 1 – Introduction & Core Fundamentals
Introduction
- The role of Cypress within the testing pyramid
- Configuring the test automation environment (Node LTS, npm)
- Establishing a basic Cypress project
- Conducting the initial "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, after
- Aliases and reusability (.as(), cy.get('@alias'))
API (Contract) Testing
- Direct API testing using Cypress (cy.request())
- API stubbing via cy.intercept() for edge cases
- Ensuring stability in frontend-backend integration
Custom Cypress Commands
- Grouping repetitive actions (login, navigation) into custom commands
- Achieving cleaner, maintainable code through reusable calls (cy.login())
Schedule: theoretical instruction + demonstrations + hands-on exercises Prerequisites: basic JavaScript knowledge, VSCode, Git
Day 2 – Advanced Practices & CI/CD
Developing Complex Tests
- Automating comprehensive user workflows
- Managing state with cy.intercept and cy.session
- Mitigating flaky tests and enhancing stability and performance
Data-Driven Testing
- Storing test data in JSON 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 plugins: cypress-axe, cypress-audit
- Visual regression testing: cypress-image-snapshot
- Maintainability plugins: @testing-library/cypress, cypress-plugin-tab
CI/CD Integration with Cypress
- Integrating with GitHub Actions
- Configuring Node.js and Cypress environments for headless execution
- Automating test runs upon push/Pull Request events
- Securely managing secrets
Summary and conclusion
Requirements
- A foundational understanding of software testing principles
Target Audience
- Software testing professionals
Testimonials (3)
hands on exercises, easier to retain information
ashley bolen - Insurance Corporation of British Columbia
Course - Test Automation with Selenium
The trainer's availability to answer questions, as well as the concrete and visual demonstrations on TestComplete.
Radia - Cegid
Course - TestComplete
Machine Translated
Key topics can be discussed and agreed upon with the trainer in advance. Relaxed and pleasant atmosphere during the seminar days.