Skip to content
This repository has been archived by the owner on Jul 25, 2018. It is now read-only.
/ cmc-smoke-tests Public archive

Smoke tests suite for Civil Money Claims application

License

Notifications You must be signed in to change notification settings

hmcts/cmc-smoke-tests

Repository files navigation

CMC Smoke Tests

A suite of tests which we use to verify if a particular application deployment is healthy and ready to serve users.

Getting started

Prerequisites

Test data

Additionally, the tests expect a test user to be available and activated in the system. Default credentials can be found in test-data.js file, if you want to override them you can set appropriate environment variables:

$ export TEST_USERNAME="user name goes here"
$ export TEST_PASSWORD="password name goes here"

Setup

Build smoke tests image:

$ ./bin/build-docker-image.sh

Start the Selenium server:

$ ./bin/start-test-environment.sh

Running against a particular application instance

You can specify which application the tests should run against by providing an URL to it as a parameter to the run script, e.g.:

$ ./bin/run-smoke-tests.sh https://some.app.environment.cmc.reform.hmcts.net

Running against a local development environment

When running against against a default, local deployment just run the script above with no parameters:

$ ./bin/run-smoke-tests.sh

If your deployment uses different ports and/or protocols then you will need to export the APP_URL environment variable and adjust the Selenium URL in bin/run-smoke-tests.sh. Extra URL for Selenium is needed because it connects to the host from within Docker.

License

This project is licensed under the MIT License - see the LICENSE file for details.