Variable File Uploads

Trying to upload a variable file but can’t figure it out. I am successful with individual file uploads, I just need to manually change the name on a daily basis - which I don’t want to do.

My test case steps are as follows:

The Send Keys > Absolute Path seems to work, but that won’t work obviously if I want to upload a file that has the current date on it. I don’t have an error log as I really just have no idea how to go about accomplishing such a thing.

Thank you!

I’m experimenting with it and getting an error with the below test case:


The error as follows:

02-05-2019 04:21:58 PM Test Cases/TestUpload

Elapsed time: 8.063s

Test Cases/TestUpload FAILED.


groovy.lang.MissingPropertyException: No such property: Xpath9 for class: Script1548972747494



at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(

at com.kms.katalon.core.main.TestCaseExecutor.runScript(

at com.kms.katalon.core.main.TestCaseExecutor.doExecute(

at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(

at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(

at com.kms.katalon.core.main.TestCaseExecutor.execute(

at com.kms.katalon.core.main.TestCaseMain.runTestCase(

at com.kms.katalon.core.main.TestCaseMain.runTestCase(

at com.kms.katalon.core.main.TestCaseMain$runTestCase$ Source)


And my variables:

I could probably help if I saw your script but since your logic is bound up in a UI session only you were witness to, it’s hard to follow what’s going on.

Any reason you can’t share your actual script (test case) code?