Test automation with Cypress basic
4.5 (8 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
30 students enrolled

Test automation with Cypress basic

Learn how to write fast and reliable tests in a simple and objective way
4.5 (8 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
30 students enrolled
Last updated 5/2020
English
English [Auto-generated]
Current price: $16.99 Original price: $24.99 Discount: 32% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 1.5 hours on-demand video
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • How to create fast and reliable automated tests with Cypress in a simple and objective way
Requirements
  • You need to have git, node (12.13.0), and NPM (6.13.2) installed on your computer
Description

Cypress is an open-source test framework that allows writing automated tests in an easy, quick and reliable way, all in JavaScript, and this is what you will learn in this course.

During the course, we will install Cypress, we will set it up to write the tests, we will cover different ways of interacting with web applications, such as navigation via URLs, different kinds of actions (e.g.: typing on text fields, selecting options, clicking on buttons, etc.), we will learn how to create test assertions to verify that the application under test is behaving as it should be, and finally, we will learn how to run the tests both in interactive and headless mode.

At the end of the course, you will be able to start applying your learnings in real web projects.

Come learn how to use this modern test framework that is simplifying the life of software development professionals, and stand out in the market.

Requirements and recommendations:

  • git, Node.js (12.13.0) e NPM (6.13.2) installed on your computer

  • Basic knowledge of HTML and CSS selectors

  • Basic knowledge of JavaScript (ES6 is a Plus)

  • Basic knowledge of command line

  • Basic knowledge of git

  • Basic knowledge of NPM (Node Package Manager)

  • Introductory course of testing automation

Who this course is for:
  • Software Engineers, Software Developers, QA engineers, Software Test Automation Engineers, Software Engineers in Test
Course content
Expand 11 lectures 01:14:49
+ Test automation with Cypress basic
11 lectures 01:14:49

In this class, you will:

  • Initialize git to track the code

  • Initialize NPM

  • Install Cypress

  • Initialize a test automation project with Cypress

Preview 10:00

In this class, you will:

  • Learn about the Cypress IntelliSense functionality

  • Learn how to create a test suite

  • Learn how to create a test case

  • Learn how to navigate in the browser via URLs

IntelliSense & browser navigation via URLs
06:07

In this class, you willl:

  • Learn how to refactor the test suite to remove code duplication by using the beforeEach() function

  • Learn how to type on text input fields with Cypress

Typing on input text fields
10:42

In this class, you will learn how to select an optino from a select input field with Cypress.

Interacting with select input fields
03:45

In this class, you will learn how to check a radio button with Cypress.

Interacting with radio buttons
03:05

In this class, you will:

  • Learn how to check checkboxes

  • Learn how to uncheck checkboxes

Interacting with checkboxes
05:26

In this class, you will learn how to click in web elements (e.g.: buttons) with Cypress.

Clicking on buttons
04:08

In this class, you will learn how to run assertions on tests with Cypress to verify that the application is behaving as expected.

Running assertions
08:23

In this class, you will combine the knowledge from lessons 2 through 8 to write a true end-to-end test using Cypress.

End-to-end tests with Cypress
11:50

In this class, you will learn how to write custom commands that can be reused throughout the tests.

Custom commands
07:14

In this class, you will:

  • Learn how to run all tests in interactive mode

  • Learn how to run all tests in headless mode

  • Learn how to run the tests using the npm test script

Bonus class - running all tests in both interactive and headless mode
04:09