Relative path issue in Upload File keyword

Hi,

How do I provide relative path to Upload File keyword? as it accepts only absolute path!

1 Like

Hi,
These commands below is working for me:

String userDir = System.getProperty("user.dir")
String filePath = userDir + "Your_file_path.png"

“System.getProperty” will give you the path to your Katalon project.

5 Likes

Hey nhi
Can you explain descriptive, what value we pass for System.getProperty(“user.dir”__)
is that folder name or need to give full directory?

Thanks for this post