2 Replies Latest reply on Feb 28, 2013 6:49 AM by sathiya seelan

    Tests are executed n-times if you use a @DataProvider with n-Parameter sets

    Stefan Forner Newbie

      I'm using Arquillian 1.0.3 with the Websphere 8 Remote Container and TestNG 6.8.

      If made some tests without a DataProvider and all went good.

      If I use a DataProvider with n-Parameter tuples the tests will be executed n-times.

       

      @DataProvider(name = "myProvider")

          public Object[][] createContextTestData() throws Exception {

              Object[][] testDataArray = new Object[][]{{"First"},{"Second"},{"Third"}};

              return testDataArray;

          }

       

      @Test(dataProvider = "myProvider")

          public void iterationTest(String testContext) {

              System.out.println("#############################################################" + testContext);

          }

       

      Is there support for @DataProvider for parameterized tests with Arquillian and TestNG?