Hi, I have automation test cases written in Java + Selenium + TestNG. These tests are run in Jenkis and results are integrated to Testlink using Testlink plugin. I have Data Providers to provide data to the test methods. For example,
// The dataprovider provides 3 data sets (hence 3 test cases) @DataProvider public Object[][] testSumInput() { return new Object[][] { { 5, 5 }, { 10, 10 }, { 20, 20 } }; } // 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. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/471404b6-afb3-4302-9994-dc3b7a0823f8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.