Skip to content

Atlassian Bamboo

Let’s configure Bamboo CI server to work for CodeceptJS framework:

  1. Create a plan in Bamboo for Testomat.io to run in Testomat.io.

Testomatio - Bamboo

  1. Note the ‘Plan key’. In this case its ‘TES’.
  2. Configure the job to install node dependencies.

Testomatio - Bamboo

  1. Add the script to run CodeceptJS tests:
TESTOMATIO_RUN=${bamboo.run} npx codeceptjs run --grep "${bamboo.grep}"

Following environment variables must be set:

  • Add TESTOMATIO environment variable with API key of Testomat.io project.
  • If you are running a self-hosted Testomat.io instance, add TESTOMATIO_URL variable to specify a host to which reports will be sent.

Testomatio - Bamboo

  1. Set an input variable. Open Plan configuration:

Testomatio - Bamboo

add grep and run variables with an empty string as a default value

Testomatio - Bamboo

Now, as Bamboo is configured, you need to configure Bamboo integration at Testomat.io:

  1. Go to ‘Settings’.
  2. Select ‘Continuous Integration’.
  3. Click ‘Connect to CI’.

Testomatio - CI

  1. Select ‘Atlassian Bamboo’ and enter the details of Bamboo server on ‘Connection’ tab:
  • Bamboo Hostname - URL of Bamboo host.
  • API Token - to generate API token check this.
  • Project Key - Chars ID, in our example its EX.
  • Plan Key - Chars ID, in our example its TES.

A project and plan keys can be found from URL:

Testomatio - Bamboo

Testomatio - Bamboo

  1. Enable run option on ‘Input Variables’ tab. This allows CI to send a report to a specific Run inside Testomat.io.
  2. Click ‘Save’ button and check the connection.

Testomatio - Bamboo

7a. Open ‘Runs’ page then select Run Automated Tests in CI option in extra menu.

Testomatio - CI Run

8a. Select ‘Bamboo’ profile in a list. Optionally, select a Test Plan or create a new one.

Testomatio - Bamboo

OR

7b. On ‘Tests’ page select any automated suite or test case -> click ‘Extra menu’ button -> select ‘Run Tests’ option -> open ‘Run in CI’ tab.

8b. Select ‘Bamboo’ profile in a list.

Testomatio - Bamboo

  1. Launch a Run and wait for the results.

Testomatio - Bamboo