Details
-
Bug
-
Resolution: Fixed
-
Low
-
5.15.5, 6.0.3
-
Severity 3 - Minor
-
Description
Summary
On the Test case result page, the test duration is calculated incorrectly
Steps to Reproduce
Reproduced using JUnit tests on Bamboo 5.15.5 and 6.0.3
- Run a Build with tests
- View the Test Results and Test Case Results pages
Expected Results
Both values match
Actual Results
The values do not match.
- The Test result duration calculation starts with milliseconds
- The Test case result duration calculation starts with seconds
For example:
We ran JUnit tests in MyPlan - MyBuild - MyJob -4
In the JUnit test result XML file, the time for MyJavaTest is recorded as 1.204 seconds.
In the Test Results summary for this job, we see:
Test | Duration |
---|---|
MyJavaTest | 1 sec |
In the test case result details for MyJavaTest, we see:
Duration: 20 mins
Comparison:
Using the JUnit test value, 1.204:
1.204 * 1000 = 1204 1204 / 60 = 20.066... (0 d.p) 20.066 = 20
Workaround
There is no in-app workaround.
That said, both values represent the same duration, just in different units.
To see the correct time, please perform the following calculation outside of Bamboo, to 0 decimal places, on the Test Case Result duration:
Duration / 1000
Attachments
Issue Links
- is related to
-
BAM-18431 Long running Tests display duration as "<1sec" and "-1" in build results output
- Gathering Impact