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:
Marc Wäckerlin
2015-04-30 14:25:24 +00:00
parent 04c4c54089
commit 332db8b079
8 changed files with 604 additions and 168 deletions

15
docker/Dockerfile Normal file
View 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
View 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}