Giter Club home page Giter Club logo

ukhomeoffice.pttg-ip-e2e-tests's Introduction

pttg-ip-e2e-tests

IPS end to end integration test suite

Running tests locally with Docker

Make sure that you have docker and docker-compose installed, as well as VNC viewer.

From the project root directory, execute the following command:

docker-compose -f docker-compose.yml build

This will build the necessary images needed by the docker compose file. One of the images built will be the one created by the Dockerfile_e2e file that contains the tests that will have to run.

After building the images, you can bring up the whole environment by executing:

docker-compose -f docker-compose.yml up

This will bring up all the services mentioned in the docker-compose file and execute the tests.

It's possible to not execute the tests, by just commenting out the pttg-ip-e2e-tests service in the docker-compose.yml.

After the environments are up, selenium hub will be located at:

http://localhost:4444/

and the UI will be located at:

http://localhost:8000/#!/familymigration

If tests are run automatically from the docker container, the results will be located in the out directory.

Running test in Intellij

Tests can also be run manually via IntelliJ or command line once the docker-compose is up. To run the test manually and see their outcome it's possible to run the VNC Viewer and point it at localhost:5900. It shouldn't require a password to connect and if the chrome box is up, it will connect to it. Once the tests are kicked off and selenium is triggered, you should be able to see the browser appearing into the remote chrome box.

Testing different versions of components

Drone does not support configurable image versions for services, therefore it is not possible to trigger the tests specifying exact versions from another Drone job or from the command line.

  • You can achieve this locally by editing the image versions of components in the docker-compose.yml.
  • You can achieve this on the Drone server by editing the image versions of components in the .drone.yml file and adding your branch to the "test" stage.

ukhomeoffice.pttg-ip-e2e-tests's People

Contributors

mikehalmaho avatar vbadiniho avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.