Exemple #1
0
        internal static ITestResult SetTestResult(string testResultName, string testResultId)
        {
            GetNewTestSuite("name", "id", "description");

            var cmdlet = new SetTmxCurrentTestResultCommand();

            if (!string.IsNullOrEmpty(testResultName) &&
                0 < testResultName.Length)
            {
                cmdlet.TestResultName = testResultName;
            }

            if (!string.IsNullOrEmpty(testResultId) &&
                0 < testResultId.Length)
            {
                cmdlet.Id = testResultId;
            }

            var command = new TmxSetCurrentTestResultCommand(cmdlet);

            command.Execute();

            return(TestData.CurrentTestResult);
        }
 protected override void BeginProcessing()
 {
     var command = new TmxSetCurrentTestResultCommand(this);
     command.Execute();
 }
        protected override void BeginProcessing()
        {
            var command = new TmxSetCurrentTestResultCommand(this);

            command.Execute();
        }