1.0.1 • Published 4 years ago

workspace-webdriverio v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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

  1. 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
  2. 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
  3. 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
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