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

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

Hi Victor!

This feature was planned to be included in testlink-2.0, but I never found a 
suitable way to implement platforms in JUnit or TestNG. 

The issue is that you can have the following scenario:

- 10 tests with platform A
- 5 tests with platform B
- 1 test with platform C
- 40 tests without any platform
- 20 tests with platforms A, B and C

In a scenario like this, it's not possible to configure the platform before the 
job execution, i.e. we must define the platform per test result. So it would 
make sense to change the result seeking strategies to look for platforms (like 
TAP file name strategy does).

However, TestNG and JUnit are not extensible test formats. In you tests there 
is no standard way to include extra information, like an extra XML entity or 
attribute with the platform. We could try output something in the test output, 
and maybe that would be put in the <system-out> entity value of TestNG, but the 
tool could change, breaking jobs in Jenkins. And JUnit has no de-facto 
standard, so you can find tools that output different formats of JUnit XML's.

Do you have something in mind for overcoming this? 

BTW, there is a way to output TAP from TestNG and JUnit, enabling platforms in 
the plug-in ;-)

Hope that helps, 
Bruno


                
> Add support to platforms in TestLink plug-in (JUnit & TestNG)
> -------------------------------------------------------------
>
>                 Key: JENKINS-13172
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-13172
>             Project: Jenkins
>          Issue Type: Improvement
>          Components: testlink
>    Affects Versions: current
>         Environment: Centos
>            Reporter: Victor Martinez
>            Assignee: Bruno P. Kinoshita
>              Labels: plugin
>         Attachments: Testlink_PlatformName.PNG
>
>
> Added support to platforms in the JUnit & TestNG test results seeker.
> For instance to have a specific platform 
> Source to be changed:
>   src\main\resources\hudson\plugins\testlink\TestLinkBuilder\config.jelly
>   src\main\java\hudson\plugins\testlink\AbstractTestLinkBuilder.java
>   src\main\java\hudson\plugins\testlink\TestLinkBuilder.java
>   src\main\java\hudson\plugins\testlink\TestLinkSite.java

--
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