Skip to main content

cypress-test-framework--setup--run

Install Cypress

Step 1: clone project - https://gitlab.com/powr/powr-cypress (to get access ping Puru please - he is Maintainer) git clone [email protected]:powr/powr-cypress.git

Step 2: npm install

Step 3: npx cypress -v (Verify version 3.4.1)

Step 4: (Optional) npm uninstall cypress & npm install cypress@3.4.1 --save-dev

Run Cypress in GUI Mode

npm run cy:open --env=staging --group=stable --scope=smoke

Run Cypress in CLI Mode

npm run cy:run --env=staging --group=smoke --scope=smoke --headless=false --browser=chrome

Generate Test Report (after CLI command)

npm run generateReport

Configuration variables:

Environment Type - --env

  • dev
  • alpha
  • staging
  • prod

Test Group Name - --group

  • smoke (!)
  • mainsite
  • standalone
  • login
  • pricing
  • formbuilder
  • formbuilder_payment
  • formbuilder_form
  • stable
  • unstable

Test Data Scope (ddt approach) - --scope

  • smoke (fast positive verification)
  • regression (full verification)

(Only CLI) Headless Mode - --headless

  • false
  • true (works only on cypress version > 3.8.1)

(Only CLI) Browser Selection - --browser

  • chrome
  • electron
  • firefox (works only on cypress version > 4.0.0)
  • edge (works only on cypress version > 4.0.0)