How to get test case execution of a test case with context of a Test Suite…?? if the same test case is present in another test suite, I do not want it, its information is irrelevant to me.
I am using the code, but it is not behaved as expected.
I have also attached the expected output (image). (there are 2 test results present and it is correct)
By using the code, what I get, is also attached in json format, and it is not matched with the expected output. (I get only 1 test result)
Kindly help me out, thanks in advance.
<
{
using System;
// Assembly Microsoft.TeamFoundationServer.Client.16.205.1\lib\net462\Microsoft.TeamFoundation.TestManagement.WebApi.dll
using TFSRestApi = Microsoft.TeamFoundation.TestManagement.WebApi;
public class QueryRunner
{
private void GetTestResultByPointId()
{
try
{
TFSRestApi.TestResultsQuery query = new TFSRestApi.TestResultsQuery();
TFSRestApi.ResultsFilter filter = new TFSRestApi.ResultsFilter();
//manual test so I set to empty string
filter. AutomatedTestName = "";
//test case id
filter. TestCaseId = 1109;
List