More features: have a seperate setup script, where global variable replacements can be placed, new commandline parameters, command window, better recording, chose click type, ...
This commit is contained in:
15
docker/Dockerfile
Normal file
15
docker/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM ubuntu:latest
|
||||
MAINTAINER "Marc Wäckerlin"
|
||||
|
||||
RUN apt-get install -y wget software-properties-common apt-transport-https
|
||||
RUN apt-add-repository https://dev.marc.waeckerlin.org/repository
|
||||
RUN wget -O- https://dev.marc.waeckerlin.org/repository/PublicKey | apt-key add -
|
||||
RUN apt-get update -y
|
||||
RUN apt-get install -y xvfb webtester
|
||||
|
||||
ADD runtests.sh runtests.sh
|
||||
|
||||
VOLUME /tests
|
||||
|
||||
WORKDIR /tests
|
||||
CMD /runtests.sh
|
11
docker/runtests.sh
Executable file
11
docker/runtests.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
if test -z "${WEBRUNNER_SCRIPTS}"; then
|
||||
echo '*** ERROR: set at least -e WEBRUNNER_SCRIPTS="testfile.wt ..."'
|
||||
echo " optional variables: XVFB_SERVER_ARGS, WEBRUNNER_ARGS"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
xvfb-run -a --server-args="${XVFB_SERVER_ARGS:--screen 0 2048x2048x24}" \
|
||||
webrunner ${WEBRUNNER_ARGS:--W 2048 -H 2048 -sx testoutput.xml} \
|
||||
${WEBRUNNER_SCRIPTS}
|
Reference in New Issue
Block a user