Browse Source

Unusual output in output result sheet resolved.

Akash Singh 4 years ago
parent
commit
3291ea14b8
2 changed files with 6 additions and 2 deletions
  1. 0 1
      baangt/TestCase/TestCaseMaster.py
  2. 6 1
      baangt/base/Timing/Timing.py

+ 0 - 1
baangt/TestCase/TestCaseMaster.py

@@ -81,7 +81,6 @@ class TestCaseMaster:
         tcData[GC.TIMING_DURATION] = self.timing.takeTime(self.timingName)   # Write the End-Record for this Testcase
 
         tcData[GC.TIMELOG] = self.timing.returnTime()
-
         self.timing.resetTime(self.timingName)
 
     def _checkAndSetTestcaseStatusIfFailExpected(self):

+ 6 - 1
baangt/base/Timing/Timing.py

@@ -102,7 +102,12 @@ class Timing:
 
     def resetTime(self, name):
         testrun = self.timing.get(GC.TIMING_TESTRUN)
-        self.timing[name].clear()
+        for key in self.timing.keys():
+            if key == testrun:
+                continue
+            if "TestCaseMaster" in key and key != name:
+                continue
+            self.timing[key].clear()
         self.counter.clear()
         if testrun:
             self.timing[GC.TIMING_TESTRUN] = testrun