Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-18499

Bamboo test case result detail page shows incorrect duration

    XMLWordPrintable

Details

    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

      1. Run a Build with tests
      2. 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

          Activity

            People

              pskierczynski Pawel Skierczynski
              ezeidan Elias Zeidan (they/them)
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: