admin管理员组

文章数量:1296305

I am working with azure devops, and using Java selenium to runs test scripts. The problem I am facing is that when I try to post the results back to test case, it creates new run ID and posts there, instead of the triggered run.

As per Vs Test Run; I have run ID as below;

But when I enabled the Publish Result to Azure Pipelines on Maven Task, it publishes the result with new Run ID as below;

My intention is to update the result on the same run ID as per VS Test Run. How can I do this?

I am working with azure devops, and using Java selenium to runs test scripts. The problem I am facing is that when I try to post the results back to test case, it creates new run ID and posts there, instead of the triggered run.

As per Vs Test Run; I have run ID as below;

But when I enabled the Publish Result to Azure Pipelines on Maven Task, it publishes the result with new Run ID as below;

My intention is to update the result on the same run ID as per VS Test Run. How can I do this?

Share Improve this question asked Feb 11 at 21:16 ClinOne Test2ClinOne Test2 11 bronze badge 1
  • Hi @ClinOneTest2, Welcome to SO. Have you got a chance to check the answer below by Bryan to disable publishing test results from the maven task and then add a simple PublishTestResults@2 task after all the tests have run? Hope it can resolve your query in this post. Thx for the update. – Alvin Zhao - MSFT Commented Feb 25 at 2:23
Add a comment  | 

1 Answer 1

Reset to default 0

Each time you publish results, you will get a different test run. If your aim is to execute tests from different tasks and then aggregate them and publish them as a single test run, then disable publishing test results from the maven task and then add a simple PublishTestResults@2 task after all the tests have run.

As your screenshot shows a Classic Build pipeline, use the task named "Publish Test Results":

Be sure to set mergeTestResults to true.

本文标签: