How to query Test Cases that have been run and to identify if the most recent run passed or failed ?
we are using TFS2015 on premises, also configured SQL reporting server lately.
How to query Test Cases that have been run and to identify if the most recent run passed or failed ?
we are using TFS2015 on premises, also configured SQL reporting server lately.
Copyright © 2021 Jogjafile Inc.
Since you are using SQL reporting, you could create a SSRS report which will hold the value of all the test case results, execution date, who ran it. There are some related tables in Warehouse DB which stores the information. Each time test case outcome change, will create a test run, you could order by TestRunId: You just need to write a sample query to check the data. For example:
another similar query:
You could also user TFS REST API to git a list of test result based on test run ID, detail API please refer this--Get a list of test results.