TiledViz
Toggle main menu visibility
Loading...
Searching...
No Matches
selenium_tests.sh
1
#!/bin/sh
2
DATE=$(date +%F_%H-%M)
3
tmpDIR=/tmp/tests_Selenium_${DATE}
4
mkdir ${tmpDIR}
5
initPWD=$(pwd)
6
7
docker run -t -v /dev/shm:/dev/shm -v ${tmpDIR}:/tmp/tests:rw -v $(pwd)/TVWeb/Selenium:/usr/local/Selenium --add-host="flaskdock:$IPFlask" --name selenium --rm joyzoursky/python-chromedriver:3.7-alpine3.8-selenium python3 /usr/local/Selenium/test_script.py > ${tmpDIR}/test_script.log 2>&1
8
RET=$?
9
cat ${tmpDIR}/test_script.log
10
if [ $RET -gt 0 ]; then
11
echo "Error for unit tests with Selenium." $RET
12
ls -la /tmp
13
cd ${tmpDIR}
14
ls -laR
15
find . -name "*.png" -exec bash -c 'echo ""; echo {}; echo ""; base64 -w 0 {}' \;
16
cd $initPWD
17
#rm -rf /tmp/tests/*
18
#exit $RET
19
fi
20
21
docker run -t -v /dev/shm:/dev/shm -v ${tmpDIR}:/tmp/tests:rw -v $(pwd)/TVWeb/Selenium:/usr/local/Selenium --add-host="flaskdock:$IPFlask" --name selenium --rm joyzoursky/python-chromedriver:3.7-alpine3.8-selenium python3 /usr/local/Selenium/test_gui.py > ${tmpDIR}/test_gui.log
22
RET=$?
23
cat ${tmpDIR}/test_gui.log
24
if [ $RET -gt 0 ]; then
25
echo "Error for GRID tests with Selenium." $RET
26
ls -la /tmp
27
cd ${tmpDIR}
28
ls -laR
29
find . -name "*.png" -exec bash -c 'echo ""; echo {}; echo ""; base64 -w 0 {}' \;
30
cd $initPWD
31
#exit $RET
32
fi
33
ls -laR ${tmpDIR}
34
35
#docker run -t -v /dev/shm:/dev/shm -v ${tmpDIR}:/tmp/tests:rw -v $(pwd)/TVWeb/Selenium:/usr/local/Selenium --add-host="flaskdock:$IPFlask" --name selenium --rm joyzoursky/python-chromedriver:3.7-alpine3.8-selenium ls -la /usr/local/Selenium
36
TVWeb
Selenium
selenium_tests.sh
Documentation for
TiledViz
$tiledvizversion