This repository contains the required files for implementing a few UI tests using Python and Selenium.
You will need docker
and
docker-compose
installed. These packages are usually
available via your package manager if you're using Linux. If you're using Fedora or have problems
with cgroups, you can also substitute docker
with
podman
that is also compatible with
docker-compose
. To watch automation in
action you should have a VNC viewer installed such as tigervnc-viewer
, gvncviewer
, krdc
or
remmina
. VNC server is avaialable on 127.0.0.1:5999
.
The composed environment will start 3 containers:
- the
microblog
service that you should be testing - the
selenium
backend that provides us the browser automation - the
tests
container that will be used to execute the tests
- Clone the repo
git clone git@github.com:quarckster/ui_testing_assignment.git
- Enter to the directory
cd ui_testing_assignment
- Run the
docker-compose
file:
docker-compose up -d
-
Access the
microblog
service under http://localhost:5000 with your browser and familiarize yourself with it. -
Execute the tests
docker-compose exec tests pytest tests.py
- Implement the missing tests and make sure that they still pass