Пример #1
0
        internal static ITestSuite GetExistingTestSuite(
            string name,
            string id)
        {

            OpenSuiteCmdletBase cmdlet =
                new OpenSuiteCmdletBase();
            //cmdlet.UnitTestMode = true;
            if (null != name && string.Empty != name) {
                cmdlet.Name = name;
            }
            if (null != id && string.Empty != id) {
                cmdlet.Id = id;
            }
            
            TMXOpenTestSuiteCommand command =
                new TMXOpenTestSuiteCommand(cmdlet);
            command.Execute();
            
            //return (ITestSuite)CommonCmdletBase.UnitTestOutput[CommonCmdletBase.UnitTestOutput.Count - 1];
            return (ITestSuite)(object)PSTestLib.UnitTestOutput.LastOutput[0];
        }
Пример #2
0
        public static void GetTestSuiteStatusByName(OpenSuiteCmdletBase cmdlet, string name, string testPlatformId, bool skipAutomatic)
        {
            TMXHelper.OpenTestSuite(
                name,
                string.Empty,
                testPlatformId);
            if (null != TestData.CurrentTestSuite) {

                // 20130322
                //TestData.RefreshSuiteStatistics(TestData.CurrentTestSuite);
                TestData.RefreshSuiteStatistics(TestData.CurrentTestSuite, skipAutomatic);
                cmdlet.WriteObject(cmdlet, TestData.CurrentTestSuite.Status);
            }
        }
Пример #3
0
        public static void GetCurrentTestSuiteStatus(OpenSuiteCmdletBase cmdlet, bool skipAutomatic)
        {
            if (null != TestData.CurrentTestSuite) {

                // 20130322
                //TestData.RefreshSuiteStatistics(TestData.CurrentTestSuite);
                TestData.RefreshSuiteStatistics(TestData.CurrentTestSuite, skipAutomatic);
                cmdlet.WriteObject(cmdlet, TestData.CurrentTestSuite.Status);
            }
        }
Пример #4
0
 public static void GetTestSuiteStatusByName(OpenSuiteCmdletBase cmdlet, string name)
 {
     TMXHelper.OpenTestSuite(
         name,
             string.Empty);
     if (null != TestData.CurrentTestSuite) {
         TestData.RefreshSuiteStatistics(TestData.CurrentTestSuite);
         cmdlet.WriteObject(cmdlet, TestData.CurrentTestSuite.Status);
     }
 }
Пример #5
0
 public static void GetCurrentTestSuiteStatus(OpenSuiteCmdletBase cmdlet)
 {
     if (null != TestData.CurrentTestSuite) {
         TestData.RefreshSuiteStatistics(TestData.CurrentTestSuite);
         cmdlet.WriteObject(cmdlet, TestData.CurrentTestSuite.Status);
     }
 }