====================
- Clone this git repo
git clone https://github.com/tiffanytomol/cockpit_test - Install Node. Get installer from here https://nodejs.org/en/download/
- Install dependencies. Type
npm install
In order to run a single test, just type npm run <script name>
You can try to run either of these:
npm run loginnpm run logoutnpm run licenseRegistrationElementsnpm run licenseRegistrationInvalidnpm run licenseRegistrationValid
-
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" },`
- Create new feature file in
src/feature - Create a new page file in
src/support/pagesto set the variable names in your feature file with their actual value and element selectors. - Add your new test in scripts to create a shortcut
- Run the new test