This page contains guide on using Cypress for UI and API testing for the first time.
Bellow considering example of Windows 10 with preintallled:
- NodeJS v18.14.2
- Chrome Version 124.0.6367.119
- Visual Studio Code 1.77.3 (no additional plugins required)
Run commands listed bellow in CMD in the location of project.
- Clone repository using GitBash:
git clone https://github.com/TsypliakAlexandr/Cypress-Simple-Example.git
- Intall dependencies:
npm install
- Create new NodeJS project:
npm init
- Install Cypress:
npm install cypress --save-dev
- Open Cypress in browser to run your tests:
npx cypress open
- Choose E2E testing option
- Choose Chrome as browser
- Use Chrome UI of Cypress, go to Specs run independent case for UI and API
- Open folder with repository using Visual Studio Code, find tests implementation in "cypress\e2e" folder