Test automation with
on Demo OrangeHRM & Req-Res
Note
- Demo OrangeHRM is a HR system and quite popular for testing advanced concepts
- Req-Res is an online site for testing the backend with all the most common REST APIs.
This tests are purely for Cypress features practice, usage of Page Object Model and API testing.
The only requirement for this project is to have Node.js installed on your machine.
If you see an error like "command not found": This means Node.js is not installed or the system's PATH variable is not set correctly.
If you need to install Node.js: You can download and install it from the official Node.js website. Choose the version that matches your operating system.
node -vThis command will display the installed version of Node.js if it is installed. For example, it might return something like v16.13.0.
npm -vThis will display the installed version of npm if it is present.
git clone https://github.com/darvinpatel/cypress-typescript-demo-ui-apicd cypress-typescript-demo-ui-api
npm install cypress typescript @types/node @types/cypress --save-devnpx cypress -vThis will display the installed version of cypress like this:
Cypress package version: 13.14.2
Cypress binary version: 13.14.2
Electron version: 27.3.10
Bundled Node version: 18.17.1npx cypress verifyThis used to verify that the Cypress installation is complete and functioning correctly. It would display output as:
✔ Verified Cypress! /Users/darwinpatel/Library/Caches/Cypress/13.14.2/Cypress.appnpx cypress opennpx cypress run
