/// <inheritdoc/> public override void AddTestCaseStatus(ITestCaseStatus testCaseStatus) { ALMSetData almConnecter = (ALMSetData)InformationObject.TestSetData; almConnecter.ConnectToALM(); almConnecter.TestSet.SetTestCaseRunStatus(testCaseStatus.RunSuccessful); almConnecter.ContinueToRun = almConnecter.TestSet.MoveToNextTestCase(); }
/// <inheritdoc/> public void UpdateTestSetStatus(ITestCaseStatus testCaseStatus) { if (testCaseStatus.RunSuccessful == false) { this.TestSetStatus.RunSuccessful = false; } InformationObject.Reporter.AddTestCaseStatus(testCaseStatus); }
/// <inheritdoc/> public void Log(ITestCase testCase) { ITestCaseStatus testCaseStatus = testCase.TestCaseStatus; List <string> str = new List <string>(); str.Add(this.Tab(1) + "Name:" + testCase.Name); str.Add(this.Tab(1) + "RunSuccessful:" + testCaseStatus.RunSuccessful.ToString()); foreach (string line in str) { Logger.Info(line); } }
/// <inheritdoc/> public virtual void AddTestStepStatusToTestCase(ITestStepStatus testStepStatus, ITestCaseStatus testCaseStatus) { if (!this.TestCaseToTestSteps.ContainsKey(testCaseStatus)) { this.TestCaseToTestSteps.Add(testCaseStatus, new List <ITestStepStatus>()); } this.TestCaseToTestSteps[testCaseStatus].Add(testStepStatus); }
/// <inheritdoc/> public virtual void AddTestCaseStatus(ITestCaseStatus testCaseStatus) { this.TestCaseStatuses.Add(testCaseStatus); }
/// <inheritdoc/> public override void AddTestStepStatusToTestCase(ITestStepStatus testStepStatus, ITestCaseStatus testCaseStatus) { ALMSetData almConnecter = (ALMSetData)InformationObject.TestSetData; almConnecter.ConnectToALM(); string testName = testStepStatus.Name; string testStatus = testStepStatus.RunSuccessful ? "Passed" : "Failed"; string testDescription = testStepStatus.Description; string testExpected = testStepStatus.Expected; string testActual = testStepStatus.Actual; almConnecter.TestSet.AddTestStepToTestCase(testName, testStatus, testDescription, testExpected, testActual); }