Skip to content

Latest commit

 

History

History
44 lines (37 loc) · 1.85 KB

README.md

File metadata and controls

44 lines (37 loc) · 1.85 KB

Cypress Sample

Cypress automation framework skeleton with Typescript.

CYPRESS-SAMPLE
├───cypress
│   ├───downloads
│   ├───fixtures
│   ├───integration
│   ├───pages
│   ├───plugins
│   ├───screenshots
│   ├───support
│   └───videos
└───node_modules

Local Setup:

  1. Install Microsoft Visual Studio Code IDE. Ignore this if already installed.
  2. Install Nodejs on your system. Ignore this if already installed.
  3. Install Git on your system. Ignore this if already installed.
  4. git clone https://github.com/DesmondSanctity/cypress-test-framework.git or download master branch zip and extract code.
  5. Open project folder with VSCode.
  6. Run npm install command to restore all packages.
  7. Run npm run cypress:test command to run test.

New Setup:

  1. Install Microsoft Visual Studio Code IDE. Ignore this if already installed.
  2. Install Nodejs on your system. Ignore this if already installed.
  3. Install Git on your system. Ignore this if already installed.
  4. Open project folder with VSCode.
  5. Run npm init -y command to initilized project.
  6. Run npm install cypress --save-dev command to install cypress.
  7. Run npm install typescript --save-dev command to install typescript.
  8. Run npx tsc --init --types cypress --lib dom,es6 command to configure typescript.
  9. Run npx cypress open command to run test.

References: