public TestSuite UpdateTestSuiteProperties() { string projectName = ClientSampleHelpers.FindAnyProject(this.Context).Name; // Get a testplan client instance VssConnection connection = Context.Connection; TestPlanHttpClient testPlanClient = connection.GetClient <TestPlanHttpClient>(); TestSuiteUpdateParams testSuiteUpdateParams = new TestSuiteUpdateParams() { DefaultTesters = new List <IdentityRef>() { new IdentityRef() { Id = this._getDefaultTesterIdentity() } } }; int testPlanId = this._getTestPlanId(); TestSuite newSuite; Context.TryGetValue <TestSuite>("$newSuite", out newSuite); if (newSuite != null) { int id = newSuite.Id; TestSuite updtaetdTestSuite = testPlanClient.UpdateTestSuiteAsync(testSuiteUpdateParams, projectName, testPlanId, id).Result; Context.Log("{0} {1}", updtaetdTestSuite.Id.ToString().PadLeft(6), updtaetdTestSuite.Name); return(updtaetdTestSuite); } return(null); }
public TestSuite UpdateTestSuiteParent() { string projectName = ClientSampleHelpers.FindAnyProject(this.Context).Name; // Get a testplan client instance VssConnection connection = Context.Connection; TestPlanHttpClient testPlanClient = connection.GetClient <TestPlanHttpClient>(); TestSuiteUpdateParams testSuiteUpdateParams = new TestSuiteUpdateParams() { ParentSuite = new TestSuiteReference() { Id = 81 } }; TestSuite updtaetdTestSuite = testPlanClient.UpdateTestSuiteAsync(testSuiteUpdateParams, projectName, 79, 87).Result; Console.WriteLine("{0} {1}", updtaetdTestSuite.Id.ToString().PadLeft(6), updtaetdTestSuite.Name); return(updtaetdTestSuite); }
public TestSuite UpdateTestSuiteProperties() { string projectName = ClientSampleHelpers.FindAnyProject(this.Context).Name; // Get a testplan client instance VssConnection connection = Context.Connection; TestPlanHttpClient testPlanClient = connection.GetClient <TestPlanHttpClient>(); TestSuiteUpdateParams testSuiteUpdateParams = new TestSuiteUpdateParams() { DefaultTesters = new List <IdentityRef>() { new IdentityRef() { Id = "9b6bee0e-28b2-42b6-ab5b-5122b63d473c" } } }; TestSuite updtaetdTestSuite = testPlanClient.UpdateTestSuiteAsync(testSuiteUpdateParams, projectName, 79, 83).Result; Console.WriteLine("{0} {1}", updtaetdTestSuite.Id.ToString().PadLeft(6), updtaetdTestSuite.Name); return(updtaetdTestSuite); }