Upload File Step Fail on Test Case While Running Katalon on Docker


Hi, I’ve test step to upload file. I used function upload like this :

static String path = RunConfiguration.getProjectDir() + '/Data Files/'
public static uploadFile(TestObject object, String file){
	path = path.replace('/', '\\');
	WebUI.uploadFile(object, path+file);

And I stored my file on Data Files folder. When I running on my local machine (Windows), nothing wrong happens. But, when I running on Docker, The error said that cannot find my file :

org.openqa.selenium.InvalidArgumentException: invalid argument: File not found : \tmp\katalon_execute\project\Data Files\expense.jpg

Can someone explain to me how to handle it? Thanks!


@ThanhTo could u help me, sir?