Skip to content

Files

Latest commit

 

History

History

functional_tests

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

To install nvm, follow these steps:

  1. Run brew install nvm
  2. To check if nvm is successfully install, use nvm -v

To install node.js, follow these steps:

  1. To install node.js (stable version), use nvm install <node_version>
    E.g., nvm install 14, this will install node.js version 14.X
  2. To check if node.js is successfully install, use node -v

To install taiko, follow these steps:

  1. Run npm install -g taiko
  2. To check if taiko is successfully install, use taiko --version

To install gauge, follow these steps:

  1. Run brew install gauge .
  2. To check if gauge is successfully install, use gauge -v

To run functional tests, do the following:

  1. Navigate to functional_tests folder using cd functional_tests.
  2. To feed data for tests, run the sql/dataSeed.sql file in respective db.
  3. Run using the command, gauge run specs/ --env <env-name> in default headless mode on dev environment.
    (Note: You can change environment by replacing --env value.)
  4. To run specific spec file, gauge run specs/<SPEC-FILE> --env <env-name>
  5. To run all specs parallely, gauge run specs/ --env <env-name> -p.
  6. To run with headless mode off, in tests/AsrInitiative.js file const headless = process.env.headless_chrome.toLowerCase() === 'true';, replace true with false.

Note: - All environment related properties are in the functional_tests/env folder.
- Supported envs: local, dev, prod, test