1.0.1 • Published 4 years ago
workspace-webdriverio v1.0.1
Description
POC testing automation project for Workspace App.
Instalation:
- run npm i workspace-webdriverio to get the template packages
- in a cmd terminal run "${currentDirectory}\node_modules\workspace-webdriverio\setup.cmd"
- the command should get all needed packages and dependencies
Structure
- configuration file: *.wdio.conf.ts:
- contains all project configuration elements like used services, specs to include/exclude at test run
- contains capabilities configuration
- contains browser/driver hooks
- contains suite hooks
- contains test hooks
- src folder contains:
- page-objects folder with different application pages class definitions and simple methods
- types folder for aplication related data types
- user-flows folder for defining different user flows and page interactions
- utilities folder for static helper methods
- tests folder for all the spec files and test data
Docker:
- Desktop Docker running locally
- open cmd at the projct root directory (where docker-compose.yml file is present) to run:
docker-compose up -d
- grid will be available at http://localhost:4444/grid/console
- to view test execution for chrome open http://localhost:6080
- to view test execution for mozilla open http://localhost:6081
- to stop grid service, open cmd at the projct root directory (where docker-compose.yml file is present) to run:
docker-compose down
NPM commands:
npm test // to run the specs added to the wdio.conf.ts configuration file
npm run docker // to run specs on the selenium grid
npm run azure // the command to run specs in deploy/build pipeline
npm run browserstack // to run specs on browserstack
npm run lambda // to run specs on lambdatest
npm run clean // to delete the test reports and results
npm run allure // to generate and open Allure reports
npm run lint // to check for code checks