Skip to content

Test Automation framework that supports multi-applications for UI & API tests based on Playwright and written with TypeScript.

Notifications You must be signed in to change notification settings

GetRaider/multi-automation-tests

Repository files navigation

Test Automation Framework for UI & API tests

Summary

Test Automation framework that supports multi-applications for UI & API tests based on Playwright and written with TypeScript.

Pre-requisites

Pre-conditions

  1. Execute pnpm install

Environment Variables

Variable Example Description
*APP bbc required app name
*ENV prod required env, default prod
*SPECS_TYPE web required specs type to run. Can be: all or ui
SPEC_NAMES sign-in,test-helper-usage requirespecs names separated by comma which will be executed locally, if no or disabled will execute all specs, disabled by default
TEST_RETRY 1 retries N times if test fails, disabled by default
TEST_TIMEOUT 30_000 custom test timeout, disabled by default
TEST_RUN_TIMEOUT 120_000 custom test runner timeout, disabled by default
LOG_LEVEL DEBUG desired log level, disabled by default. Can be: ALL, TRACE, INFO, DEBUG
TESTOMAT_REPORT_GENERATION false desired option to generate testomat test run report or not. Can be: true or false
TESTOMATIO_TITLE your own title desired testomat test run report title to run locally.
TESTOMAT_API_KEY api key testomat api key to run locally. Can be taken from GH actions secrets or lastPass note

Local test/s execution by mods:

  • headed - with opening browser (command can be shortened to npm t)

pnpm test

  • ui - with opening browser in specified app with all devtools, traces, and other playwright features

pnpm test:ui

  • debug - with opening browser and specified debug app to pause/resume test

pnpm test:debug

  • headless - without opening browser and other playwright features

pnpm test:headless

CI test/s execution by the "Specific Test" trigger:

  1. Navigate to the "Specific Test Run" CI trigger
  2. Click the "Run workflow" drop-down
  3. Select a branch, write a spec name/s by comma separated, and select specs type

About

Test Automation framework that supports multi-applications for UI & API tests based on Playwright and written with TypeScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published