Reader small image

You're reading from  Test Automation Engineering Handbook

Product typeBook
Published inJan 2023
PublisherPackt
ISBN-139781804615492
Edition1st Edition
Right arrow
Author (1)
Manikandan Sambamurthy
Manikandan Sambamurthy
author image
Manikandan Sambamurthy

Manikandan Sambamurthy has been a software engineer particularly focused on quality engineering efforts for over 15 years. He has helped several enterprise organizations formulate and implement their test strategies successfully. He has built and mentored diverse and smooth-functioning quality engineering teams throughout his career. Manikandan himself is a prolific tester and specializes in full stack test automation. He is a life-long learner and possesses tremendous knowledge on both front-end and back-end test technologies. He has led various continuous improvement efforts improving quality and productivity of entire software engineering teams. With his deep understanding and expertise in the quality area, he has induced considerable cost-savings across organizations through meticulous customizations of test automation frameworks. When he is not working on software, he loves to travel, read about science, and spend time with his family. He is an ardent sports fan currently residing in the San Francisco Bay Area.
Read more about Manikandan Sambamurthy

Right arrow

Installing and setting up Cypress

Let us now run through a detailed step-by-step installation and setup process for Cypress:

  1. In Chapter 4, we installed Node.js, which is a runtime environment for JavaScript. Node.js installation comes with a default and extremely useful package manager called npm. Figure 5.1 shows how to check the version of npm installed on your machine:
Figure 5.1 – Checking the installed npm version

Figure 5.1 – Checking the installed npm version

  1. Let us next create an empty project to install Cypress and further explore its features. Run npm init –y in an empty folder (preferably named app) in your local directory to create a package.json file. Figure 5.2 shows the corresponding output with the contents of the file:
Figure 5.2 – npm init

Figure 5.2 – npm init

Note

npm init <initializer> is used to set up new or existing packages. If <initializer> is omitted, it will create a package.json file with fields based on the...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Test Automation Engineering Handbook
Published in: Jan 2023Publisher: PacktISBN-13: 9781804615492

Author (1)

author image
Manikandan Sambamurthy

Manikandan Sambamurthy has been a software engineer particularly focused on quality engineering efforts for over 15 years. He has helped several enterprise organizations formulate and implement their test strategies successfully. He has built and mentored diverse and smooth-functioning quality engineering teams throughout his career. Manikandan himself is a prolific tester and specializes in full stack test automation. He is a life-long learner and possesses tremendous knowledge on both front-end and back-end test technologies. He has led various continuous improvement efforts improving quality and productivity of entire software engineering teams. With his deep understanding and expertise in the quality area, he has induced considerable cost-savings across organizations through meticulous customizations of test automation frameworks. When he is not working on software, he loves to travel, read about science, and spend time with his family. He is an ardent sports fan currently residing in the San Francisco Bay Area.
Read more about Manikandan Sambamurthy