Continuous Integration (CI) and Testing - Configuring Bamboo, Hudson, and TestMaker



Similar documents
<Insert Picture Here> Introducing Hudson. Winston Prakash. Click to edit Master subtitle style

Monitoring Oracle Enterprise Performance Management System Release Deployments from Oracle Enterprise Manager 12c

Continuous Integration

Canto Integration Platform (CIP)

Configure Single Sign on Between Domino and WPS

IBM WebSphere Application Server V8.5 lab Basic Liberty profile administration using the job manager

Secure Messaging Server Console... 2

CORISECIO. Quick Installation Guide Open XML Gateway

SOA Software API Gateway Appliance 7.1.x Administration Guide

Single Node Hadoop Cluster Setup

AdWhirl Open Source Server Setup Instructions

MATLAB on EC2 Instructions Guide

Intelligent Power Protector User manual extension for Microsoft Virtual architectures: Hyper-V 6.0 Manager Hyper-V Server (R1&R2)

Dell UPS Local Node Manager USER'S GUIDE EXTENSION FOR MICROSOFT VIRTUAL ARCHITECTURES Dellups.com

Sonatype CLM Enforcement Points - Continuous Integration (CI) Sonatype CLM Enforcement Points - Continuous Integration (CI)

Using Microsoft Windows Authentication for Microsoft SQL Server Connections in Data Archive

USER CONFERENCE 2011 SAN FRANCISCO APRIL Running MarkLogic in the Cloud DEVELOPER LOUNGE LAB

NSi Mobile Installation Guide. Version 6.2

Web Testing, Java Testing, Server Monitoring. AppPerfect Installation Guide

INSTALLING KAAZING WEBSOCKET GATEWAY - HTML5 EDITION ON AN AMAZON EC2 CLOUD SERVER

Magento Search Extension TECHNICAL DOCUMENTATION

Source Code Management for Continuous Integration and Deployment. Version 1.0 DO NOT DISTRIBUTE

Creating an ESS instance on the Amazon Cloud

Oracle Fusion Middleware. 1 Oracle Team Productivity Center Server System Requirements. 2 Installing the Oracle Team Productivity Center Server

Tutorial: Using HortonWorks Sandbox 2.3 on Amazon Web Services

Jenkins: The Definitive Guide

TIBCO Spotfire Statistics Services Installation and Administration Guide. Software Release 5.0 November 2012

Bull Service & Solutions

Hudson Continous Integration Server. Stefan Saasen,

Spectrum Technology Platform. Version 9.0. Administration Guide

ZeroTurnaround License Server User Manual 1.4.0

Zend Server Amazon AMI Quick Start Guide

Interlink Networks Secure.XS and Cisco Wireless Deployment Guide

Continuous Delivery on AWS. Version 1.0 DO NOT DISTRIBUTE

IKAN ALM Architecture. Closing the Gap Enterprise-wide Application Lifecycle Management

Hudson configuration manual

Background on Elastic Compute Cloud (EC2) AMI s to choose from including servers hosted on different Linux distros

AklaBox. The Ultimate Document Platform for your Cloud Infrastructure. Installation Guideline

JobScheduler Installation by Copying

Using a login script for deployment of Kaspersky Network Agent to Mac OS X clients

Tcat Server User s Guide. Version 6 R2 December 2009

INUVIKA OVD INSTALLING INUVIKA OVD ON RHEL 6

StreamServe Job Gateway

TIBCO Spotfire Statistics Services Installation and Administration

Propalms TSE Quickstart Guide

CA Spectrum and CA Service Desk

Central Administration QuickStart Guide

Application Discovery Manager User s Guide vcenter Application Discovery Manager 6.2.1

Profiling and Testing with Test and Performance Tools Platform (TPTP)

2X Cloud Portal v10.5

JMETER - MONITOR TEST PLAN

OpenTOSCA Release v1.1. Contact: Documentation Version: March 11, 2014 Current version:

Administration Guide. . All right reserved. For more information about Specops Gpupdate and other Specops products, visit

IBM TRIRIGA Anywhere Version 10 Release 4. Installing a development environment

Universal Management Service 2015

Application Servers - BEA WebLogic. Installing the Application Server

Revolution R Enterprise DeployR 7.1 Installation Guide for Windows

i2b2 Installation Guide

TIBCO Spotfire Statistics Services Installation and Administration Guide

TIBCO Administrator User s Guide. Software Release March 2012

System Administration Training Guide. S100 Installation and Site Management

Specops Command. Installation Guide

CONNECTING TO DEPARTMENT OF COMPUTER SCIENCE SERVERS BOTH FROM ON AND OFF CAMPUS USING TUNNELING, PuTTY, AND VNC Client Utilities

ADFS 2.0 Application Director Blueprint Deployment Guide

VERSION 9.02 INSTALLATION GUIDE.

Installing and Configuring DB2 10, WebSphere Application Server v8 & Maximo Asset Management

CSE 70: Software Development Pipeline Version Control with Subversion, Continuous Integration with Bamboo, Issue Tracking with Jira

Continuous Integration in the Cloud with Hudson

Extending Remote Desktop for Large Installations. Distributed Package Installs

Bitrix Site Manager ASP.NET. Installation Guide

Step-By-Step Guide to Deploying Lync Server 2010 Enterprise Edition

HP Service Manager. Collaboration Guide. For the Supported Windows and UNIX operating systems. Software Version: 9.31

Online Backup Guide for the Amazon Cloud: How to Setup your Online Backup Service using Vembu StoreGrid Backup Virtual Appliance on the Amazon Cloud

Beginners guide to continuous integration. Gilles QUERRET Riverside Software

WEBAPP PATTERN FOR APACHE TOMCAT - USER GUIDE

TIBCO Spotfire Statistics Services Installation and Administration. Release 5.5 May 2013

Deploying Intellicus Portal on IBM WebSphere

StreamServe Persuasion SP4

An Oracle White Paper September Oracle WebLogic Server 12c on Microsoft Windows Azure

Cloudera Manager Training: Hands-On Exercises

TechComplete Test Productivity Pack (TPP) Backup Process and Data Restoration


The SyncBack Management System

StreamServe Persuasion SP5 Control Center

Installation Guide. . All right reserved. For more information about Specops Deploy and other Specops products, visit

Beginning with SubclipseSVN

Oracle Enterprise Manager

Project (Group) Management Installation Guide (Linux) Version 1.3. Copyright 2007 MGH

FileMaker Server 14. FileMaker Server Help

Click Start > Control Panel > System icon to open System Properties dialog box. Click Advanced > Environment Variables.

24x7 Scheduler Multi-platform Edition 5.2

Oracle WebLogic Server

Install BA Server with Your Own BA Repository

SETUP SSL IN SHAREPOINT 2013 (USING SELF-SIGNED CERTIFICATE)

Bitrix Site Manager. VMBitrix Virtual Machine. Quick Start And Usage Guide

Compiere ERP & CRM Installation Instructions Windows System - EnterpriseDB

How To - Implement Single Sign On Authentication with Active Directory

ACTIVE DIRECTORY DEPLOYMENT

PC Monitor Enterprise Server. Setup Guide

Network Shutdown Module V3 Extension of the User Manual for IBM BladeCenter architecture

Transcription:

Continuous Integration and Testing Configuring Bamboo, Hudson, and TestMaker Operate PushToTest TestMaker tests from Continuous Integration environments. PushToTest checks TestMaker compatibility with Hudson and Bamboo. Product Version Details Setup Build to run tests in Hudson (Windows - localhost) Setup Build to run tests in Hudson (Linux - localhost) Setup Build to run tests in Bamboo (Windows - localhost) Setup Build to run tests in Bamboo (Linux - localhost) Setup Build to run tests in Bamboo (Atlassian/JIRA Hosted) Configure/execute ANT based targets (Atlassian/JIRA Hosted) 1. Product Version Details TestMaker Version : 5.5 RC3 Bamboo Version : 2.6.2 (Standalone) Hudson Version : 1.374 Java Verison : 1.6 (1.6.18 or later) Tomcat Verison : 6.0.26 (To run Hudson) 2. Setup Build to run tests in Hudson (Windows - localhost) Setup a build in Hudson Pre-requisite to execute the build Execute the build in Hudson Configure the build/test output to detect failures in Junit output Setup a build in Hudson: Hudson comes with a web archive file (hudson.war). You need a web server (tomcat/jboss/jetty) to run Hudson. Tomcat Console (runs in 8090 http port) Page 1 of 52

Hudson Home URL: http://localhost:8090/hudson/ Create New Job link to create a new Job Page 2 of 52

Click OK to proceed Page 3 of 52

You can select Source Code Management option to checkout the code from (CVS/Subversion). All the source/tests will checkout in the build workspace directory. Select Execute Windows build Command from the Build Type the following command %TESTMAKER_HOME%\TestMaker.cmd -t example_agents\ajaxriaseleniumtest_tutorial\calendar_functional_test.scenario -log-junit testreport\junitreport.xml Note: The scenario file path (example_agents\ajaxriaseleniumtest_tutorial\calendar_functional_test.scenario) and reports path (testreport\junitreport.xml ) is relative to your build workspace. Click Save. Page 4 of 52

Pre-requisite to execute the build: Create Environment variables: Create the below two environment variables in Hudson Console (Hudson -> Manage Hudson - > Configure Your System -> Global Properties) as shown below: JAVA_HOME TESTMAKER_HOME Page 5 of 52

Or you can create these two system environment variables (My computer -> Advanced -> Environment Variables) Page 6 of 52

Start TestNode: If required, start the Testmaker testnode. The current example is using the local testnode which runs in 8080 http port. Testnode console Page 7 of 52

Execute the build in Hudson: Page 8 of 52

Click on Build Now link available in the left side to start the build Page 9 of 52

Due to some reason, the first build failed, so I ran the build for the second time. You can watch the logs by clicking the build link Page 10 of 52

Click on the Console output Page 11 of 52

In the meantime, you can watch the testnode logs: Page 12 of 52

Configure the build/test output to detect failures in Junit output: Check the Publish JUnit test result report option from the Post-build Actions Note: You may not have the report file for the first time build. So, do not select this option until unless you have the report file (junitreport.xml) available in the specified directory. Click on the Test Result Page 13 of 52

Page 14 of 52

3. Setup Build to run tests in Hudson (Linux - localhost) Setup a build in Hudson Pre-requisite to execute the build Page 15 of 52

Execute the build in Hudson Configure the build/test output to detect failures in Junit output Setup a build in Hudson: Same as windows - Please refer windows section You can select Source Code Management option to checkout the code from (CVS/Subversion). All the source/tests will checkout in the build workspace directory. Select Execute Shell from the Build Page 16 of 52

Type the following command $TESTMAKER_HOME/TestMaker.sh -t example_agents/ajaxriaseleniumtest_tutorial/calendar_functional_test.scenario -log-junit testreport/junitreport.xml Note: The scenario file path (example_agents/ajaxriaseleniumtest_tutorial/calendar_functional_test.scenario) and reports path (testreport/junitreport.xml ) is relative to your build workspace. Make sure the /, $, TestMaker.sh Click Save. Pre-requisite to execute the build: Page 17 of 52

Create Environment variables: --Same as Windows But only the Path is going to change. It has to be valid unix path. Start the TestNode: --Same as Windows Execute the build in Hudson: --Same as Windows Page 18 of 52

Configure the build/test output to detect failures in Junit output: --Same as Windows 4. Setup Build to run tests in Bamboo (Windows - localhost) Setup a build in Bamboo Pre-requisite to execute the build Execute the build in Bamboo Configure the build/test output to detect failures in Junit output Setup build in Bamboo Start Bamboo Server Page 19 of 52

Launch Bamboo console in browser and login with your admin user. (By default it runs in 8085 port. So the URL would be http://localhost:8085/ ) Page 20 of 52

Click on Create Plan link (key shortcut: Alt-Shift-C) to start creating a new plan: Start filling all the details: Page 21 of 52

Source Repository Details (It supports CVS, Subversion & Perforce. But JIRA hosted bamboo only supports Subversion) Select the Ant / Command Builder type Ant Builder type Page 22 of 52

If Command Builder type is not available, click on the Add New Builder to add one. Either we can provide full path of the command or append the command path in PATH System environment variable and call the command only. Page 23 of 52

Command Builder type Requirements: Page 24 of 52

Artifacts: (No artifacts setup for this) Notification: (No notification setup for this) Page 25 of 52

Post Action: (No Post Actions setup for this) Page 26 of 52

Select the appropriate permissions: Click Save to create the plan, which will create the first build immediately. Page 27 of 52

Pre-requisite to execute the build: Create Environment variables: Create these two system environment variables (My computer -> Advanced -> Environment Variables) JAVA_HOME TESTMAKER_HOME Create one Global Variable in Bamboo administrator Console (Home -> Administration -> Global Variable) Page 28 of 52

Note : Why we need to create the TESTMAKER_HOME variable in two places? Ans: As we can not access the system enviorment variables inside bamboo. To execute the TestMaker.cmd command, we need to tell Bamboo where to lookup the command. This we can achive by setting in PATH varibale also as PATH=%PATH%;%TESTMAKER_HOME% Start TestNode: If required, start the Testmaker testnode. The current example is using the local testnode which runs in 8080 http port. Testnode console Page 29 of 52

Execute the Build plan in Bamboo When you save the build for first time, it automatically triggers the build. Page 30 of 52

Or select the build and click Run Build under Plan Actions Monitor the result in the running log. Configure the build/test output to detect failures in Junit output Page 31 of 52

Upon completion of build, you can see your report in the following section: Click Test Page 32 of 52

5. Setup Build to run tests in Bamboo (Linux - localhost) Setup a build in Bamboo Pre-requisite to execute the build Execute the build in Bamboo Configure the build/test output to detect failures in Junit output Setup build in Bamboo Start Bamboo Server Launch Bamboo console in browser and login with your admin user. -- Same as Windows Start filling all the details: Make sure the path is linux based. Select the Script Builder type Script Builder type Page 33 of 52

For default installation click next-> next and click Save/Finish to create the plan, which will create the first build immediately. Pre-requisite to execute the build: Create Environment variables: Create these two system environment variables in userʼs.profile file JAVA_HOME TESTMAKER_HOME Command to modify.profile file (if you do not have.profile file, please create a file with the name.profile) as shown below: vi ~/.profile # add the following lines at the end of the file JAVA_HOME=<<JAVA_INSTALL_PATH>> TESTMAKER_HOME=<<Testmaker_INSTALL_PATH>> export JAVA_HOME TESTMAKER_HOME Page 34 of 52

Create one Global Variable in Bamboo administrator Console (Home -> Administration -> Global Variable) Note : Why we need to create the TESTMAKER_HOME variable in two places? Ans: As we can not access the system enviorment variables inside bamboo. To execute the TestMaker.cmd command, we need to tell Bamboo where to lookup the command. Start TestNode: -- Same as Windows Execute the Build plan in Bamboo -- Same as Windows Configure the build/test output to detect failures in Junit output -- Same as Windows 6. Setup Build to run tests in Bamboo (Atlassian/JIRA Hosted) Login to JIRA System (http://pushtotest.jira.com/secure/dashboard.jspa) Page 35 of 52

Click on the It will list down all the projects with their build plans. Page 36 of 52

To create a New Build plan click Select project name, Build Plan Name and prove a unique Build plan Key. Click Next to enter source repository details: Page 37 of 52

Page 38 of 52

Page 39 of 52

Page 40 of 52

Click Save to create the plan. 7. Configure/execute ANT based targets (Atlassian/JIRA Hosted) The community version of TestMaker can have 3 different versions according to the OS. Click on any of these build link will take you to the build plan screen. Page 41 of 52

To run a new build click Run Build from Plan Actions. To Edit the plan, click Edit Plan option. Note: The Bamboo remote agent is configured in Amazon EC2. So, whenever we run a build, it checks for the agent. If not started, click on the following Run Elasitc Instance as shown below. We can start the elastic instance using other mechanism as well. Page 42 of 52

Click on State Elastic Instance link Select # of instances you want to run and then click Submit Page 43 of 52

The remote instance and then the remote bamboo agent will start automatically and the queued Build will start automatically. Page 44 of 52

Click the Build link will show you the live logs of your build. Page 45 of 52

Page 46 of 52

If the build successful, you can see the following screen. If it failed, you will get the following screen Page 47 of 52

Monitor the changes: Click on diffs will give you a clear indication of change: Page 48 of 52

Do not forget to shutdown the elastic instance which was started manually by us to run this build. Goto (Administration -> Builds -> Elastic Bamboo -> Instances) and click Shutdown or Shutdown all instances link. (http://pushtotest.jira.com/builds/admin/agent/configureagents!default.action) Click Confirm to shutdown. Page 49 of 52

Shutdown will take 30-40 secs. So, make sure it shutdown properly. ii. To build enterprise TestMaker product (Windows/Mac/Linux) Select Project Enterprise TestMaker and select the build as shown below: Repeat the same steps as described to build the Community Product. iii. To build standalone PTTMonitor (Windows (32 and 64 bit)/mac/linux) - TBD - Repeat the same steps as described to build the Community Product. iv. To build standalone Testnode (Windows/Mac/Linux) - TBD - Repeat the same steps as described for to build the Community Product. v. To Run Tests (Example Agents) Page 50 of 52

Repeat the same steps as described for to build the Community Product. vi. To deploy installers in Amazon S3 - TBD - vii. To Compiling/building EC2 AMI file - TBD - viii. Start cloud testnode Goto (Administration -> Builds -> Elastic Bamboo -> Instances) and click Start New Elastic Instances (http://pushtotest.jira.com/builds/admin/elastic/manageelasticinstances.action) Page 51 of 52

Additional documentation, product downloads and updates are at www.pushtotest.com. While the PushToTest testmaker software is distributed under an open-source license, the documenation remains (c) 2011 PushToTest. All rights reserved. PushToTest is a trademark of the PushToTest company. Page 52 of 52