Skip to content

Repository files navigation

This is the template README. Please update this with project specific content.

securities-transfer-charge-frontend-ui-tests

UI journey tests suite for the securities-transfer-charge-reg-frontend using SeleniumWebdriver with ScalaTest.

Pre-requisites

Services

Start Mongo Docker container as follows:

docker run --rm -d -p 27017:27017 --name mongo percona/percona-server-mongodb:6.0

To start the required services via service manager, run:

sm2 --start STAMP_TAXES_ON_SHARES_ALL

Tests

Run tests as follows:

  • Argument <browser> must be chrome, edge, or firefox.
  • Argument <environment> must be local, dev, qa or staging.
sbt clean -Dbrowser="<browser>" -Denvironment="<environment>" test testReport

To run the UI tests locally, execute the script:

./run-tests.sh <browser> <environment>

ZAP tests

The run_zap_tests.sh script uses dast-config-manager to run ZAP tests locally using the DAST Docker image.

To run the ZAP tests locally, execute the script:

./run_zap_tests.sh

Scalafmt

Check all project files are formatted as expected as follows:

sbt scalafmtCheckAll scalafmtCheck

Format *.sbt and project/*.scala files as follows:

sbt scalafmtSbt

Format all project files as follows:

sbt scalafmtAll

License

This code is open source software licensed under the Apache 2.0 License.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages