Issue Type: Bug Bug
Affects Versions: current
Assignee: Unassigned
Attachments: junit.xml, log.txt, tc_aaaa.jpg, tc_bbbb.jpg, tc_xaaaax.jpg
Components: junit
Created: 02/Oct/12 3:35 PM
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.

Environment: Jenkins 1.484
Project: Jenkins
Priority: Major Major
Reporter: Hans-Juergen Hafner
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to