[ 
https://issues.jenkins-ci.org/browse/JENKINS-12810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159693#comment-159693
 ] 

Jaroslavas D. edited comment on JENKINS-12810 at 3/1/12 8:03 AM:
-----------------------------------------------------------------

Oh, I have found what it's supported from 3.0 version (JENKINS-9054).. only for 
TAP. How it should be used?

Is it possible to have it for JUnit?

Now, if I run _Test Plan_ with platform I get an exception
{code}
br.eti.kinoshita.testlinkjavaapi.TestLinkAPIException: (reportTCResult) - 
Parameter platformname OR platformid is required, but has not been provided
        at 
br.eti.kinoshita.testlinkjavaapi.BaseService.checkResponseError(BaseService.java:119)
        at 
br.eti.kinoshita.testlinkjavaapi.BaseService.executeXmlRpcCall(BaseService.java:92)
        at 
br.eti.kinoshita.testlinkjavaapi.TestCaseService.reportTCResult(TestCaseService.java:634)
        at 
br.eti.kinoshita.testlinkjavaapi.TestLinkAPI.reportTCResult(TestLinkAPI.java:1115)
        at 
hudson.plugins.testlink.TestLinkSite.updateTestCase(TestLinkSite.java:166)
        at 
hudson.plugins.testlink.result.AbstractJUnitResultSeeker.handleResult(AbstractJUnitResultSeeker.java:82)
        at 
hudson.plugins.testlink.result.JUnitCaseNameResultSeeker.seek(JUnitCaseNameResultSeeker.java:98)
        at 
hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:158)
        at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
        at 
hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703)
        at hudson.model.Build$RunnerImpl.build(Build.java:178)
        at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:473)
        at hudson.model.Run.run(Run.java:1408)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:238)
{code}

So, maybe it is a trivial problem of one additional field in plugin options 
configuration on jenkins job?
                
      was (Author: jar):
    Oh, I have found what it's supported from 3.0 version (JENKINS-9054).. only 
for TAP. How it should be used?

Is it possible to have it for JUnit?

No, if I run _Test Plan_ with platform I get an exception
{code}
br.eti.kinoshita.testlinkjavaapi.TestLinkAPIException: (reportTCResult) - 
Parameter platformname OR platformid is required, but has not been provided
        at 
br.eti.kinoshita.testlinkjavaapi.BaseService.checkResponseError(BaseService.java:119)
        at 
br.eti.kinoshita.testlinkjavaapi.BaseService.executeXmlRpcCall(BaseService.java:92)
        at 
br.eti.kinoshita.testlinkjavaapi.TestCaseService.reportTCResult(TestCaseService.java:634)
        at 
br.eti.kinoshita.testlinkjavaapi.TestLinkAPI.reportTCResult(TestLinkAPI.java:1115)
        at 
hudson.plugins.testlink.TestLinkSite.updateTestCase(TestLinkSite.java:166)
        at 
hudson.plugins.testlink.result.AbstractJUnitResultSeeker.handleResult(AbstractJUnitResultSeeker.java:82)
        at 
hudson.plugins.testlink.result.JUnitCaseNameResultSeeker.seek(JUnitCaseNameResultSeeker.java:98)
        at 
hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:158)
        at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
        at 
hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703)
        at hudson.model.Build$RunnerImpl.build(Build.java:178)
        at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:473)
        at hudson.model.Run.run(Run.java:1408)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:238)
{code}

So, maybe it is a trivial problem of one additional field in plugin options 
configuration on jenkins job?
                  
> JUnit test results are getting wrongly attached to all the test cases
> ---------------------------------------------------------------------
>
>                 Key: JENKINS-12810
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-12810
>             Project: Jenkins
>          Issue Type: Bug
>          Components: testlink
>    Affects Versions: current
>            Reporter: Vignesh Senapathy
>            Assignee: Bruno P. Kinoshita
>             Fix For: current
>
>         Attachments: 1.jpg, 2.jpg, 3.jpg, last_tc.png, 
> screenshot20120228152415.jpg, screenshot20120228152511.jpg, tc1.png, tc2.png, 
> testlink-3.1-alpha2.hpi
>
>
> Hi,
> I am using the Testlink Jenkins plugin and when i run my jobs in Jenkins the 
> Junit Test results are getting generated. This in turn calls the Testlink xml 
> rpc and attaches the results to the test case, but the test results are 
> attached wrongly. The 1st test case has 6 results, the next has 5 and so on 
> and the last one has 1 test result attached to it. I dont know if it is bug 
> which is causing this. Please let me know what seems to be the problems. Also 
> the execution flags are correctly rendered in this. which ever test case 
> fails is marked as failed and which passed is marked as passed.
> Also I have one custom field which maps to the test suite name and test 
> classname.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to