mhm, i am not familiar with mobile testing, so you can call me stupid.
for my eyes, you are testing a certain application on a mobile device.
but the file to upload is on your PC from where you start the test.
something does not fit here…
perhaps the file should be on the mobile device also?
I have the same guess as @bionel . Can you please try upload the same file to web browser (Firefox, Chrome, etc) first to test whether your file is valid or uploadFile by Katalon is working well? Follow this doc or this video. As well, please help provide us the log you receive.
I think, you must do a preprocessing: you have to somehow transfer the file from your Windows’ C:\Users\UserName\Desktop\TEST.pdf into the Mobile device’s "Files" folder. Only after you have prepared the fixture file, you can test uploading the file from the Mobile devices’ "Files" folder.
How to prepare the file on the Movile devices’ “Files” folder? ---- I don’t know. Possibly you want to bundle the fixture PDF file in the APK file?
Wherevere you like, is your device. C:\Users\UserName\Desktop\TEST.pdf cannot be a valid path, since there is no way to mount your PC drive into the mobile device.
E.g for my android device, i am opening the Files application, go to whatever folder, long tap on a certain file to select it, and from More > Details I can see what is the path.
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: unknown error: path is not absolute: /storage/emulated/0/Download/dummy.pdf
are you sure that is the right absolute path, from your device point of view?
you are not reading fully our hints, so we cannot help you anymore.
the only think i can suggest right now is, change your username into discover.appium
Hi @Elly_Tran@vu.tran, @Jass Has anyone from Katalon dev team tried the upload file in Android mobile browser. Kindy confirm. Appreciate your support
In the below thread it is mentioned as: @Zarashima Unfortunately, ‘Upload File’ keyword can only access a file from a local machine, so it will not understand device’s path in case you try to upload it from your mobile device