Page 1 of 1

Compile Error When Running Tests

Posted: Fri Mar 22, 2019 1:15 pm
by Fergal
Ranorex 9.0.0 on Windows 7

When running tests Ranorex is regularly presenting errors such as the following:
You don't have the permission to access this file: C:\Users\.. [Path to Ranorex Solution]...\bin\Debug\...[Recorded module name]...Runner.exe.
and
Compile Error:Could not write to output file 'c:\Users\. [Path to Ranorex Solution]...\bin\Debug\...[Recorded module name]....Runner.exe' -- 'Access is denied. ' - C:\Users\. [Path to Ranorex Solution]...\bin\Debug\...[Recorded module name]....Runner.exe
The tests do run eventually, sometimes closing and reopening Ranorex is required.

The errors are usually displayed after trying to run a recorded module for the second time. I don't know what the cause is, but it seems almost as if Ranorex does not know that the previous test run has finished, even though it has finished and report generated.

Are there any known issues causing errors like these?

Thanks

Edit: not sure if it makes any difference, but just to add the tests are being recorded and ran on a VM.

Re: Compile Error When Running Tests

Posted: Mon Mar 25, 2019 10:09 am
by qwertzu
Hi Fergal,

Have you already tried running Ranorex as administrator?
It could also be that these issues appear if your solution is placed on a network drive.
If so, try to copy it locally to the machine (e.g. C drive) and run it from there.

regards, qwertzu

Re: Compile Error When Running Tests

Posted: Mon Mar 25, 2019 1:24 pm
by Fergal
Thanks very much qwertzu.

Yes, I'm running Ranorex and the AUT in admin mode. The Ranorex solution is on the C drive of the VM. I also uninstalled and reinstalled Ranorex but still have the issue.

Re: Compile Error When Running Tests

Posted: Tue Mar 26, 2019 2:29 pm
by qwertzu
hi,

you could try to temporarily turn off your antivirus software. Maybe, this is causing issues.
The interesting fact is, that the error does not appear regularly.
Have you already contacted the support?

regards, qwertzu

Re: Compile Error When Running Tests

Posted: Tue Mar 26, 2019 5:58 pm
by Fergal
Thanks again qwertzu. Will look at turning off antivirus software to see if that helps.

Have not contacted support yet, wanted to see if someone here on the forum was aware of the issue first.