Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Azure DevOps Services | Azure DevOps Server 2022 | Azure DevOps Server 2020
When you've multiple configurations in your product to release, you can take a decision about releasing different configurations independently based on the progress of tests made for each configuration. An example of the configuration by outcome matrix report is shown in the following image.
Important
Power BI integration and access to the OData feed of the Analytics Service are generally available for Azure DevOps Services and Azure DevOps Server 2020 and later versions. The sample queries provided in this article are valid only against Azure DevOps Server 2020 and later versions, and depend on v3.0-preview or later version. We encourage you to use these queries and provide us feedback.
Category | Requirements |
---|---|
Access levels | - Project member. - At least Basic access. |
Permissions | By default, project members have permission to query Analytics and create views. For more information about other prerequisites regarding service and feature enablement and general data tracking activities, see Permissions and prerequisites to access Analytics. |
Note
This article assumes you read Overview of Sample Reports using OData Queries and have a basic understanding of Power BI.
For the report to generate useful data, the team must carry out the following activities to manage test plans:
Define test plans, test suites, and test cases. Specify their state. For a Test Suite to run, it must be in the In Progress state. For a Test Case to run, it must be in the Ready state. For details, see Create manual test cases.
Define test configurations and assign then to test cases. For details, see Test different configurations.
Run manual tests and verify the results. Mark the results of each validation step in the test case as passed or failed. For details, see Run manual tests.
Note
Testers must mark a test step with a status if it is a validation test step. The overall result for a test reflects the status of all the test steps that were marked. Therefore, the test will have a status of failed if any test step is marked as failed or not marked.
You can use the following queries of the TestPoints
entity set to create different but similar test plan progress reports.
Note
To determine available properties for filter or report purposes, see Metadata reference for Test Plans Analytics. You can filter your queries or return properties using any of the Property
values under an EntityType
or NavigationPropertyBinding Path
values available with an EntitySet
. Each EntitySet
corresponds to an EntityType
. For more information about the data type of each value, review the metadata provided for the corresponding EntityType
.
Copy and paste the following Power BI query directly into the Get Data > Blank Query window. For more information, see Overview of sample reports using OData queries.
let
Source = OData.Feed ("https://analytics.dev.azure.com/{organization}/{project}/_odata/v3.0-preview/TestPoints?"
&"$apply=filter((TestSuite/TestPlanTitle eq '{testPlanTitle}'))"
&"/groupby((TestConfiguration/Name, LastResultOutcome),"
&"aggregate($count as Count)"
&")", null, [Implementation="2.0"])
in
Source
Substitute the following strings with your values. Don't include brackets {} with your substitution. For example if your organization name is "Fabrikam", replace {organization}
with Fabrikam
, not {Fabrikam}
.
{organization}
- Your organization name{project}
- Your team project name, or omit "/{project}" entirely, for a cross-project query{testPlanTitle}
- Title of your test plan. Example: Fabrikam test plan
.The following table describes each part of the query.
Query part
Description
filter((TestSuite/TestPlanTitle eq '{testPlanTitle}'))
Return data for only selected test plan. You can add multiple plans with a clause like filter((TestSuite/TestPlanTitle eq '{testPlanTitle1}' or TestSuite/TestPlanTitle eq '{testPlanTitle2}'))
. You can also apply any other filters related to test suites, test configurations here.
/groupby((TestConfiguration/Name, LastResultOutcome),
Grouping the points by the test configuration names and their outcome.
/aggregate($count as Count)
Aggregate data across the filtered test points with having count as Count
.
You can rename the default query label, Query1, to something more meaningful. Simply enter a new name from the Query Settings pane.
Expand TestConfiguration
Choose the expand button.
Select the fields to flatten.
The table now contains entity field of TestConfiguration.Name
.
(Optional) Right-click a column header and select Rename...
From the Power Query Editor, select the columns containing a number, such as Blocked, Failed, and NotApplicable; select Data Type from the Transform menu; and then choose Whole Number. For more information about changing the data type, see Transform Analytics data to generate Power BI reports, Transform a column data type.
Once you've completed all your data transformations, choose Close & Apply from the Home menu to save the query and return to the Report tab in Power BI.
TestConfiguration.Name
to Rows.LastResultOutcome
to Columns.Count
to Values.Your report should look similar to the following image.
Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowTraining
Learning path
Solution Architect: Design Microsoft Power Platform solutions - Training
Learn how a solution architect designs solutions.
Certification
Microsoft Certified: Power BI Data Analyst Associate - Certifications
Demonstrate methods and best practices that align with business and technical requirements for modeling, visualizing, and analyzing data with Microsoft Power BI.
Documentation
Aggregated view for test suites sample Power BI report - Azure DevOps
Learn about sample Power BI queries that generate aggregated view for test suites.
Manual test execution trend sample Power BI report - Azure DevOps
Learn about sample Power BI queries that generate an execution trend of manual tests.
Requirements tracking, Stories overview rollup report - Azure DevOps
Learn how to use sample Power BI and OData queries to generate a one level roll-up report of aggregated metrics for work progress and status of tests and bugs.