Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Atlassian - Please write a Selenium on Elastic Bamboo Tutorial!

Ulrich Kuhnhardt
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 19, 2012

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

3 answers

1 accepted

0 votes
Answer accepted
Ulrich Kuhnhardt
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 26, 2012

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

0 votes
Ulrich Kuhnhardt
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 31, 2012
0 votes
Ulrich Kuhnhardt
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 24, 2012

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events