tree: 1ffe3a1fff943aef2e6fdf9aa2378d6472ec4a7e [path history] [tgz]
  1. CommonUtils/
  2. Data/
  3. Downloads/
  4. PageObjects/
  5. specs/
  6. types/
  7. .gitignore
  8. config.json
  9. config.model.ts
  10. config.ts
  11. package-lock.json
  12. package.json
  13. pnpm-lock.yaml
  14. README.md
  15. runtests.bash
  16. tsconfig.json
traffic_portal/test/integration/README.md

Traffic Portal Test Automation

This directory contains integration tests for Traffic Portal.

Prerequisites

Building and Running

To build and run the tests, one can use the npm (or pnpm) scripts.

  • Install the dependencies with npm install (or pnpm install)
  • Run the webdriver, either in the background or in a separate terminal - because it's a long-running process - with npm run start-webdriver (or pnpm run start-webdriver)
  • Run the tests with npm test (or pnpm test)

Command Line Parameters

The tests can accept a few command line parameters - which can be separated from the npm flags with --.

FlagDescription
params.baseUrlEnvironment test run on. Tests are written for cdn-in-a-box only. Do not run on other environment
capabilities.shardTestFilesInput true or false to turn on or off parallelization. If the value is false, maxInstances will always count as 1. The default value in the config file = false
capabilities.maxInstancesInput number of Chromium instances that your machine can handle. Test will fail if local machine cannot handle a lot of Chromium instances. The default value = 1

Example

npm test -- --params.baseUrl https://localhost --capabilities.shardTestFiles true