Microsoft

Getting Started with Selenium Testing in a Continuous Integration Pipeline with Visual Studio

Jan 27, 2016Charles Sterling
Getting Started with Selenium Testing in a Continuous Integration Pipeline with Visual Studio
SummaryAI, from the source post

This post provides a detailed walkthrough of integrating Selenium UI tests into a Continuous Integration (CI) pipeline using Visual Studio Team Services (VSTS). It covers adding a new Unit Test project, installing necessary Selenium NuGet packages (webdriver, phantomJS, chromedriver, iedriver), authoring Selenium tests with C# code, and configuring build definitions to execute these tests. Specific challenges and solutions are addressed, including IE security setup, PhantomJS JSON errors, and the failure of interactive tests (like Firefox) on hosted build agents, recommending the use of PhantomJS or Selenium Grid for such scenarios. The post also details how to pass build parameters like URL and browser type to the tests and how to interpret test results within the build summary.

More from the Git CI Integration for Azure DevOps trail