microsoft / PowerApps-TestEngine

MIT License
93 stars 28 forks source link

Unable to run testplans #260

Closed kSethi1803 closed 11 months ago

kSethi1803 commented 1 year ago

I used basic gallery sample solution provided in repo and set following parameters:

config.dev.json : environment id, tenant id,tesplan location tesplan.fx.yaml : app logical name and user cred

After running I get below error:

[Critical Error]: [Error]: Invalid log file path
System.ArgumentException: [Error]: Invalid log file path
   at Microsoft.PowerApps.TestEngine.Reporting.TestLogger.WriteToLogsFile(String directoryPath, String filter) in C:\PowerApps-TestEngine\src\Microsoft.PowerApps.TestEngine\Reporting\TestLogger.cs:line 59
   at Microsoft.PowerApps.TestEngine.TestEngine.RunTestAsync(FileInfo testConfigFile, String environmentId, Guid tenantId, DirectoryInfo outputDirectory, String domain, String queryParams) in C:\PowerApps-TestEngine\src\Microsoft.PowerApps.TestEngine\TestEngine.cs:line 131
   at Program.<Main>$(String[] args) in C:\PowerApps-TestEngine\src\PowerAppsTestEngine\Program.cs:line 194

Please suggest

clairewu0218 commented 1 year ago

Hi, based on the log, there seems to be something wrong with your "outputDirectory" in config.dev.json. Could you check the path and make sure you have write permissions to the path?

bentleyjensen commented 1 year ago

~~I'm having the same issue. I do have write permissions to the directory. I tried using relative and absolute paths as well, with and without the trailing slash. The setting says directory but the error says log file so I also tried specifying a non-existent and an existing file as well, all with the same error.~~

My issue was misspelling browserConfigurations as browserConfiguration in the test YAML.