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

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

Hi Nikolay!

> I'm using testlink plugin for my project. It is very useful and easy to use. 
> Thanks to the authors.

Glad to hear that the plug-in is being ! Thanks!

> 1.As I understand, test results from testng-results.xml are mapped to the 
> tests only by Java Class Custom field. Do I have any way to map them by 
> test-methode?

In version 3.1 you'll have a way for using test-methods to map to your tests in 
TestLink. Here's the issue related to this feature: 
https://issues.jenkins-ci.org/browse/JENKINS-11894

> 2.And one more question: I'm using dataproviders in my tests. Do I have any 
> mechanism to map the pairs (test-methode,dataprovider Object[]) to the tests.

Give me some time to investigate if that's possible. It all depends on whether 
TestNG XML contains information about the data provider used or not. If so, in 
3.1 we have a new concept: Result Seeking Strategies. It implements the 
Strategy Pattern (http://www.vincehuston.org/dp/strategy.html) and is an 
extension point. So now it's quite easy to add new result seeking strategies. 

Get back to you soon.

Thanks!
Bruno
                
> Can't assign testng results to the testlink by Test Methode  Name(only by 
> Java Class )
> --------------------------------------------------------------------------------------
>
>                 Key: JENKINS-12916
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-12916
>             Project: Jenkins
>          Issue Type: Bug
>          Components: testlink
>         Environment: WinXP: Jenkins (org.jenkins-ci.main:jenkins-war:1.449), 
> Jenkins TestLink Plugin (3.0.2), TestNG Lib (6.4),TestLink 1.9.3 (Prague) 
>            Reporter: Nikolay Myakushkin
>            Assignee: Bruno P. Kinoshita
>
> I'm using testlink plugin for my project. It is very useful and easy to use. 
> Thanks to the authors. But I have some suggestion. 
> 1.As I understand, test results from testng-results.xml are mapped to the 
> tests only  by Java Class Custom field. Do I have any way to map them by 
> test-methode?
> 2.And one more question: I'm using dataproviders in my tests. Do I have any 
> mechanism to map the pairs (test-methode,dataprovider Object[]) to the tests.
> I mean if I have 
> @DataProvider(name = "test1")
> public Object[][] createData1() {
>  return new Object[][] {
>    { "Cedric", new Integer(36) },
>    { "Anne", new Integer(37)},
>  };
> }
>  
> //This test method declares that its data should be supplied by the Data 
> Provider
> //named "test1"
> @Test(dataProvider = "test1")
> public void verifyData1(String n1, Integer n2) {
>  AssertJUnit.assertTrue( n1.equals("Anne"));
> }
> And I have 2 test in Testlink: 1. for { "Cedric", new Integer(36) }, 2. for  
> { "Anne", new Integer(37)}.
> And the results should map to each test

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