1.0.0 • Published 4 years ago

webdriverio-typescript-docker v1.0.0

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

Description

POC testing automation project for Workspace App.

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

Instalation:

  • after cloning the project run npm install command
  • the command should get all needed packages and dependencies

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 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