TestNG: More than one @DataProvider for one @Test
问题 I'm using TestNG for Eclipse . Is it possible to give two data providers step by step to the same test-function? I could put both providers in one, but that is not what I want. I need (not like in this example) to generate independently data. @DataProvider(name = "dataSet1") public Object[][] createDataX() { return new Object[][] { { 1, 1 }, { 2, 2 } }; } @DataProvider(name = "dataSet2") public Object[][] createDataY() { return new Object[][] { { 0, 0 }, { 3, 3 } }; } I want to give both