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

Vignesh Senapathy commented on JENKINS-12810:
---------------------------------------------

Hi Bruno,

I am using JUnit project with Selenium. JUnit reports are generated once the 
scripts are run. I am not using TAP. I am just trying to attach the results in 
the JUnit results into each of the test case in Testlink.

Below is the scenario:

Have JUnit automated test scripts
Have a job in Jenkins to run those scripts using ANT
Once the job finishes testlink XMP-RPC scans through the test results which has 
more than one Test class name in it. But the attachments which gets passed to 
Testlink is wrongly attached meaning 1st testcase in the test execution has 6 
test results, then the next one has 5 and so on.

Have one key custom field which matches to the test class name in the test 
results XML. 

In the image last_tc.png you can see I have 6 test cases in it.

I hope this helps.
                
> 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: last_tc.png, tc1.png, tc2.png
>
>
> 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