Forum Discussion

msalvador's avatar
Frequent Contributor
5 years ago

Test Execute, unable to open the file

Hi guys,

I try to run test execute using the icon and option run.

But after a bite, I have the following error :"unable to open the file".

File is present in the folder and is not read only.

Any suggestions?

  • Wamboo's avatar
    5 years ago


    If You want to work with Project Script files You need to use an absolute path.

    You can get path to You to project with this method: aqFileSystem.GetCurrentFolder();


    let pathToFile = aqFileSystem.GetCurrentFolder();
    let writeToFile = aqFile.WriteToTextFile(
      pathToFile + "\\script\\" + fileName + ".js",
      aqFile.ctUTF8, true