public ITestIterationResult SetStepResults(List <TestStep> testSteps) { int stepCount = 1; foreach (var step in testSteps) { InitTestStep(); if (step.Result != null && NotAllNull(step.Result.Exception, step.Result.RefToScreenshot, step.Result.AddtionalInformation)) { ResultBlob = new TestStepResultBlob(stepCount, step.Result.RefToScreenshot, step.Result.AddtionalInformation, step.Result.Exception); } if (step.Result == null) { FailTestStep(new Tools.StepFailInformation("Result var null. Ikke kjørt eller bug i testcasen")); break; } if (!step.Result.Success) { var stepFailInfo = new Tools.StepFailInformation(step.Result.ErrorMessage); FailTestStep(stepFailInfo); break; } else { CloseTestStep(); } stepCount++; } return(GetTestResult()); }
public TfsNotes(TestStepResultBlob obj) { AddtionalInformation = obj.AddtionalInformation; RefToScreenshot = obj.RefToScreenshot; Exception = obj.Exception; }