Test Automation With Cypress Basic

Learn how to write fast and reliable tests in a simple and objective way

Last updated 2022-01-10 | 4.3

- How to create fast and reliable automated tests with Cypress in a simple and objective way

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

Take the next step on becoming an expert in test automation with Cypress and broaden your test automation skills.

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.

As soon as you're done with the course, you will be able to put all the learnings into practice on your web projects (of your own or related to your work.)

These are the main benefits of enrolling in this course:

  • Easy project setup

  • Rapid evolution from lesson-to-lesson

  • Fast and reliable GUI automated tests

  • Automated tests that are independent of each other

  • Ready-for-CI automated tests

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

Who this course is for:

  • Software Engineers, Software Developers, QA engineers, Software Test Automation Engineers, Software Engineers in Test

Course content

1 sections • 11 lectures

Installation and initial setup Preview 10:00

In this class, you will:

  • Initialize git to track the code

  • Initialize NPM

  • Install Cypress

  • Initialize a test automation project with Cypress

IntelliSense & browser navigation via URLs Preview 06:07

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

Typing on input text fields Preview 10:42

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

Interacting with select input fields Preview 03:45

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

Interacting with radio buttons Preview 03:05

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

Interacting with checkboxes Preview 05:26

In this class, you will:

  • Learn how to check checkboxes

  • Learn how to uncheck checkboxes

Clicking on buttons Preview 04:08

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

Running assertions Preview 08:23

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

End-to-end tests with Cypress Preview 11:50

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

Custom commands Preview 07:14

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

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

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