microsoft / PowerApps-TestEngine

MIT License
101 stars 29 forks source link

Test execution always fails #285

Closed juandedios199012 closed 1 year ago

juandedios199012 commented 1 year ago

When run the command dotnet run the result is fail But in the video the steps is completed

Steps to reproduce the behavior:

  1. dotnet run -l trace

RUNNING TEST SUITE: Basic Gallery

Browser configuration: {"Browser":"Chromium","Device":null,"ScreenWidth":null,"ScreenHeight":null,"ConfigName":null}

Browser setup finished

Browser context created

Test infrastructure setup finished

Desired URL: https://apps.powerapps.com/play/e/7a8d1a37-50cc-e549-87c5-d275e05a47ec/an/new_galleryapp_80360?tenantId=d17a9a7b-1347-4ed2-8ea7-6bc147eb9f10&source=testengine

Successfully navigated to target URL

[Error]: Please republish the app and try again!

[Error]: Encountered an error. See the debug log for this test suite for more information.


Debug Info

sessionID: 3ecf813b-86f8-4a2a-95c6-08abd93be11a

Test suite summary Total cases: 1 Cases passed: 0 Cases failed: 1

Microsoft.Playwright.PlaywrightException: 1 at Microsoft.Playwright.Transport.Connection.InnerSendMessageToServerAsync[T](String guid, String method, Dictionary2 dictionary, Boolean keepNulls) in /_/src/Playwright/Transport/Connection.cs:line 214 at Microsoft.Playwright.Transport.Connection.WrapApiCallAsync[T](Func1 action, Boolean isInternal) in //src/Playwright/Transport/Connection.cs:line 515 at Microsoft.Playwright.Core.Frame.EvaluateAsync[T](String script, Object arg) in //src/Playwright/Core/Frame.cs:line 555 at Microsoft.PowerApps.TestEngine.TestInfra.PlaywrightTestInfraFunctions.RunJavascriptAsync[T](String jsExpression) in E:\Cursos\PowerApps-TestEngine\PowerApps-TestEngine\src\Microsoft.PowerApps.TestEngine\TestInfra\PlaywrightTestInfraFunctions.cs:line 297 at Microsoft.PowerApps.TestEngine.PowerApps.PowerAppFunctions.CheckIfAppIsIdleAsync() in E:\Cursos\PowerApps-TestEngine\PowerApps-TestEngine\src\Microsoft.PowerApps.TestEngine\PowerApps\PowerAppFunctions.cs:line 87 at Microsoft.PowerApps.TestEngine.Helpers.PollingHelper.PollAsync[T](T value, Func2 conditionToCheck, Func1 functionToCall, Int32 timeout, ILogger logger, String errorMessage) in E:\Cursos\PowerApps-TestEngine\PowerApps-TestEngine\src\Microsoft.PowerApps.TestEngine\Helpers\PollingHelper.cs:line 77 at Microsoft.PowerApps.TestEngine.PowerFx.PowerFxEngine.UpdatePowerFxModelAsync() in E:\Cursos\PowerApps-TestEngine\PowerApps-TestEngine\src\Microsoft.PowerApps.TestEngine\PowerFx\PowerFxEngine.cs:line 141 at Microsoft.PowerApps.TestEngine.SingleTestRunner.RunTestAsync(String testRunId, String testRunDirectory, TestSuiteDefinition testSuiteDefinition, BrowserConfiguration browserConfig, String domain, String queryParams, CultureInfo locale) in E:\Cursos\PowerApps-TestEngine\PowerApps-TestEngine\src\Microsoft.PowerApps.TestEngine\SingleTestRunner.cs:line 132

Expected Behavior: Test run should pass
Actual Behavior: When run the command dotnet run the result is fail But in the video the steps is completed

image

arpavan commented 1 year ago

This is a duplicate of #265 that has been previously reported. Thanks for letting us know! A fix is in the works, do check back soon!