Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Test Engine - [Error]: Access to the path '...' is denied

(0) ShareShare
ReportReport
Posted on by 14

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.

Categories:
  • Verified answer
    gabo773 Profile Picture
    14 on at
    Re: Test Engine - [Error]: Access to the path '...' is denied

    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"

  • iAm_ManCat Profile Picture
    18,206 Most Valuable Professional on at
    Re: Test Engine - [Error]: Access to the path '...' is denied

    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:

    Issues · microsoft/PowerApps-TestEngine (github.com)

  • gabo773 Profile Picture
    14 on at
    Re: Test Engine - [Error]: Access to the path '...' is denied

     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. 

  • iAm_ManCat Profile Picture
    18,206 Most Valuable Professional on at
    Re: Test Engine - [Error]: Access to the path '...' is denied

    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)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1