I have job that runs an executable which yields a JUnit report. This report is parsed by Hudson (the 'Publish JUnit test result report' option is checked), and each testcase is shown as a link. What I would like to do is to show an HTML page, when a user clicks a link.
For example, this is the JUnit report that Hudson parses
<?xml version="1.0" encoding="utf-8"?>
<testsuite name="Root" package="RunnerRoot" errors="0" failures="3" tests="5" time="20.2">
<testcase classname="Runner" name="Test1" time="3.2283228" />
<testcase classname="Runner" name="Test2" time="2.9512951">
<failure> Error Running the test </failure>
</testcase>
Hudson creates two links called Test1 and Test2, and I want to show a customized content from an HTML file upon clicking a link.
Thank you
As far as I am aware there is no way to alter the Test Results page, although you might be able to achieve this by writing a plugin. However, there is a plugin that allows you to publish your own html report for a job - https://wiki.jenkins-ci.org/display/JENKINS/HTML+Publisher+Plugin. This will appear as a link in the left panel rather than replace the Test Result page, but it is probably the closest to what you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With