Import test cases in Leapwork to automate and publish results on ADO

Import test cases in Leapwork to automate and publish results on ADO

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:

Create Connection

For importing a test case, create connection using ADO URL and personal access token.

  1. In Type, select Azure DevOps.

Import ADO test cases in Leapwork

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

  1. Click Settings > Connections.

  2. Right click in the left window and select Import from ADO.

  3. Select a project and click Import.

  4. All the test cases are imported. Click OK.

On left, the test cases are created in project folder Leapwork-ado-sbx.

  1. 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.

Import ADO test plan in Leapwork

  1. In Run lists, right click and select Import from ADO.

  2. Select a project. All the test plans related to that project appear. Each test plan is created based on the test suit and configuration. Select a test plan and click Import.

  3. Click View Details. If there is no test case in a test plan, a message appears - Automated test cases are not available in ADO.

  4. Click OK. On the left, run list and configurations appear. Each run list has test cases that you imported in previous steps.

  5. Right click on a runlist and select New schedule.

  6. Enter title of the schedule and click Save. The new schedule is created on the left.

  7. Right click on the new schedule and select Run Now.

Publish execution results on ADO

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

  1. In ADO, click refresh.

  2. Click on a test case.

  3. Click Run summary. On right in pie chart, you can see that the result shows that one test case passed and one failed.

  4. Click Test Results. You can see that the result shows that one test case passed and one failed.

  5. Click Progress Report.

Note:

For any clarification, please reach out to Priority Support