public void DeleteTestSuite()
        {
            string projectName = ClientSampleHelpers.FindAnyProject(this.Context).Name;
            // Get a testplan client instance
            VssConnection      connection     = Context.Connection;
            TestPlanHttpClient testPlanClient = connection.GetClient <TestPlanHttpClient>();

            //Delete the test variable first
            testPlanClient.DeleteTestSuiteAsync(projectName, 79, 86).SyncResult();
        }
Esempio n. 2
0
        public void DeleteTestSuite()
        {
            string projectName = ClientSampleHelpers.FindAnyProject(this.Context).Name;
            // Get a testplan client instance
            VssConnection      connection     = Context.Connection;
            TestPlanHttpClient testPlanClient = connection.GetClient <TestPlanHttpClient>();

            int       testPlanId = this._getTestPlanId();
            TestSuite newSuite;

            Context.TryGetValue <TestSuite>("$newSuite", out newSuite);
            if (newSuite != null)
            {
                int id = newSuite.Id;

                //Delete Test Suite
                testPlanClient.DeleteTestSuiteAsync(projectName, testPlanId, id).SyncResult();
            }
        }