public static CloseTestResult ( string testResultName, string testResultId, bool testResult, bool isKnownIssue, |
||
testResultName | string | |
testResultId | string | |
testResult | bool | |
isKnownIssue | bool | |
error | ||
description | string | |
origin | TestResultOrigins | |
skipAutomatic | bool | |
Résultat | void |
internal override void Execute() { var cmdlet = (CloseTmxTestResultCommand)Cmdlet; cmdlet.ConvertTestResultStatusToTraditionalTestResult(); cmdlet.WriteVerbose(cmdlet, cmdlet.Name + ", Id = " + cmdlet.Id + ", Status = " + cmdlet.TestPassed); if (cmdlet.Echo) { cmdlet.WriteObject( cmdlet, cmdlet.Name + "\t" + cmdlet.TestPassed); } string code = string.Empty; string testResultName = string.Empty; if (string.IsNullOrEmpty(cmdlet.Name) && !string.IsNullOrEmpty(cmdlet.TestResultName)) { testResultName = cmdlet.TestResultName; } if (!string.IsNullOrEmpty(cmdlet.Name) && string.IsNullOrEmpty(cmdlet.TestResultName)) { testResultName = cmdlet.Name; } if (!string.IsNullOrEmpty(cmdlet.TestResultName) && !string.IsNullOrEmpty(cmdlet.Name)) { testResultName = cmdlet.TestResultName; } TmxHelper.CloseTestResult( testResultName, cmdlet.Id, cmdlet.TestPassed, cmdlet.KnownIssue, // 20160116 // cmdlet.MyInvocation, null, cmdlet.Description, cmdlet.TestOrigin, true); }