You need to have a Selenium Grid running, to be able to execute the Selenium test.
mvn clean test -Dgrid.server.url=http://192.168.99.100:4444/wd/hub
- Create docker-compose.yml file with the following content.
- Start containers using 'docker-compose up'
For more details, see https://sandro-keil.de/blog/2015/03/23/selenium-grid-in-minutes-with-docker/
selhub:
image: selenium/hub
ports:
- 4444:4444
nodeff:
image: selenium/node-firefox-debug
ports:
- 5900
links:
- selhub:hub
nodechrome:
image: selenium/node-chrome-debug
ports:
- 5900
links:
- selhub:hub
#!/bin/bash
IN=`echo $1 | base64`
SUFFIX="::::MAGIC::::"
MASTER_KEY=`cat /var/jenkins_home/secrets/master.key`
HASHED_MASTER_KEY=`echo -n $MASTER_KEY | sha256sum | cut -d " " -f 1`
HASHED_MASTER_KEY_16=${HASHED_MASTER_KEY:0:16}
openssl enc -d -aes-128-ecb -in /var/jenkins_home/secrets/hudson.util.Secret -K $HASHED_MASTER_KEY -out /tmp/hudson.key
HUDSON_KEY=`cat /tmp/hudson.key`
HUDSON_KEY_TRIMMED=${HUDSON_KEY:0:-16}
HUDSON_KEY_16=${HUDSON_KEY_TRIMMED:0:16}
echo $HUDSON_KEY_16 > /tmp/hudson16.key
echo "$IN$SUFFIX" > /tmp/jenkins.password
openssl enc -aes-128-ecb -in /tmp/hudson16.key -out /tmp/jenkins.password.enc -K $IN