I've created a test run with test points, is there a way to mark failed/ passed on one of the test inside the test run using the Api?
public ITestRun createRun(ITestPlan tfsPlan, IEnumerable<ITestPoint> points)
{
ITestRun run = tfsPlan.CreateTestRun(true);
foreach (ITestPoint tp in points)
{
run.AddTestPoint(tp, null);
}
run.Save();
ITestCaseResult result = run.QueryResults()[0];
result.Outcome = TestOutcome.Failed;
return run;
}
this is my method but it's not work. Thank you helping me :-)