I'm using an excel sheet to read some data for my framework and it is working properly locally but on Jenkins getting the below exception.
java.io.FileNotFoundException: /home/ec2-user/workspace/sample-automation-suite\src\main\resources\NewData.xls (No such file or directory)
Using the filepath as : String path = "\src\main\resources\NewData.xls"; String filePath = System.getProperty("user.dir") + path;
Can someone please suggest as what needs to be done to correct the file path it is reading here as /home/ec2-user/workspace/ in the start?