Question

I want to get a list of test plans and test suites for a project using TFS java sdk.

how can I do this?

I tried to query it like a workItem but it does not work because its not a workItem

Was it helpful?

Solution

Looking at the java docs, the Test Suite/Plan/Results API isn't exposed using the Java SDK. Makes sense, since Test Manager functionality isn't available in Eclipse either.

To read some of the Test related information, you can use the TFS_Warehouse database which is supported as a data source for queries. You won't find all the test result fields, but you can get quite a bit of information on tests from these tables. But no Suite/Plan information as far as I can tell from this diagram:

enter image description here Source: http://msdn.microsoft.com/en-us/library/ee620637.aspx

Querying the tfs_{collection} database directly isn't supported and is strongly discouraged by Microsoft.

Which kind of results in the only possible solution: Build a custom webservice using .NET and call that from your Java project if you want to be able to do this.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top