Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Coursera

Cypress Automation Testing Framework - Zero To Hero

Packt via Coursera

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
This course features Coursera Coach! A smarter way to learn with interactive, real-time conversations that help you test your knowledge, challenge assumptions, and deepen your understanding as you progress through the course. In this comprehensive course, you'll start with the fundamentals of Cypress, learning how to set up the testing environment, install tools, and get acquainted with the Cypress Test Runner. You'll explore Cypress architecture, its unique advantages over Selenium, and get hands-on experience with writing test cases using Cypress syntax. As you progress, you'll dive deeper into advanced concepts such as asynchronous operations, API testing, and building robust test automation frameworks. Throughout the course, you'll gain practical skills by implementing a variety of web interactions, including clicking, typing, and dealing with complex elements like dropdowns and checkboxes. You'll also explore advanced topics like the Page Object Model framework, working with dynamic web elements, and integrating with version control systems like Git. Whether you're new to test automation or looking to expand your skill set, this course provides everything you need to master Cypress. By the end, you'll be confident in writing and executing end-to-end tests, automating APIs, and integrating testing into your CI/CD pipeline.

Syllabus

  • Introduction
    • In this module, we will provide an overview of the course objectives, structure, and expected outcomes. We will also delve into the architecture of Cypress and compare it to Selenium, helping you understand their key differences in automation testing.
  • Tools Installation And Project Setup
    • In this module, we will guide you through the installation of NodeJS and Visual Studio Code on both Windows and Mac. We’ll also demonstrate how to set up a Cypress project on each platform to ensure your environment is ready for automation testing.
  • Cypress Setup And Project Structure
    • In this module, we will cover how to install Cypress and introduce you to the Cypress Test Runner. You’ll also learn about the folder structure of a Cypress project and how to update Cypress to the latest version for optimal performance.
  • Getting Started With Cypress Automation
    • In this module, we will walk you through writing your first Cypress test case and executing tests using various commands. We will also explore how to leverage Visual Studio Code’s Intellisense to improve your Cypress scripting.
  • Using XPath With Cypress
    • In this module, we will focus on working with XPath in Cypress, demonstrating the techniques and best practices for using XPath effectively in your test cases.
  • Deep Dive Into Cypress Concepts
    • In this module, we will dive deeper into key Cypress commands such as 'get', 'within', and 'find'. You’ll learn how to chain commands together for more efficient tests and work with child elements effectively.
  • Asynchronous Nature
    • In this module, we will explain the differences between synchronous and asynchronous behaviors in Cypress. You will also learn how to handle promises and asynchronous operations in your test scripts.
  • Cypress Assertions
    • In this module, we will explore how to work with different types of assertions in Cypress, including implicit and explicit assertions, and the most commonly used ones for validating test results.
  • Web UI Interactions
    • In this module, we will guide you through various web UI interactions, such as clicking elements in multiple ways, handling checkboxes and dropdowns, and using Cypress commands like trigger and invoke for mouseover actions.
  • Working With Element List
    • In this module, we will explore how to interact with lists of elements using commands like 'each' and 'wrap'. We’ll also demonstrate how to manage dynamic dropdowns with auto-suggest features.
  • Working With Windows-Tabs-Popups-Frames
    • In this module, we will show you how to handle JavaScript alerts, popups, and confirmation dialogs, as well as manage multiple tabs, windows, and iframes during automation testing.
  • Common Challenges
    • In this module, we will address common challenges, such as handling uncaught exceptions and testing scenarios where empty data inputs are involved.
  • Framework Preparation
    • In this module, we will focus on framework preparation, including the use of hooks, managing test data with fixtures, and creating custom commands for more maintainable and efficient Cypress tests.
  • Page Object Model Framework
    • In this module, we will introduce the Page Object Model framework and guide you through creating and refactoring test suites to improve maintainability and scalability.
  • Reporting And Cloud Dashboard
    • In this module, we will teach you how to capture and use screenshots and videos for detailed analysis, generate comprehensive reports, and utilize the Cypress Cloud Dashboard for centralized test monitoring.
  • Advanced Features
    • In this module, we will explore advanced features of Cypress, such as configuring environment variables for dynamic test configuration and testing with the Safari WebKit browser.
  • API Testing Concepts
    • In this module, we will introduce you to REST API architecture, covering the key components, HTTP methods, and verification strategies necessary for effective API testing.
  • Cypress API Automation
    • In this module, we will guide you through automating API requests (GET, POST, PUT, DELETE) in Cypress, using aliases for cleaner code, and incorporating OAuth 2.0 for secure authentication.
  • Git And GitHub - Version Control System
    • In this module, we will introduce you to Git and GitHub, covering installation, repository management, and techniques for resolving merge conflicts when working on collaborative projects.
  • Continuous Integration With Jenkins
    • In this module, we will teach you how to use Jenkins for continuous integration, including setup, plugin management, and integrating with Git for streamlined project builds.
  • CSS Selectors - Advanced Locators
    • In this module, we will cover advanced CSS selector techniques, including using IDs, multiple classes, wildcards, and child node selection for precise and flexible element targeting in Cypress tests.

Taught by

Packt - Course Instructors

Reviews

Start your review of Cypress Automation Testing Framework - Zero To Hero

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.