quarckster / ui_testing_assignment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UI testing assignment

This repository contains the required files for implementing a few UI tests using Python and Selenium.

Prerequisites

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.

Structure

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

Usage

  1. Clone the repo
git clone git@github.com:quarckster/ui_testing_assignment.git
  1. Enter to the directory
cd ui_testing_assignment
  1. Run the docker-compose file:
docker-compose up -d
  1. Access the microblog service under http://localhost:5000 with your browser and familiarize yourself with it.

  2. Execute the tests

docker-compose exec tests pytest tests.py
  1. Implement the missing tests and make sure that they still pass

About

License:MIT License


Languages

Language:Python 96.5%Language:Dockerfile 3.5%