Files
awx/awx/ui/test/e2e
2018-08-07 16:29:19 -04:00
..
2018-04-09 16:30:47 -04:00
2017-10-10 16:59:42 -04:00
2018-07-20 10:02:50 -04:00
2017-10-10 16:59:42 -04:00
2018-02-25 19:40:08 -05:00

AWX E2E

Introduction

This is an automated functional test suite for the front end.

Technology

The tests are written in Node.js and use the Nightwatch test runner.

Requirements

  • node.js 6.x LTS
  • npm 3.x LTS

Installation

A successful invocation of make ui-devel will prepare your environment with the software dependencies required to run these tests.

Configuration

Three inputs are required:

AWX_E2E_URL

A valid url for a running AWX instance that is reachable by your machine. This can be your local development instance or other awx instance. Defaults to https://localhost:8043.

AWX_E2E_USERNAME

A valid admin username for the target awx instance. Defaults to awx-e2e.

AWX_E2E_PASSWORD

A valid password for the admin. Defaults to password.

These inputs can be provided as environment variables or defined as default values in settings. The settings file also contains all other configurable input values to this test suite.

Usage

# run all of the tests with a live browser
npm --prefix awx/ui run e2e

# run a subset of the tests
npm --prefix awx/ui run e2e -- --filter="test-credentials*"

Note:

  • Use npm --prefix awx/ui run e2e -- --help to see additional usage information for the test runner.
  • All example commands in this document assume that you are working from the root directory of the awx project.