ExcelFactory file not found when getting default sheet with header

Operating System : Windows 10

Katalon Studio Version 6.2

Katalon Studio logs

2019-08-08 14:13:04.877 INFO  c.k.katalon.core.main.TestCaseExecutor   - --------------------
2019-08-08 14:13:04.880 INFO  c.k.katalon.core.main.TestCaseExecutor   - START Test Cases/IF - Test avec Data excel

2019-08-08 14:13:05.925 DEBUG testcase.IF - Test with Data excel       - 1: excelTestCase = getExcelDataWithDefaultSheet("C:\Katalon\WebTest\ressources\TestCase.xlsx", "Case", true)
2019-08-08 14:13:06.617 ERROR c.k.katalon.core.main.TestCaseExecutor   - ❌ Test Cases/IF - Test avec Data excel FAILED.
java.io.FileNotFoundException: C:\Katalon\WebTest\ressources\TestCase.xlsx

Environment (for Web testing)

Chrome but doesn’t matter for this bug.

Steps to reproduce

In my test script, using this line :

> ExcelData excelCasTest = ExcelFactory.getExcelDataWithDefaultSheet("C:\\Katalon\\WebTest\\ressources\\TestCase.xlsx", "Case", **true**)

If the function last parameter is true, the file is not found. The parameter change if we read the header or not.

Expected Behavior

File not found.

Actual Behavior

File should be found.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.