The boilerplate for automatization tests with CodeceptJS and selenium-standalone
- Install packages
npm i
npm i codeceptjs-webdriverio -g
npm i selenium-standalone@latest -g
- Create output directories
node index.js
- Install Selenium server
selenium-standalone install
- Change configs in codecept.json
- Create new test. Run following command and put filename of a new test
npm run new
or
codeceptjs gt
- Run selenium-standalone server
npm start
or
selenium-standalone start
- Run tests
npm run test
or
codeceptjs run --steps
- Get report
npm run report
or
codeceptjs run --reporter mochawesome