There is a great demand here on Answers for a comprehensive tutorial on how to run selenium and webdriver tests on studio bamboo instances.
Thanks a lot
Atlassian advises the following approach:
Follow the instructions for setting up selenium but use the following script as part of customise-extras.sh instead :
#!/bin/sh centosMajorVersion=5 centosVersion=${centosMajorVersion} cat >/etc/yum.repos.d/centos-$centosVersion.repo <<EOF [centos-base] name=CentOS - Base mirrorlist=http://mirrorlist.centos.org/?release=${centosVersion}&arch=\$basearch&repo=os gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-${centosMajorVersion} enabled=0 [centos-update] name=CentOS - Updates mirrorlist=http://mirrorlist.centos.org/?release=${centosVersion}&arch=\$basearch&repo=updates gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-${centosMajorVersion} enabled=0 EOF yum -y --enablerepo=centos-base install firefox yum -y install xorg-x11-server-Xvfb xterm xorg-x11-server-utils xorg-x11-fonts-ISO8859-1-75dpi xorg-x11-fonts-Type1 /usr/bin/killall Xvfb #Start virtual screen Xvfb :100 -ac -screen 0 1024x768x24 & echo "export DISPLAY=:100.0" >> /home/bamboo/.bashrc source /home/bamboo/.bashrc
Check out the ec2 selenium setup instructions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
At the moment the bamboo studio standard AMI cannot run selenium/webdriver tests because firefox does not start up and the test times out. see https://jira.atlassian.com/browse/BAM-11584
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.