/// <summary>
        /// Perform required analysis. Default implementation
        /// analyzes any children and summarizes the results.
        /// </summary>
        public override void Analyze()
        {
            InitializeCounts();
            TestCaseResults.Clear();

            if (TestResult != null)
            {
                SummarizeTestResults(TestResult);
            }
            else
            {
                SummarizeChildren();
            }
        }
예제 #2
0
 public void AddTestCaseRun(TestRun testRun)
 {
     if (!TestCaseRuns.Contains(testRun))
     {
         TestCaseRuns.Add(testRun);
     }
     foreach (TestCaseResult result in testRun.TestCaseResults)
     {
         if (TestCaseId == result.TestCaseId)
         {
             TestCaseResults.Add(result);
         }
     }
 }
        private void SummarizeChildren()
        {
            foreach (TestResultAnalyzer child in children)
            {
                child.Analyze();

                this.TestCount         += child.TestCount;
                this.NotRunCount       += child.NotRunCount;
                this.FailureCount      += child.FailureCount;
                this.InconclusiveCount += child.InconclusiveCount;

                foreach (TestResult result in child.TestCaseResults)
                {
                    TestCaseResults.Add(result);
                }
            }
        }
예제 #4
0
 public void EndTestCaseReporting(TestCaseResults testCaseResults)
 {
     throw new NotImplementedException();
 }