Styrow.dev
Question 6 of 14
TestNG Topic: General medium

What is @DataProvider annotation?

Question

What is @DataProvider annotation?

Answer

@DataProvider: Marks a method as supplying data for a test method. The annotated method must return an Object[][] where each Object[] can be assigned the parameter list of the test method. The @Test method that wants to receive data from this DataProvider