Data provider mismatch in Selenium with TestNG
问题 I am writing the below code in selenium and below error is showing, please let me know where is the issue. import org.testng.annotations.DataProvider; import org.testng.annotations.Test; public class testngexcel { public static ExcelReader excel = null; @Test(dataProvider = "newdata") public void testData(String username, String password, Integer age) { System.out.println(username + " - " + password + " - " + age); } @DataProvider(name = "newdata") public static Object[][] getData() { if