ABOUT US

|

SUPPORT

|

BLOGS

 

 

DEVELOPER BLOG

 

 

 

 

 

 

 

Setting up Atlassian Bamboo to run automated Web 2.0 tests

 

Duncan Thomas

 

 

 

 

 

One of our Developers put together the following document on how to get Atlassian’s Bamboo up and automating LiquidTest test suites. Here it is..

Bamboo™ is a Continuous Integration server by Atlassian™. Continuous Integration is a development practice where software developers integrate their work frequently.  Each integration is then verified by an automated build to detect errors as quickly as possible.

LiquidTest™ is an agile Web Application Testing tool with an integrated Record and Replay engine powered by Firefox™ and Internet Explorer™. LiquidTest supports industry standard languages (Java™, C#, Visual Basic .NET and Groovy) and integrates with IDE’s and Continuous Integration servers.

This document will walk you through downloading and configuring Bamboo and LiquidTest so that Bamboo will execute a LiquidTest build and verify recorded tests automatically.

I have cut out the setup of a Linux box or Subversion repository, so the following assumes you already have a working Subversion repository containing an example LiquidTest Project (Use the Hudson setup blog post as a starter guide available here).

Bamboo is available for Windows/OSX/*nix, and can be downloaded from Atlassian’s website.

Installing Bamboo

- – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - -
cd /opt
- – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - -

Get latest stable version of bamboo, as of this writing it’s 2.5.1

- – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - -
wget

http://downloads.atlassian.com/software/bamboo/downloads/atlassian-bamboo-2.5.1-standalone.tar.gz

- – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - -

Extract the distribution files

- – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – -
tar zxf atlassian-bamboo-2.5.1-standalone.tar.gz
cd Bamboo
- – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – -

Edit the bamboo-init.properties file and set the bamboo.home variable to be /opt/Bamboo

- – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – -
sudo nano webapp/WEB-INF/classes/bamboo-init.properties
- – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – -

Now launch the server via the shell script:

- – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – -
sudo ./bamboo.sh start
- – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – - – -

Now you can browse to http://<bamboo server ip>:8085/ (if you need to discover the IP, just type ifconfig)
You should be prompted for a license key:

Atlassian Bamboo configuration

Follow the “Contact Us” link which will take you to an Atlassian site to register for a trial key.

Atlassian Bamboo evaluation

You will then be able to copy your trial key and paste it back into the Bamboo welcome screen.

Atlassian Bamboo welcome

Hit Express Installation…

You will be prompted to create an administration account;
Atlassian Bamboo root user

Click finish…

Now we need to create a plan.

Create a new plan

Atlassian Bamboo new plan..
Project Name: LiquidTestIntegrationExample
Project Key: LTIE
Build Plan Name: Default
Build Plan Key: DEF

Hit next.

Specify Source Repository

In the Repository type drop-down, select Subversion.

The URL should be http://<subversion server ip>/svn/LiquidTestProject/

Set the Build Strategy to “Polling for changes.”
Set the polling frequency to be 180 seconds.
Hit next.
Atlassian Bamboo specify repository

Choose a Builder

Now we need to configure a builder.
Hit add new builder.

Add New Builder

By default we won’t have any version of ant installed, so we need to configure it with the version we installed earlier.

Atlassian Bamboo add new builder

Hit add.

Now we have some ant properties we can set:-

Build File should be “build.xml”
Target should be “runtests”
Build JDK: Just use the default JDK it detects.

In “Where should Bamboo look for the test result files”
check “The build will produce test results”
with a pattern of: */build/log/.xml

Hit save.

Bamboo should now build the project and execute the tests.

Congratulations, you can now commit changes to the Subversion repository, and Bamboo will detect new revisions and automatically build and run your LiquidTest tests.
Atlassian Bamboo integration success

To see more LiquidTest integrations visit our Itegrations home..

 

 

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
  • Reddit
  • DZone
  • TwitThis
  • email
 Comments (0)

 

 


 

 

No comments yet

Add Comment..

 

 

About this blog..

 

This is an informal place for the team at JadeLiquid to discuss software, the rotation of the earth and other things usually discussed in the JadeLiquid corridors.

 

 

 

Subscribe: By Feed  By Email

 

 

 

 

 

Categories

 

 

JadeLiquid

LiquidTest

 

 

Software Testing

 

 

WebRenderer

 

 

 

 

Recent Posts

 

 

Selenium 2 / WebDriver support coming soon to LiquidTest..
Running Selenium Tests from the Command Line
LiquidTest 3.0 with Selenium support ships!
Setting up Atlassian Bamboo to run automated Web 2.0 tests
888 installer builds and 7469 code checkins later LiquidTest 2.0 ships!

 

 

 

 

 

Popular Posts

 

 

Testing complex Ajax content
Running Selenium Tests from the Command Line
Setting up LiquidTest with Subversion and Hudson (Continuous Integration) - part 1
Creating Data-Driven Functional Tests with LiquidTest
One tool to rule them all - Reducing team division
Setting up LiquidTest with Subversion and Hudson (Continuous Integration) part 2
Is manual testing crippling your development project?
Eclipse and LiquidTest UI Introduction
Protecting investment: Tests that do not break with page changes
Testing Dynamic Elements – Having a Plan B

 

 

 

 

 

Archives

 

 

May 2011 (2) April 2011 (1) November 2010 (2) March 2010 (1) February 2010 (1) November 2009 (1) October 2009 (1) September 2009 (2) August 2009 (1) July 2009 (1) June 2009 (1) April 2009 (1) March 2009 (1)

 

 

 

 

 
   News / Events

 

 > LiquidTest EOL Announcement - Info
 > LiquidTest Release 3.0! - Available
 > Visual Studio Plugin Released! - Release
 > Cruise Control .NET Integration - Info
 > Automate your Dev/Test Process - Webinar
 > Is manual testing crippling your project? - Blog
 > Testing complex Ajax content - Blog
 
 
   Recently Added Content  
 
 > Run LiquidTest's on Selenium RC/Server - Info
 > Setting up LiquidTest with Maven - Blog
 > Officially Supported Ajax Frameworks - Info
 > Atlassian Bamboo Integration - Tech
 > Setting up LiquidTest with SVN and Hudson - Blog
 > Creating Data-Driven Functional Tests - Blog
 > Reducing Test Maintenance - Blog
 
 
  Copyright JadeLiquid Software - 2014