DeleteFiles User code always return a "No files have been found"

Ask general questions here.
coronav
Posts: 1
Joined: Tue Jul 21, 2020 5:58 am

DeleteFiles User code always return a "No files have been found"

Post by coronav » Wed Jul 29, 2020 8:06 am

Hi

I'm currently working on test suite that will delete a certain file in the output folder and I happened to stumble on "DeleteFiles" user code in the "FileLibray".
However, the code will always return a "No files have been found" using the absolute or relative path for "String Path" and the filename for the "String Pattern".

Did I miss something in the Usercode?
Is there an alternative way to do this?

Thank you so much for the help!

Ranorex version: 9.3.2

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6180
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: DeleteFiles User code always return a "No files have been found"

Post by odklizec » Mon Aug 03, 2020 10:35 am

Hi,

Have you tried to run the test as Administrator? Also, please post Ranorex report and ideally, also entire test suite (or at very least a small sample solution). Thanks.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration