How to monitor testing progress with Azure DevOps? - azure

I would like to measure the testing progress (how many tests are done, how many passed/failed, how many tests run by a specific tester) in MS Azure DevOps.
I came across this article and it seems Test Results Trend widget is what I need (plus the widget is enabled on my installation).
Now, I have the test plan with the test suites and test cases. But the widget works with the pipelines. My knowledge is very limited here... but I would expect one should be able to build a pipeline from the test suite.
Does anyone have experience with that?

The Test Results Trend widget is for Unit Tests (that executed during a build pipeline), what do you need is Chart for Test Plan:
There you can configure the widget to display Test Cases / Test Runs (according to Tets Plan/Suite).
In the "Test Plans" page you can also configure charts that display that information:

Related

Azure Devops -Test Data displayed in pipeline is incorrect and is displaying data which i ran in my local esktop

I needed a small help. Whenever I run the pipeline, the data being displayed in testtab is incorrect and it displays the data which I ran on my local desktop rather than the job ran on Agent.
You can run tests in test tabs using different options. You can use any to solve your problem:
Automatically inferred test result: for some popular test runners' pipeline automatically infer the test output.
This is done with the help of describing the error logs generated during build operation.
Publish Test result task: Publishes test result to azure pipeline you choose the runner for tests execution available in
any formats.
Test execution tasks: Built -in test execution tasks such as visual studio test that automatically publish tests results to the pipeline
Azure Devops also provide other way to surface the test information You can use this.
Test analytics provide rich insights into test result over a period of time, identify problematic area in your test.
The dashboard provide track of your work's progress add widgets that surface test related information.
Requirement quality
Test result trend
Deployment status
Reference: https://learn.microsoft.com/en-us/azure/devops/pipelines/test/review-continuous-test-results-after-build?view=azure-devops

How to combine Azure Test Pland with Pipelines?

Currently I am trying to using Azure Test Plans to manage all test cases, but I just found how to build / generate manual test cases. I also make some research about Pipeline and I just write some "hello world" test scripts and using Pipeline to automatically test the code. My question is: How could I combine TestPlans with Pipeline to make the test in pipeline recordable? Thank you so much!
this is how the pipeline looks like
this is how the test code be checked
My question is: How could I combine TestPlans with Pipeline to make
the test in pipeline recordable?
I'm a bit confused about what the recordable mean in your question. To combine TestPlan with Pipeline, you should configure the Test Plan Settings. For example, set a build pipeline(build and generates the test binaries) and a release pipeline with test-related task in your Test Plan Settings.
The normal logic is:
A test plan containing your automated tests, which you have associated with automated test methods using Visual Studio 2017, or Visual Studio 2015 or earlier.
A Team Build pipeline that generates builds containing the test binaries.
The app to test. You can deploy the app as part of the build and release workflow and also use it for on-demand testing.
For more details please check Run automated tests from test plans.

Azure DevOps (TFS) dashboard test start date

I want to know if there is any possibility to add on an Azure DevOps(TFS) dashboard the start time of the tests.
Currently I have a pie chart with all the test runned over night,(passed, fail and not run) and I want to know if there is any possibility to add the time when the test were executed on this dashboard.
Thank you.
You can create your own widget, based on a custom query, and then add the widget to your dashboard. See more info here.
If you run tests from Build or Release Pipeline, you may try Test Results Trend (Advanced) widget, with the Test Results Trend (Advanced) widget, you can track the test quality of your pipelines over time.
https://learn.microsoft.com/en-us/azure/devops/report/dashboards/configure-test-results-trend?view=azure-devops

Export tests results from Azure DevOps

I might be missing something, but can't find a way to export tests run results from the project's build pipeline execution page in Azure DevOps.
There is a "Download logs" option, of cause, where you technically can find logs from tests execution step as well among other things, but that doesn't seems to be the best/proper way to get that kind of data on a regular basis for regulations/audit/documentation purpose compared to how it is possible to get test results from other build systems right out-of-the-box (TeamCity/Jenkins etc).
So what would be the best approach to get this kind of data out of the system - custom task or else?
There is a simpler way to download the test results in trx format if you do not have Test Plans.
Go to the Tests tab from your build pipeline run.
Select your Test Run from the bottom pane (top level row for your run). A dialog should open on your right with options like Debug, Attachments, etc.
Click on the Attachments tab and you will find your trx file here.
I found that today, it will actually work. Even if you don't have test plans or anything, published tests artifacts will go into Tests Plan -> Runs.
Then you will be able to click on Tests Runs, select the run you want to download, and simply download the attachment.
You can export test plans, test suites, and test cases from Test Plans. Select the details that you want in the report. Then email or print this report for review.

Azure DevOps Test Plans - Synchronize JUnit test results in Runs with test cases on Tests Plan

In Azure DevOps, is there any way that I can synchronize the results in Runs with test cases in Test Plans automatically?
My process is:
Release pipeline is set up to trigger Jenkins build to run automated tests.
JUnit test results will be downloaded and published once the build is completed.
Tasks in automation run stage of pipeline.
The process works as expected. I can see the JUnit results in Runs section as the image below. However, the outcome of the test results in Runs (all failed) is not synchronized with test cases in Test Plans (still be active). Can I have the outcome of test cases in Test Plans updated every time the automation build is run and then JUnit XML results are published to Runs?
Results in Test Runs.
Test cases in Test Plans.
So fat is there any settings of Azure DevOps to make it done automatically or I have to update the test outcome in Test Plans manually?

Resources