예제 #1
0
        /// <inheritdoc/>
        public override void AddTestCaseStatus(ITestCaseStatus testCaseStatus)
        {
            ALMSetData almConnecter = (ALMSetData)InformationObject.TestSetData;

            almConnecter.ConnectToALM();
            almConnecter.TestSet.SetTestCaseRunStatus(testCaseStatus.RunSuccessful);
            almConnecter.ContinueToRun = almConnecter.TestSet.MoveToNextTestCase();
        }
예제 #2
0
        /// <inheritdoc/>
        public void UpdateTestSetStatus(ITestCaseStatus testCaseStatus)
        {
            if (testCaseStatus.RunSuccessful == false)
            {
                this.TestSetStatus.RunSuccessful = false;
            }

            InformationObject.Reporter.AddTestCaseStatus(testCaseStatus);
        }
예제 #3
0
        /// <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);
            }
        }
예제 #4
0
        /// <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);
        }
예제 #5
0
 /// <inheritdoc/>
 public virtual void AddTestCaseStatus(ITestCaseStatus testCaseStatus)
 {
     this.TestCaseStatuses.Add(testCaseStatus);
 }
예제 #6
0
        /// <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);
        }