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

Bruno P. Kinoshita commented on JENKINS-12810:
----------------------------------------------

Hi Jaroslavas!

That's a very interesting feature, that I really would like to see available 
for all strategies. However, there's one technical limitation from JUnit and 
TestNG that I never could overcome. They are not extensible. Let me explain why 
that's important.

When you're using platform, sometimes your test plan has more than one 
platform. So the platform has to exist for each test case, and then I cannot 
add one field in plugin options configuration :-( that was my first try some 
time ago (there was an issue on that).

TAP can be extended with YAMLish, which looks a lot like JSON, but minus '{' 
and '}'. So with TAP, I expect you to include the platform for each case in 
your test result (like a test case in JUnit XML).

One alternative for JUnit and TestNG, is using tap4j JUnit Runner or TestNG 
Listener. This way, besides generating JUnit XML and TestNG XML, your tests 
will output TAP too. But you'll have to use the TAP file name strategy. 

Does it make sense? Do you have any other idea to enable platforms on JUnit and 
TestNG? 

Thanks :) 
                
> 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