ProcessMaker / ellucian-shared-tests

1 stars 0 forks source link

Overview

This repository consist of a series of Selenium tests that will be used to automatically validate changes between the shared ProcessMaker and Ellucian architectures.

Trogdor

These tests will ultimately be executed within a PM4 custom instance dubbed "Trogdor". Trogdor processes will be initiated via CI/API and then will execute the tests in this repository against the environment specified in the API call. Once the tests have completed a report of the results will be provided, and in certain cases it will trigger a follow up action in the CI pipeline.

Inheritance in Tests

In Trogdor, a custom selenium docker container is initialized with the contents of the repository. The script which executes the tests inside of this container, is setup to add the inludes/ dir of this repository into the PYTHONPATH, so that those classes may be reused across individual tests.

Enabling a Test for Execution

In Trogdor, it will parse the config.json file of this repository in order to determine which tests to run. Once you are satisfied with the test, add it to the config file in order to execute it within Trogdor.

Configuring a Test Run

When Trogdor is being executed, you must specify which environment to test and which test suite to execute. The following parameters are required:

Developing Tests Locally

Local System Requirements

You can develop and run tests locally. In order to do so, you must have the following:

For testing API requests, you must have:

Installing Locally

Running Tests Locally

Notes:

Writing Tests Locally

( Below suggestions may be redundant with use of conditional imports and ENV variable in Docker container, TBD ) Inside each test file:

Files

/includes Directory

/tests Directory