blob: 7e87069bcf59c9c22ba9f4c5a5a76a78bce1e2f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/bash
# Takes only the docker-machine's IP address, assuming that the
# chrome-docker service runs on port 4444
# FIXME use getopt
TEMP=`getopt -o r: --long docker-ip: -n 'launch_selenium_test.sh' -- "$@"`
eval set -- "$TEMP"
if test $1 != '--docker-ip'
then
echo '--docker-ip argument is mandatory, exiting..'
exit 1
fi
IP=$2
# update wallet
(cd $HOME/wallet-webex && git pull && tsc)
# build crx file
$HOME/deployment/docker/selenium/crxmake.sh $HOME/wallet-webex private.pem
# call python3 selenium script
python3 $HOME/wallet-webex/selenium/test.py --ext $HOME/wallet-webex.crx --remote http://$IP:4444/wd/hub
|