Closed spookymattress closed 1 year ago
Did you try on 21.1? I do remember that some version was shipped with a wrong dotnet DLL in the client assemblies.
Yes, did that and that failed as well.
But, the problem arises if you have an old version of BCContainerHelper installed and are reusing the container, and only restoring/backup the database on each build. As our container initially was created with an old version of BCContainerHelper, the two PS files (ClientContext.ps1, PsTestFunctions.ps1) in PsTestTool dir were copied in from an old version, and that did not work when running the tests. So, even if we are using the newest version of BCCH, the two PS files in PsTestTool is never overwritten when re-using the container.
As a reference
I faced the same issue today and performed following steps to resolve:
Got it, the problem is really that I cannot replace the files (DLLs) as these are locked. Updating containerhelper and recreating the container should fix the issue.
Thanks
Describe the issue Getting an error when running tests using the powershell script "Run-TestsInBCContainer" on Docker BC21.0 DK.
Tests runs fine in the browser using AL Test Tool
Scripts used to create container and cause the issue
Full output of scripts
Screenshots
Screenshot where Run-TestsInBCContainer is run directly from PS.
Additional context Fails every time, started failing in DevOps Pipelines, also fails when running script from powershell. Using new bc21 licensefile in the new .bclicense format. Looks to be the same issue as #2740