[Issue 4005] New - Test result links on build page of multi-configuration jobs lead to 404

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue 4005] New - Test result links on build page of multi-configuration jobs lead to 404

pajp
https://hudson.dev.java.net/issues/show_bug.cgi?id=4005
                 Issue #|4005
                 Summary|Test result links on build page of multi-configuration
                        | jobs lead to 404
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|gui
             Assigned to|issues@hudson
             Reported by|pajp






------- Additional comments from [hidden email] Thu Jul  9 13:23:08 +0000 2009 -------
To reproduce:

Create a new Hudson multi-configuration job. In the Configuration Matrix, check "Axes" and enter
"CLIENT" in the Name field and "foo bar" in the Values field, to create two configurations called "foo"
and "bar".

Add an Execute shell build step producing a dummy test report, for example like this (make sure it
contains a failed test case):

# ------------------- (begin)
echo `date +%s`: $CLIENT > artifact.txt
cat<<EOF>results.xml
<?xml version="1.0" encoding="UTF-8" ?>
<testsuite tests="6" failures="1" name="batch_0">
<testcase name="test_MACSUCCESS1" time="1" />
<testcase name="test_MACSUCCESS2" time="1" />
<testcase name="test_MACSUCCESS3" time="1" />
<testcase name="test_MACSUCCESS4" time="1" />
<testcase name="test_MACSKIPPED" time="0">
<skipped type="com.fs.moosetest.testskipped" message="SKIPPED: Example of skipped test.n" />
</testcase>
<testcase name="test_MACFAIL" time="2">
<failure type="com.fs.moosetest.documentation" message="FAILED: this didn't work out. sorry." />
</testcase>
</testsuite>
EOF

# ------------------- (end)

Under Post-build Actions, check the "Publish JUnit test result report" option, and, in the field "Test
report XMLs", enter "**/results.xml".

Click save.

On the job main page, click "Build Now".

When the job has completed, click the link for the last build in the "Build History" column to the left.

On that build page, you should see "Test Result (2 failures), Show all failed tests >>". Click "Show all
failed tests", and then click one of the links of failing test cases appearing.

EXPECTED RESULT: A page containing the test case failure information.
OBSERVED RESULT: A page (Hudson URL job/testjob/2/testReport/(root)/batch_0/test_MACFAIL) saying
"Status Code: 404

Exception:
Stacktrace:
(none)
"


Workaround: by first clicking either of the Configuration links on the build page, ("foo" or "bar"), you
can navigate to the test failures.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4005] Test result links on build page of multi-configuration jobs lead to 404

mdonohue
https://hudson.dev.java.net/issues/show_bug.cgi?id=4005



User mdonohue changed the following:

                What    |Old value                 |New value
================================================================================
            Subcomponent|gui                       |matrix
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Thu Jul  9 14:15:22 +0000 2009 -------
Moving to 'matrix' subcomponent

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]