Hello, I am trying to set up TestEngine but I ran into the following error while running command "dotnet run" to start the tests.
Unhandled exception. System.UnauthorizedAccessException: Access to the path '...' is denied.
--->System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
I set the variables in Power Shell to the email and password I use for PowerApps.
I understand this is an access/rights issue, but I don't know how to set the right access.
This is my personal machine I am using and TestEngine folder is stored locally.
Solved. The field "testPlanFile" in config.json needs to be given the file name also, not only the path to the folder: "/Users/User/PowerApps-TestEngine/samples/basicgallery/testPlan.fx.yaml"
I would raise it as an issue via their github repo directly - the TestEngine is an experimental feature and they won't be looking at these Power Apps forums for any support issues, so your best bet is to raise it directly:
I am running the command from where the project is located,
/Users/User/PowerApps-TestEngine/src/PowerAppsTestEngine .
I am running it on a Mac. I tried to run in as root and got the same error message.
Where are you running that command from - looks like the parent folder it is trying to access (...), is not an accessible folder under that command.
Also, if you are running CMD - have you elevated it? (Run as administrator)
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
mmbr1606
275
Super User 2025 Season 1