Hi all,

I am writing a TestResultAction (custom implementation of 
hudson.task.test.*) and have been using the JUnit implementation as a bit 
of a reference.

I think The backend is pretty much all there, but I can't work out how the 
JUnit implementation hooks up the UI.

if I don't provide MyCustomTestResultAction/index.jelly then stapler throws 
a wobbly when accessing joburl/testReport/

Stapler processed this HTTP request as follows, but couldn't find the 
resource to consume the request

-> evaluate(<hudson.model.Hudson@a13863> 
:hudson.model.Hudson,"/job/test/7/testReport")

-> 
evaluate(((StaplerProxy)<hudson.model.Hudson@a13863>).getTarget(),"/job/test/7/testReport")

-> evaluate(<hudson.model.Hudson@a13863>.getJob("test"),"/7/testReport")

-> evaluate(<hudson.model.FreeStyleProject@1341000[test]> 
:hudson.model.FreeStyleProject,"/7/testReport")

-> 
evaluate(<hudson.model.FreeStyleProject@1341000[test]>.getDynamic("7",...),"/testReport")

-> evaluate(<test #7> :hudson.model.FreeStyleBuild,"/testReport")

-> evaluate(<test #7>.getDynamic("testReport",...),"")

-> evaluate(<myco.MyCustomTestResultAction@eb9c67> 
:myco.MyCustomTestResultAction,"")

-> No matching rule was found on <myco.MyCustomTestResultAction@eb9c67> for ""


<org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResultAction@1b3105f>
 has the following URL mappings, in the order of preference:


   1. hudson.tasks.test.AbstractTestResultAction.doGraph(...) for url=/graph/...
      2. hudson.tasks.test.AbstractTestResultAction.doGraphMap(...) for 
url=/graphMap/...
      3. TOKEN.groovy for url=/TOKEN/...
      4. VIEW.jelly for url=/VIEW
      5. hudson.tasks.test.AbstractTestResultAction.owner for url=/owner/...
      6. myco.MyTestResultAction.getResult() for url=/result/...
      7. myco.MyCucumberTestResultAction.getResult() for url=/result/...
      8. myco.MyCucumberTestResultAction.getFailCount() for url=/failCount/...
      9. myco.MyCucumberTestResultAction.getSkipCount() for url=/skipCount/...
      10. myco.MyCucumberTestResultAction.getTotalCount() for 
url=/totalCount/...
      11. hudson.tasks.test.AbstractTestResultAction.getDisplayName() for 
url=/displayName/...
      12. hudson.tasks.test.AbstractTestResultAction.getApi() for url=/api/...
      13. hudson.tasks.test.AbstractTestResultAction.getUrlName() for 
url=/urlName/...
      14. hudson.tasks.test.AbstractTestResultAction.getIconFileName() for 
url=/iconFileName/...
      15. hudson.tasks.test.AbstractTestResultAction.getBuildHealth() for 
url=/buildHealth/...
      16. hudson.tasks.test.AbstractTestResultAction.getFailureDiffString() for 
url=/failureDiffString/...
      17. hudson.tasks.test.AbstractTestResultAction.getPreviousResult() for 
url=/previousResult/...
      18. hudson.tasks.test.AbstractTestResultAction.getFailedTests() for 
url=/failedTests/...
      19. java.lang.Object.getClass() for url=/class/...
   
If I provide an the index.jelly that I can do all manner of normal things - but 
as I am extending AbstractTestResultAction why isn't the 
AbstractTestResultAction's jelly used.  I would have thought I would only need 
to override the bits that I needed - and as far as I can tell the 
hudson.task.junit.TestResultAction doesn't provide any jelly views so I am 
struggling to work out how it works.


Can anyone shed any light on this?


Thanks


James

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to