apache poi - Selenium Webdriver - passing bulk data with excel sheet by header name- more than 50 fields of form -


i looking solution want pass 100s of records form having more 50 fields. did research testng data providers looks returns strings feel not feasible go data providers if not pass 50 string arguments specific function. did research read excel file , 2 ways either can go jxl or apache poi not able read data column header if can not go row , column number of approach have many fields need work with. reason behind in future 1 field has added single form going rework , again not feasible.

enter image description here

i have been following link: http://www.softwaretestinghelp.com/selenium-framework-design-selenium-tutorial-21/

for reading data column wise how not getting records based on column header. have other way achieve this.

thanks

  1. "testng data providers looks returns strings" - incorrect. allows return multidimensional array of type object. kind of object create own code. may choose read excel, encapsulate fields in 1 object (your own pojo) or multiple objects , method argument can have object types declared , not 50 strings.

  2. both jxl , poi libraries interact excel. if want have specific interaction excel, reading based on header, need write code - doesn't come out of box. if concerned addition of 1 more column , build indices first reading header column, put in relevant data structure , go reading data.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -