Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quarckster/ui_testing_assignment
https://github.com/quarckster/ui_testing_assignment
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/quarckster/ui_testing_assignment
- Owner: quarckster
- License: mit
- Created: 2022-04-21T15:59:50.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-04-22T07:55:51.000Z (over 2 years ago)
- Last Synced: 2023-04-06T03:57:50.881Z (over 1 year ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UI testing assignment
This repository contains the required files for implementing a few UI tests using Python and Selenium.
## Prerequisites
You will need [`docker`](https://docs.docker.com/get-docker/) and
[`docker-compose`](https://docs.docker.com/compose/install/) 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`](https://podman.io/getting-started/installation) that is also compatible with
[`docker-compose`](https://www.redhat.com/sysadmin/podman-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
```sh
git clone [email protected]:quarckster/ui_testing_assignment.git
```2. Enter to the directory
```sh
cd ui_testing_assignment
```3. Run the `docker-compose` file:
```sh
docker-compose up -d
```4. Access the `microblog` service under [http://localhost:5000](http://localhost:5000) with your browser and familiarize yourself with it.
5. Execute the tests
```sh
docker-compose exec tests pytest tests.py
```6. Implement the missing tests and make sure that they still pass