I have a test suite that links to a csv file stored on my local machine to check that certain values/string are as expected when I run tests. I am using Selenium(java) that I have linked with maven to run in a Jenkins build. I have written a method to read in the csv as a 2D array. This works fine with the file path /home/usr/location
However I need to place the csv file on many VMs to test production environments. When I try to change to a relative path such as ~/location
I get a file not found error.
I have all the correct permissions