diff --git a/ExtentReports/ExtentReports/SessionStatusStats.cs b/ExtentReports/ExtentReports/SessionStatusStats.cs index 79a8217..5b2e230 100644 --- a/ExtentReports/ExtentReports/SessionStatusStats.cs +++ b/ExtentReports/ExtentReports/SessionStatusStats.cs @@ -202,7 +202,6 @@ private void ExtractStandardTestCountsTestStrategy(Test test) { if (!test.HasChildren()) { - IncrementItemCountByStatus(ItemLevel.Parent, test.Status); test.LogContext().GetAllItems().ForEach(x => { IncrementItemCountByStatus(ItemLevel.Child, x.Status); @@ -210,6 +209,7 @@ private void ExtractStandardTestCountsTestStrategy(Test test) } else { + IncrementItemCountByStatus(ItemLevel.Parent, test.Status); test.NodeContext().GetAllItems().ForEach(x => ExtractStandardTestCountsTestStrategy(x)); } } @@ -358,4 +358,4 @@ private enum ItemLevel GrandChild } } -} \ No newline at end of file +}