---
title: TeamCity CI Plugin - Automated Selenium testing with TeamCity
description: Embed TestingBot videos, screenshots and logs from Selenium and Appium
  into TeamCity
source_url:
  html: https://testingbot.com/support/integrations/ci-cd/teamcity
  md: https://testingbot.com/support/integrations/ci-cd/teamcity/index.md
---
# TeamCity Automated Testing

[TeamCity](https://www.jetbrains.com/teamcity/) is a Java-based build management/CI system created by Jetbrains.

## TeamCity Plugin

We've created a plugin which offers integration with our TestingBot.com services.

Below is a list of features this plugin offers:

- Add a tab where we show the lists of tests for the current build. The overview shows a list of tests with their **passed/failed state** , together with the **browser they ran on**.
- View **logs** (Selenium, Chrome, Firefox, Safari logs) and a **recorded video** together with **screenshots** of every test, straight from inside TeamCity.
- Option to start/stop a [TestingBot Tunnel](https://testingbot.com/support/tunnel) automatically before and after every build run.
- Predefined environment variables with your TestingBot `key` and `secret`.

## 1. Install the Plugin

Go to **Server Administration** and click **Plugins List**

 ![TeamCity integration](https://testingbot.com/assets/support/teamcity/1-74db237d6656583ac4c1636cd3b186221390986e5c0f62820ab68d962c8fa50d.png)
## 2. Upload Plugin

Click on **upload plugin zip** and upload our TestingBot plugin.

Or download the plugin from the [TeamCity plugin page](https://plugins.jetbrains.com/plugin/10283-testingbot/).

 ![TeamCity integration](https://testingbot.com/assets/support/teamcity/2-233fe680aeede14e5c111bd2a4e69a51015b6a26ff9bb718ae80e6467ceba181.png)
## 3. Restart TeamCity

Restart TeamCity to see the TestingBot plugin in the plugin list.

## 4. Configuring a Project

Now that the plugin is installed, we can use the TestingBot plugin in a TeamCity project.

1. Click on **Build Features**
2. Click **Add build feature** and select **TestingBot** from the list. 

 ![TeamCity integration](https://testingbot.com/assets/support/teamcity/3-0295aa78a57aa5f0fdd0f785bede96f85e20ee56433f92b26a3e794cfa4b6b14.png)
## 5. Credentials

Add your TestingBot **Key** and **Secret** , which you can obtain from the member dashboard.

 ![TeamCity integration](https://testingbot.com/assets/support/teamcity/4-02af8afa78638a7d22f378c873ae3c52f7914574ca3bc15a6c314da54cfd12aa.png)
## 6. Test Overview in TestingBot Tab

You can now see an overview of your Selenium tests in the **TestingBot tab**.

 ![TeamCity integration](https://testingbot.com/assets/support/teamcity/7-bce3812eec0264d98a1262bca33cdc40d72a9870d51ef5b66e7ccb27f98dddd3.png)
## 7. Test Details

Click a test to see a **video recording** , **screenshots** and **logs** for the test.

 ![TeamCity integration](https://testingbot.com/assets/support/teamcity/8-9b9cef361d30b29b05fe23985a96cf93ab46ef1450e022788ea4a62a22f605b2.png)
## 8. Configuring Tests

The plugin will automatically set the following **Environment Variables** , which you can use in your tests:

- `TB_KEY` : Your TestingBot key, available in our member area.
- `TB_SECRET` : Your TestingBot secret, available in our member area.

**Important!**  
 It is important to output `TestingBotSessionID={webdriver-session-id}` for every test to stdout.   
 The plugin will parse the output looking for these ids. An example on how to do this with Java:

    System.out.println("TestingBotSessionID=" + (((RemoteWebDriver) driver).getSessionId()).toString());

### Looking for more help?

Have questions or need more information? Reach out via email or Slack.

[Email us](https://testingbot.com/contact/new)[Slack Join our Slack](https://join.slack.com/t/testingb0t/shared_invite/zt-3bcw9xch-jk19~6XPs_xBrsAgAedkCw)
