* the subject image is now being rebuilt less frequently so note that in the README.md * [skip ci]
2.3 KiB
TSO-SW
this repo holds the sawce files for the TSO semestral work
hierarchy
preferred workflow
- using a container image with
robotframework
,selenium
,chromium
andchromedriver
preinstalled, such asalpine-rf
orarchlinux-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 on a daily 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
mermaid.js
the diagram under hierarchy was generated using this mermaid.js
code