DataDriven testing with TestNG using Apache POI in Selenium WebDriver
问题 I am new to TestNG framework. Please guide how to parameterise the test cases using Apache POI(Excel). I have a code to read from second row from Excel. public class spreadData { private transient Collection data = null; public spreadData(final InputStream excelInputStream) throws IOException { this.data = loadFromSpreadsheet(excelInputStream); } public Collection getData() { return data; } private Collection loadFromSpreadsheet(final InputStream excelFile) throws IOException { HSSFWorkbook