Microsoft ADO Test Plan Integration

Introduction

In ADO, it is a tedious task to run test cases manually in every release. When you are creating test cases in ADO, you can maintain it using a test plan structure or individually create work items and manually try to execute those test cases.
This integration allows you to automate test cases in Leapwork. The automated test cases can be executed multiple times. You can analyze execution report and view results on ADO.

This integration allows you to:

  • Setup connection with ADO.
  • Import ADO test cases in Leapwork flow.
  • Import ADO test plan structure in Leapwork runlist.
  • Publish execution results on ADO.

Import ADO test cases in Leapwork

Once ADO connection is created, we can import flows as part of test cases in Leapwork. 

  1. Right click in the left window and select Import from ADO.
  2. Select a project and click Import.
  3. All the test cases are imported. Click OK.
  4. On left, the test cases are created in project folder Leapwork-ado-sbx.
  5. Click to expand a project folder. The ADO imported test cases list appears. The test case filename includes testcase id and test case name. Once all the test cases are imported, you can record the flows and run test cases in run list. In Flow settings, the test case link and summary appears. 

Import ADO test plan in Leapwork

  1. In Run lists, right click and select Import from ADO.
A screenshot of a computer  Description automatically generated
  1. Select a project. All the test plans related to that project appears.  Each test plan is created based on the test suit and configuration.  Select a test plan and click Import.
  1. Click View Details. If there is no test case in a test plan, a message appears - Automated test cases are not available in ADO.
  1. Click OK. On the left, run list and configurations appears. Each run list has test cases that you imported in previous steps. Runlist is created on the basis of configuration (Windows 10/11).
  2. Right click on a runlist and select New schedule.
A screenshot of a computer  Description automatically generated
  1. Enter title of the schedule and click Save. The new schedule is created on the left.
A screenshot of a computer  Description automatically generated
  1. Right click on the new schedule and select Run Now.

Publish execution results on ADO

In ADO, you can verify that while execution, test run is in progress or completed as shown below.

  1. In ADO, click refresh.
  2. Click on a test run.
  3. Click Run summary. On right in pie chart, you can see that the result shows that one test case passed and one failed.
  1. Click Test Results. You can see that the result shows that one test case passed and one failed.
A screenshot of a computer  Description automatically generated
  1. Click Progress Report. You can analyze results based on test suits and available filters.