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

No history for test cases where name of suite is part of test case name

    Details

    • Similar Issues:

      Description

      If the name of test suite (e.g. "aaaa") is part of the test case name (e.g. "tc_aaaa"), Jenkins is unable to display history of this test case and throws an exeption:

      Oct 2, 2012 5:06:15 PM hudson.ExpressionFactory2$JexlExpression evaluate
      WARNING: Caught exception evaluating: it.getResultInBuild(b). Reason: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at java.lang.String.substring(Unknown Source)
      at java.lang.String.substring(Unknown Source)
      at hudson.tasks.junit.ClassResult.findCorrespondingResult(ClassResult.java:86)
      at hudson.tasks.junit.PackageResult.findCorrespondingResult(PackageResult.java:102)
      at hudson.tasks.junit.TestResult.findCorrespondingResult(TestResult.java:295)
      at hudson.tasks.test.AbstractTestResultAction.findCorrespondingResult(AbstractTestResultAction.java:183)
      at hudson.tasks.test.TestResult.getResultInBuild(TestResult.java:162)

      (full log can be found in attachment log.txt)

      I´ve attached the test results file (junit.xml) with which this behavior can be reproduced.

        Attachments

        1. junit.xml
          0.3 kB
        2. junit2.xml
          0.3 kB
        3. junit3.xml
          0.3 kB
        4. log.txt
          11 kB
        5. tc_aaaa.jpg
          tc_aaaa.jpg
          16 kB
        6. tc_bbbb.jpg
          tc_bbbb.jpg
          29 kB
        7. tc_xaaaax.jpg
          tc_xaaaax.jpg
          18 kB

          Issue Links

            Activity

            hjhafner Hans-Juergen Hafner created issue -
            thesam Samuel Moritz made changes -
            Field Original Value New Value
            Assignee Samuel Moritz [ thesam ]
            thesam Samuel Moritz made changes -
            Assignee Samuel Moritz [ thesam ]
            thesam Samuel Moritz made changes -
            Assignee Samuel Moritz [ thesam ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-17721 [ JENKINS-17721 ]
            danielbeck Daniel Beck made changes -
            Labels lts-candidate
            olivergondza Oliver Gondža made changes -
            Labels lts-candidate 1.509.4-rejected
            hjhafner Hans-Juergen Hafner made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            jglick Jesse Glick made changes -
            Status Reopened [ 4 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            hjhafner Hans-Juergen Hafner made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            hjhafner Hans-Juergen Hafner made changes -
            Attachment junit2.xml [ 24535 ]
            hjhafner Hans-Juergen Hafner made changes -
            Attachment junit3.xml [ 24536 ]
            danielbeck Daniel Beck made changes -
            Labels 1.509.4-rejected 1.509.4-rejected lts-candidate
            danielbeck Daniel Beck made changes -
            Labels 1.509.4-rejected lts-candidate 1.509.4-rejected
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 146113 ] JNJira + In-Review [ 186082 ]

              People

              • Assignee:
                thesam Samuel Moritz
                Reporter:
                hjhafner Hans-Juergen Hafner
              • Votes:
                2 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated: