-
Bug
-
Resolution: Not A Defect
-
Major
-
None
-
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)
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[][] {
{ "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
Hello, Bruno,
Sorry, I didnt have time to check alpha release, I was in vacation.
Today, I have tried to check assigned test results by test methode name. But testlink plugin(3.1) didn't find test results in testng-results.xm (Found 0 test result(s).)
Below is console log.
Preparing TestLink client API.
Using TestLink URL: http://localhost:8000/lib/api/xmlrpc.php
Found 25 automated test cases in TestLink.
Sorting automated test cases by TestLink test plan execution order.
Executing single Build Steps.
Executing iterative Build Steps.
Looking for the test results of TestLink test cases.
Looking for test results in TestNG suites.
Found 0 test result(s).
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/target/surefire-reports/testng-results.xml
Saving reports...
Processing 'C:\dev\JENKINS_HOME\jobs\Manager\builds\2012-03-12_17-52-36\testng\testng-results.xml'
TestNG Reports Processing: FINISH