Feature - Bamboo testing

Description

Included with GINT is an extension that providessimple testing or automation of Atlassian Bamboo capabilities and plugins. This extension is also an example of how the GINT framework can be extended to provide integration testing of diverse environments.


Dependencies

  1. Atlassian Command Line Interface (CLI) installed on the client running the test
  2. Bamboo Command Line Interface (CLI) add-on installed on the server.

How does it work?

Testcases use the Bamboo command generator that produces the necessary CLI commands based on relatively simple testcase parameters relating to Bamboo testing. Helper functions provide ways to retrieve Bamboo server information, build keys, and project keys.

Usage

  1. Functions are provided to do some standard things for macro testing
    • getDeleteProjectTestcase and getDeleteProjectsTestcase - normally used for tearDown
    • getProjectName and setProjectName - normally just use the default name constructed from prefix and test name
    • getProjectKey and setProjectKey - normally just use the default key constructed from the space name
    • isServerAvailable and getServerInfo - for getting version and other information about the configured Bamboo server
  2. See dependencies above. GINT requires the bambooCli property be defined and point to the CLI - normally set in the user's or project's gint.properties file.

Example

This example is from the GINT integration test. It includes code to bypass the test if suitable Bamboo configuration is not available allowing allowing the integration test to run error free on any system.

GintForBamboo

  • includeTool << org.swift.tools.GintForBamboo includes the gint framework with special extensions for Bamboo testing.

bambooTest.gant

See bambooTest.gant