}
// Test method calling dataprovider (executes 3 times)
@Test(dataProvider = "testSumInput")
public void testSum(int a, int b) {
System.out.println("@Test : testSum()");
int result = service.sum(a, b);
Assert.assertEquals(result, a + b);
}
In Jenkins, I am using the result seeking strategy as - TestNG method name and data provider name
In Testlink I have defined one test case with two custom fields (since Testlink does not allow me to create test cases with the same name 3 times).
When I run the test, I get a single pass or fail. I want to get 3 results (pass / fail) since I have 3 rows in my Data Provider. How to achieve this? If anybody has tried using Data Provider with more than one set of data, please let me know how you set it up.
Thanks.