I am trying to fetch test data from the excel sheet but it reads the integer value as decimal. Every integer value comes up with a decimal followed by zero.
- I have used apache poi for data driven testing.
- Method to fetch String values as well as Integer values from the excel sheet is common.
- Have attached the screenshots of the excel sheet data, method for fetching test data from the excel sheet and of the Testcase.
Please suggest.



toStringbut format the value properly based on the cell type?Cell.toString()is not the correct way to get cell values as strings. It gets the stored raw values as strings instead the formatted values as Excel shows them. UseDataFormatterfor this task. See stackoverflow.com/questions/7608511/….