Я нашел несколько примеров о получении результатов тестирования с использованием TFS API, но без документации по созданию результатов программно. Моя цель - создать легкую альтернативу использованию Microsoft Test Manager для запуска ручных тестов. У кого-нибудь есть опыт? Есть ли какие-то примеры, которые мне не хватает?
Вот что я до сих пор:
ITestCaseResult CreateNewTestCaseResult(ITestSuiteEntry testCaseEntry)
{
var run = testCaseEntry.TestSuite.Plan.CreateTestRun(false /* not automated */);
run.AddTest(testCaseEntry.TestCase.Id, suiteEntry.TestSuite.DefaultConfigurations[0].Id, suiteEntry.TestSuite.Plan.Owner);
run.Save(); // so that results object is created
return run.QueryResults()[0];
}
Я не уверен, что это правильный способ инициировать новый запуск, и я не уверен, как записывать результаты для каждого действия теста.