Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-3906

durations greater than 59s

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • mstest-plugin
    • None
    • Platform: All, OS: All

    Description

      Test durations greater than 59 seconds are shown as 0ms. This occurs often for
      data driven tests.

      possible solution (not nice but working - maybe you know a better one):
      ...
      <xsl:variable name="duration_seconds"
      select="number(substring-after(substring-after(@duration, ':'), ':'))"/>
      <xsl:variable name="duration_minutes"
      select="number(substring-before(substring-after(@duration, ':'), ':'))"/>
      <xsl:variable name="duration_hours" select="number(substring-before(@duration,
      ':'))"/>
      ...
      time="{$duration_seconds + $duration_minutes * 60 + $duration_hours * 60 * 60}

      Attachments

        Activity

          markusbuehler markusbuehler created issue -
          acmarques acmarques made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          acmarques acmarques made changes -
          Fix Version/s current [ 10162 ]
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          abayer Andrew Bayer made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 133979 ] JNJira + In-Review [ 202536 ]

          People

            acmarques acmarques
            markusbuehler markusbuehler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: