I'm working with excel sheets for that i'm using data Provider concept. For less number of columns/data my code is working. But for more number of columns or huge data i'm getting StackOverFlowError.
I tried the same code by deleting some columns in same Excel sheet,Error is resolved. But when i'm adding new columns to that sheet i'm getting same error.
public class TestCase1{
@Test(dataProvider = "getData")
public void Test1(LinkedHashMap<String, List<Object>> map){
System.out.println("Test case is passed");
}
@DataProvider
public Object[][] getData() throws Exception {
String path = "sheetForTest.xlsx";
Object[][] testObjArray =
ExcelManager.getExcelSingleUnitsAndMultipleValues(path,"Excel_Sheet1");
return (testObjArray);
}
}