This repository has been archived on 2022-05-04. You can view files and clone it, but cannot push or open issues or pull requests.
tso-sw/README.md
surtur 09dd9bec9c
All checks were successful
continuous-integration/drone/push Build is passing
feat: added LICENSE file
2020-06-23 02:34:23 +02:00

2.0 KiB

TSO-SW

Build Status

this repo holds the sawce files for the TSO semestral work

preferred workflow

  • using a container image with robotframework, selenium, chromium and chromedriver preinstalled, such as alpine-rf or archlinux-rf

Note: you may need to run some of the following commands as root. You can as well learn how not to here.

get a container and run it

fetch an image from a central container repository (by default it's DockerHub) using

docker pull immawanderer/alpine-rf:latest

the alpine-rf image is being rebuilt on an hourly basis, so I recommend updating frequently.

run the container in interactive mode, mounting user's $PWD into container's /testing folder, removing the container after exiting (so that it doesn't take up space) while preserving the work done (saved on the shared volume)

docker run --rm -it -v $PWD:/testing immawanderer/alpine-rf:latest

run robot tests

as the WORKDIR of the image used in this example is set to the /testing folder, all that's left is to prepare a results directory inside there

❄ root@alpine-rf /testing
➜ mkdir -p /testing/results

then simply run the test(s)

❄ root@alpine-rf /testing
➜ robot -T -d results test00.robot

or (when using the alpine-rf image) run all of the above as a designated test user rf (uid=1000) instead of root

❄ root@alpine-rf /testing
➜ su rf
/testing $ mkdir -pv results
/testing $ robot -T -d results test00.robot