private void CreateResult() { _currentTestStepResult = CreateTestStepResult(_currentStep as ITestStep); _currentTestStepResult.DateStarted = DateTime.Now; }
private void SetTestStepResultAndSaveToIteration(ITestActionResult testResult, TestOutcome testOutcome) { SetTestStepResult(testResult, testOutcome); _iteration.Actions.Add(testResult); }
private void SetTestStepResult(ITestActionResult testResult, TestOutcome testOutcome) { testResult.Outcome = testOutcome; testResult.DateCompleted = DateTime.Now; testResult.Duration = testResult.DateCompleted.Subtract(testResult.DateStarted); }
/// <summary> /// Initializes a new instance of the <see cref="TfsTestActionResult"/> class. /// </summary> /// <param name="testActionResult">The wrapped test action result.</param> /// <param name="stepNumber">The step number of this result as defined in the tested test case.</param> /// <param name="testAction">The original test action.</param> public TfsTestActionResult(ITestActionResult testActionResult, string stepNumber, ITestAction testAction) { _testAction = testAction; _testActionResult = testActionResult; StepNumber = stepNumber; }