Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.14 KB

File metadata and controls

36 lines (24 loc) · 1.14 KB

Cockpit Test Files

====================

How to setup test environment

  1. Clone this git repo git clone https://github.com/tiffanytomol/cockpit_test
  2. Install Node. Get installer from here https://nodejs.org/en/download/
  3. Install dependencies. Type npm install

How to run single test

In order to run a single test, just type npm run <script name>

You can try to run either of these:

  • npm run login
  • npm run logout
  • npm run licenseRegistrationElements
  • npm run licenseRegistrationInvalid
  • npm run licenseRegistrationValid

How to create shortcut to run a test

  1. In package.json file, just add your newly created test under scripts section, just like below.

    "scripts": { "new test name": "node_modules\.bin\wdio wdio.conf.js --spec /licenseRegistrationValid.feature & node report_processor.js" },`

How to create new test

  1. Create new feature file in src/feature
  2. Create a new page file in src/support/pages to set the variable names in your feature file with their actual value and element selectors.
  3. Add your new test in scripts to create a shortcut
  4. Run the new test