---
title: Azure Devops Integration with TestingBot | TestingBot Blog
description: Azure Devops, formerly Team Foundation Server and Visual Studio Team
  System, is an online CI system created by Microsoft.
source_url:
  html: https://testingbot.com/blog/azure-devops-testingbot
  md: https://testingbot.com/blog/azure-devops-testingbot.md
---

# Azure Devops and Selenium

By [Jochen D.](https://testingbot.com/about/jochen-d)2019-12-10

 Share on Facebook 

 Share on Twitter 

 Post on Reddit 

 Share link 

Azure Devops, formerly Team Foundation Server and Visual Studio Team System, is an online CI system created by Microsoft.

TestingBot has added an extension to the [Azure Devops Marketplace](https://marketplace.visualstudio.com/items?itemName=testingbot.testingbot-tasks) that provides integration with TestingBot.

The extension allows you to:

- Set your TestingBot credentials as environment variables to be used with your Automated Tests.
- Start/Stop [TestingBot Tunnel](https://testingbot.com/support/tunnel) for each build.
- See test results, together with a video, screenshots and logs from inside Azure Devops.

## Installation

1. Go to to [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=testingbot.testingbot-tasks) and download the TestingBot extension.

2. Configure the TestingBot credentials to be used with this extension:

- Go to **Project Settings** , under the **Pipelines** section, select **Service connections**.   
 Create a new Service Connection, choose **TestingBot credentials** and enter your username (`TestingBot API Key`) and password (`TestingBot API Secret`).   
 Enter `https://api.testingbot.com/v1/` in the **Server URL**. 

3. In your `azure-pipelines.yml`, add the **TestingBot Configuration** task. Select the credentials you've added before.   
 Optionally, you can choose to enable [TestingBot Tunnel](https://testingbot.com/support/tunnel) with this build.

4. Make sure to set the `build` capability for your tests to be identical to the build identifier generated by Azure Devops. You can get this value through the environment variable `TB_BUILD_NAME`

5. When the build is complete, you will see a **TestingBot** tab. This will show an overview of the tests for this build.

## Example test with Azure Devops

```ruby
#!/usr/bin/env ruby

require 'rubygems'
require 'selenium-webdriver'

caps = Selenium::WebDriver::Remote::Capabilities.new
caps["browserName"] = "firefox"
caps["version"] = "latest"
caps["platform"] = :WINDOWS
caps["name"] = "My First Test"
caps["build"] = ENV["TB_BUILD_NAME"]

client = Selenium::WebDriver::Remote::Http::Default.new
client.timeout = 120

driver = Selenium::WebDriver.for(
:remote,
:url => "https://API_KEY:API_SECRET@hub.testingbot.com/wd/hub",
:desired_capabilities => caps,
:http_client => client)
driver.navigate.to "http://www.google.com/ncr"
element = driver.find_element(:name, 'q')
element.send_keys "TestingBot"
element.submit
puts driver.title
driver.quit
```

For more information, please see the [Azure Devops documentation](https://testingbot.com/support/integrations/ci-cd/azure).

[← Previous post Firefox on Android: Automated Testing with Appium](https://testingbot.com/blog/firefox-on-android-automated-testing) [Next post → TestingBot Plugin for Bamboo](https://testingbot.com/blog/testingbot-plugin-bamboo)

## Sidebar

### TestingBot Cloud Testing

Run automated, manual and visual tests on remote browsers and devices. Sign up for a free trial.

[Free Trial](https://testingbot.com/users/sign_up)

### Latest articles

[![Announcing AI Test Insights](https://testingbot.com/assets/blog/2026/ai-insights.jpg)](https://testingbot.com/blog/ai-test-insights)

#### Announcing AI Test Insights

Use AI Insights to quickly discover why an automated test...

[Read: Announcing AI Test Insights](https://testingbot.com/blog/ai-test-insights)

[![Selenium vs Playwright 2026](https://testingbot.com/assets/blog/2026/selenium-vs-playwright-2026.jpg)](https://testingbot.com/blog/selenium-vs-playwright)

#### Selenium vs Playwright 2026

Comparing Selenium vs Playwright - which is the best test...

[Read: Selenium vs Playwright 2026](https://testingbot.com/blog/selenium-vs-playwright)

[![Maestro Physical Device Testing](https://testingbot.com/assets/blog/2026/maestro-physical.jpg)](https://testingbot.com/blog/maestro-physical-device-testing)

#### Maestro Physical Device Testing

Maestro testing in parallel on physical Android and iOS d...

[Read: Maestro Physical Device Testing](https://testingbot.com/blog/maestro-physical-device-testing)

## Related Articles

[![Selenium vs Playwright 2026](https://testingbot.com/assets/blog/2026/selenium-vs-playwright-2026.jpg)](https://testingbot.com/blog/selenium-vs-playwright "Selenium vs Playwright 2026")

### [Selenium vs Playwright 2026](https://testingbot.com/blog/selenium-vs-playwright)

Comparing Selenium vs Playwright - which is the best test framework for your usecase?

[Read article →](https://testingbot.com/blog/selenium-vs-playwright)

[![Selenium 20th birthday](https://testingbot.com/assets/blog/2024/selenium20.webp)](https://testingbot.com/blog/selenium-20-years "Selenium 20th birthday")

### [Selenium 20th birthday](https://testingbot.com/blog/selenium-20-years)

Celebrate Selenium's 20th birthday. An overview of the years.

[Read article →](https://testingbot.com/blog/selenium-20-years)

[![Playwright Testing on TestingBot](https://testingbot.com/assets/blog/2023/playwright-testing.jpg)](https://testingbot.com/blog/playwright-testing-introduction "Playwright Testing on TestingBot")

### [Playwright Testing on TestingBot](https://testingbot.com/blog/playwright-testing-introduction)

Learn how Playwright can run your automated tests on a variety of browsers, local or remote browsers on TestingBot.

[Read article →](https://testingbot.com/blog/playwright-testing-introduction)

[![tvOS Physical Device Testing](https://testingbot.com/assets/blog/2025/appletv.jpg)](https://testingbot.com/blog/tvos-automated-testing "tvOS Physical Device Testing")

### [tvOS Physical Device Testing](https://testingbot.com/blog/tvos-automated-testing)

Run automated tvOS tests on physical AppleTV devices.

[Read article →](https://testingbot.com/blog/tvos-automated-testing)

## More by Jochen D.

[![Announcing AI Test Insights](https://testingbot.com/assets/blog/2026/ai-insights.jpg)](https://testingbot.com/blog/ai-test-insights "Announcing AI Test Insights")
### [Announcing AI Test Insights](https://testingbot.com/blog/ai-test-insights)

Use AI Insights to quickly discover why an automated test failed.

[![Maestro Physical Device Testing](https://testingbot.com/assets/blog/2026/maestro-physical.jpg)](https://testingbot.com/blog/maestro-physical-device-testing "Maestro Physical Device Testing")
### [Maestro Physical Device Testing](https://testingbot.com/blog/maestro-physical-device-testing)

Maestro testing in parallel on physical Android and iOS devices.

[![tvOS Physical Device Testing](https://testingbot.com/assets/blog/2025/appletv.jpg)](https://testingbot.com/blog/tvos-automated-testing "tvOS Physical Device Testing")
### [tvOS Physical Device Testing](https://testingbot.com/blog/tvos-automated-testing)

Run automated tvOS tests on physical AppleTV devices.

[See all posts by Jochen D. →](https://testingbot.com/about/jochen-d)

## Ready to start testing?
[Start a free trial](https://testingbot.com/users/sign_up)
