Adding Automatic Comment/Link to Test (xUnit) Results
10 views
Skip to first unread message
AndyB
unread,
Jan 10, 2012, 10:42:21 AM1/10/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jenkins...@googlegroups.com
Hi,
I'm using the xUnit plugin to report test results - which works very well. On the report page there is an option to add a comment - what I'd like to be able to do is set that comment automatically at test completion time. The idea is to embed a link to more detailed test results (which are hosted on dedicated test server). Embedding the link manually works OK, but I need to be able to set the comment automatically when the test finishes. Does anyone know if this is possible? If not, would this be a feature request for the xUnit plugin, or is this done at a higher level?
Thanks for your help Andy
Grégory Boissinot
unread,
Jan 10, 2012, 7:37:23 PM1/10/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jenkins...@googlegroups.com
It could be a feature request. However, is it a static link or a dynamic link attached to a test or a set of tests? Additionnally, where the link is retrieved (from the Jenkins job config, in the test result, ...)?
AndyB
unread,
Jan 11, 2012, 3:56:58 AM1/11/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jenkins...@googlegroups.com
Hi Grégory,
The link/comment would be dynamic. What happens is that when we've built a test it's dispatched to a test server and we get a test ID as a response. We use that to query the XML results file from the server. The idea would be to use that ID to build a link to the server hosted results clickable from the Jenkins test results page. We already embed links back to the Jenkins server from our test server (using JOB_NAME,BUILD_NUMBER), so adding this functionality would allow us to easily go backwards and forwards between the two servers.
It would be easy to create a file that holds the link/comment, or it could be added to the XML test results as a new element/attribute. If you think it's reasonable I'll add a feature request to the plugin for this.