/// <summary> /// retrieve the testsuite id /// </summary> /// <param name="tlfa"></param> /// <returns>0 or a valid test suite Id</returns> private int GetTestSuitedId(int projectId, string testSuiteName) { int testSuiteId = 0; List <TestSuite> testSuites = proxy.GetFirstLevelTestSuitesForTestProject(projectId); //GetTestSuitesForTestPlan(testPlanId); // testsuite must exist. Currently no way of creating them foreach (TestSuite ts in testSuites) { if (ts.name == testSuiteName) { testSuiteId = ts.id; break; } } return(testSuiteId); }