OpenTestSuite() public static method

public static OpenTestSuite ( string testSuiteName, string testSuiteId, System.Guid testPlatformUniqueId ) : bool
testSuiteName string
testSuiteId string
testPlatformUniqueId System.Guid
return bool
コード例 #1
0
        internal override void Execute()
        {
            var cmdlet = (OpenSuiteCmdletBase)Cmdlet;

            bool result =
                TmxHelper.OpenTestSuite(
                    cmdlet.Name,
                    cmdlet.Id,
                    (TestData.TestPlatforms.FirstOrDefault(tp => tp.Id == cmdlet.TestPlatformId) ?? TestData.CurrentTestPlatform).UniqueId);

            if (result)
            {
                cmdlet.WriteObject(cmdlet, TestData.CurrentTestSuite);
            }
            else
            {
                cmdlet.WriteError(
                    cmdlet,
                    "Couldn't get a test suite",
                    "GettingTestSuite",
                    ErrorCategory.InvalidArgument,
                    true);
            }
        }