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:
- Setup connection with ADO.
- Import ADO test cases in Leapwork flow.
- Import ADO test plan structure in Leapwork runlist.
- Publish execution results on ADO.
Create Connection
For importing a test case, create connection using ADO URL and personal access token.
- 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.
Click Settings > Connections.
Right click in the left window and select Import from ADO.
Select a project and click Import.
All the test cases are imported. Click OK.
On left, the test cases are created in project folder Leapwork-ado-sbx.
- 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
In Run lists, right click and select Import from ADO.
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.
Click View Details. If there is no test case in a test plan, a message appears - Automated test cases are not available in ADO.
Click OK. On the left, run list and configurations appear. Each run list has test cases that you imported in previous steps.
Right click on a runlist and select New schedule.
Enter title of the schedule and click Save. The new schedule is created on the left.
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.
In ADO, click refresh.
Click on a test case.
Click Run summary. On right in pie chart, you can see that the result shows that one test case passed and one failed.
Click Test Results. You can see that the result shows that one test case passed and one failed.
Click Progress Report.
Note:
- If you are facing any issue with respect to ADO import then try shorten the descriptions/summary of specific test cases and re-sync.
- If you encounter issue related to duplicate test suites being generated whenever a new test plan was created and test suites were imported then it is advised to uncheck the Assign to new test plans option in the Default Configuration (or similar ones) to prevent automatic duplication of test suites.
For any clarification, please reach out to Priority Support