Course Title: Mastering Cypress Automation Testing with JavaScript (Updated for Cypress 12.x)
Course Overview:
Welcome to the cutting-edge world of Cypress Automation Testing, where we bring you the latest and most comprehensive course designed to propel your testing skills into the future. In this course, we delve into both Web and API Automation Testing using Cypress, the forefront technology known for its speed, simplicity, and reliability across modern web applications.
Course Highlights:
Course Title: Mastering Cypress Automation Testing with JavaScript (Updated for Cypress 12.x)
Course Overview:
Welcome to the cutting-edge world of Cypress Automation Testing, where we bring you the latest and most comprehensive course designed to propel your testing skills into the future. In this course, we delve into both Web and API Automation Testing using Cypress, the forefront technology known for its speed, simplicity, and reliability across modern web applications.
Course Highlights:
Updated for Cypress 12.x (Latest Version): Stay ahead of the curve by mastering the most recent features and enhancements in Cypress with JavaScript.
Web & API Automation Focus: Covering both realms, this course equips you with the skills to automate testing seamlessly in the browser and API environments.
From Basics to Advanced Concepts: Whether you're new to JavaScript or a seasoned developer, we've got you covered. The course includes a comprehensive review of JavaScript programming, starting from the basics and progressing to advanced topics.
Real-Time Examples: Learn through practical, real-time examples that provide a hands-on understanding of Cypress concepts and best practices in framework design.
No Prerequisites: This course is designed to cater to all skill levels. We've taken care of everything, including JavaScript basics, so you can dive right into the exciting world of Cypress Automation.
Theoretical Material & Coding Resources: Each session comes with theoretical material and coding resources that you can download, ensuring a well-rounded learning experience.
Course Contents:
JavaScript Programming:
Introduction
DOM (Document Object Model)
Environment Setup
JavaScript Basics: Comments, Statements, Variables, Data Types, Operators, etc.
Web Automation using Cypress:
Cypress Introduction
Selenium Vs Cypress
Environment setup on Windows and Mac
Writing and organizing tests
Interacting with elements
Handling UI Elements, Alerts, Frames, Navigation, File Uploads, Mouse Events, Tables, etc.
Working with Hooks and Data-Driven Testing
Custom Commands in Cypress
HTML Reports Generation
Page Object Model Pattern
Cypress Command Line & Dashboard services
Continuous Integration with Cypress and Jenkins
API Automation using Cypress:
Introduction to API Testing
Setting up the Project
HTTP Methods:
What is Cypress?
Who uses Cypress?
Selenium Vs Cypress
Cypress Ecosystem
Features of Cypress
Limitations in Cypress
1) Download Node & NPM
https://nodejs.org/en/download/
2) Set NODE_HOME Environment Variable
3) Create Cypress Working Folder
4) Generate package.json
npm init
5) Install Cypress
npm install cypress --save-dev
6) Download Visual Studio Code Editor
https://code.visualstudio.com/download
How to create and run tests in cypress
Locators in Cypress
Types of assertions in cypress.
Handle Checkboxes & Radio Buttons in Cypress
Handle different types of drop downs in Cypress
Steps to Generate HTML Report:
--------
1) install cypress-mochawesome-reporter
npm i --save-dev cypress-mochawesome-reporter
2) Change cypress reporter & setup hooks
Edit config file (cypress.config.js by default)
const { defineConfig } = require("cypress");
module.exports = defineConfig({
reporter: 'cypress-mochawesome-reporter', // for reports
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
require('cypress-mochawesome-reporter/plugin')(on); // for reports
},
},
});
3) Add to cypress/support/e2e.js
import 'cypress-mochawesome-reporter/register';
4) run cypress
npx cypress run --spec cypress\e2e\MyTest.cy.js
▪How to run Cypress from the command line
▪How to specify which spec files to run
▪Working with Dashboard features
–Capture screenshots
–Recording
▪cd C:\Users\admin\CypressAutomation>
▪To Run all the specs in command line
–node_modules\.bin\cypress run
▪To Run specific specs the tests in command line
–node_modules\.bin\cypress run --spec "cypress\integration\examples\FirstTest.spec.js"
▪Dashboard
▪https://dashboard.cypress.io/login
▪Screenshots & Recording feature in Dashboard
–cypress run --record --key d63f3548-892b-41b9-bcb7-07ae3cbf9f9b
"scripts": {
"test": "node_modules\\.bin\\cypress run --config pageLoadTimeout=100000",
"runtests":"npm run test --"
}
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.