< Back to Blog Overview

Azure Devops and Selenium

Azure Devops Integration with TestingBot
  • Share on Facebook
  • Share on Twitter
  • Share on LinkedIn
  • Share on HackerNews

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 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 for each build.
  • See test results, together with a video, screenshots and logs from inside Azure Devops.


1. Go to to Visual Studio Marketplace 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 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

#!/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(
: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"
puts driver.title

For more information, please see the Azure Devops documentation.

TestingBot Logo

Sign up for a Free Trial

Start testing your apps with TestingBot.

No credit card required.

Other Articles

Firefox on Android: Automated Testing with Appium

TestingBot has been providing Android Emulators and Real devices for Automated Testing. Most of the time, the default browser for these devices is...

Read more
Mobile Locators for Automated Testing

TestingBot provides a large grid of mobile devices and simulators/emulators to run Automated and Manual tests against your mobile apps. An imp...

Read more
React Native Appium Testing

React Native makes it easy to create mobile applications for both iOS and Android.

Read more
macOS Catalina Automated Selenium Testing

Today we're adding macOS Catalina (beta 3) to our Selenium grid.

Read more
Launching Real Mobile Device Testing

We're happy to announce the launch of our Real Device Testing feature on TestingBot.

Read more
Advanced WebDriver Testing: Intercepting and Mocking Network

We've added various new/custom WebDriver commands to our Chrome Browsers.

Read more