HodorNV / ALOps

ALOps
59 stars 24 forks source link

ALOpsAppTest@1 Failing - Unable to find type [AuthenticationScheme] #623

Closed ptrk-tr closed 1 year ago

ptrk-tr commented 1 year ago

Hi,

running ALOps 1.455.3577 we still seem to be having the issues reported in #622.

here are the steps and a log from a run I started this morning. We changed nothing in the pipeline itself and it seems to be failing on this step since Thursday. This is running in a Release Pipeline, instead of a Build Pipeline, don't know if that makes any differences. The pipeline itself just publishes apps to a dedicated BC instance and runs tests there.

Targeted BC Version is 21.3 OnPrem, no Docker.

If you need more info, please let me know @AdminHodor or @waldo1001.

steps:
- task: Hodor.hodor-alops.alopsapptest.ALOpsAppTest@1
  displayName: 'Run Tests'
  inputs:
    nav_serverinstance: Build
    companyname: '***'
    bc_username: '$(alops-build-user)'
    bc_password: '$(alops-build-password)'
    bc_webclient_url: 'https://***/Build/'
    import_testtoolkit: false
    import_action: Skip
    testpage: 130455
    extensionid: '261aa5de-305d-4033-b202-ef39dff95f22'
    resultfilename: 'TestResults-$(Release.ReleaseName).xml'

Log:

2023-03-27T06:43:56.9037743Z ##[section]Starting: Run Tests
2023-03-27T06:43:56.9141893Z ==============================================================================
2023-03-27T06:43:56.9142223Z Task         : ALOps App Test
2023-03-27T06:43:56.9142467Z Description  : Run AL-TestSuite for Business Central
2023-03-27T06:43:56.9142721Z Version      : 1.455.3577
2023-03-27T06:43:56.9142909Z Author       : Hodor
2023-03-27T06:43:56.9143178Z Help         : Run Business Central Test-Suite and collect results.
2023-03-27T06:43:56.9143493Z ==============================================================================
2023-03-27T06:43:57.6914171Z *** Validate configuration
2023-03-27T06:43:57.7615259Z *** Task Inputs:
2023-03-27T06:43:57.7678379Z 
2023-03-27T06:43:57.7809035Z name                                                value
2023-03-27T06:43:57.7810677Z ----                                                -----
2023-03-27T06:43:57.7812958Z usedocker                                           False
2023-03-27T06:43:57.7814544Z fixed_tag                                                
2023-03-27T06:43:57.7816525Z nav_serverinstance                                  Build
2023-03-27T06:43:57.7818141Z tenant                                                   
2023-03-27T06:43:57.7819943Z companyname                        ***
2023-03-27T06:43:57.7821510Z profile                                                  
2023-03-27T06:43:57.7823412Z bc_username                                      TESTUSER
2023-03-27T06:43:57.7825369Z bc_password                                     ***
2023-03-27T06:43:57.7827003Z bc_authentication                         NavUserPassword
2023-03-27T06:43:57.7828951Z bc_webclient_url          https://***/Build/
2023-03-27T06:43:57.7830912Z testfilter                                               
2023-03-27T06:43:57.7832921Z disabledtests                                            
2023-03-27T06:43:57.7834458Z show_available_tests                                 True
2023-03-27T06:43:57.7836400Z import_testtoolkit                                  False
2023-03-27T06:43:57.7838264Z import_action                                        Skip
2023-03-27T06:43:57.7839729Z testpage                                           130455
2023-03-27T06:43:57.7841190Z testsuite                                         DEFAULT
2023-03-27T06:43:57.7842673Z extensionid          261aa5de-305d-4033-b202-ef39dff95f22
2023-03-27T06:43:57.7844436Z installaltesttool                                   False
2023-03-27T06:43:57.7845926Z failed_test_action                                Warning
2023-03-27T06:43:57.7847680Z override_finsql_path                                     
2023-03-27T06:43:57.7849418Z resultfilename                TestResults-Release-293.xml
2023-03-27T06:43:57.7851162Z testrunnercodeunitid                                     
2023-03-27T06:43:57.7851408Z 
2023-03-27T06:43:57.7876701Z 
2023-03-27T06:43:57.7888144Z 
2023-03-27T06:43:57.8101067Z *** For documentation, please visit   : https://www.alops.be/documentation
2023-03-27T06:43:57.8104654Z 
2023-03-27T06:43:58.0925058Z *** ALOps License:
2023-03-27T06:43:58.0946158Z   * Licensed To: *** (RepositoryPer5 License)
2023-03-27T06:43:58.0950077Z 
2023-03-27T06:43:58.1082541Z *** Importing required PS-Functions
2023-03-27T06:43:58.1370255Z *** Working folder: C:\vsts-agent-win-x64-2.196.2\_work\r3\a
2023-03-27T06:43:58.1378155Z ***
2023-03-27T06:43:58.3231852Z ##[error]At C:\vsts-agent-win-x64-2.196.2\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.455.3577\ps_modules\BCAppTest\6caab73c-c883-46ae-8e31-dd7566417f13.ps1:18 char:41
+         $this.Initialize($serviceUrl, ([AuthenticationScheme]::AzureA ...
+                                         ~~~~~~~~~~~~~~~~~~~~
Unable to find type [AuthenticationScheme].

At C:\vsts-agent-win-x64-2.196.2\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.455.3577\ps_modules\BCAppTest\6caab73c-c883-46ae-8e31-dd7566417f13.ps1:22 char:41
+         $this.Initialize($serviceUrl, ([AuthenticationScheme]::AzureA ...
+                                         ~~~~~~~~~~~~~~~~~~~~
Unable to find type [AuthenticationScheme].

At C:\vsts-agent-win-x64-2.196.2\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.455.3577\ps_modules\BCAppTest\6caab73c-c883-46ae-8e31-dd7566417f13.ps1:26 char:41
+         $this.Initialize($serviceUrl, ([AuthenticationScheme]::UserNa ...
+                                         ~~~~~~~~~~~~~~~~~~~~
Unable to find type [AuthenticationScheme].

At C:\vsts-agent-win-x64-2.196.2\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.455.3577\ps_modules\BCAppTest\6caab73c-c883-46ae-8e31-dd7566417f13.ps1:30 char:41
+         $this.Initialize($serviceUrl, ([AuthenticationScheme]::UserNa ...
+                                         ~~~~~~~~~~~~~~~~~~~~
Unable to find type [AuthenticationScheme].

At C:\vsts-agent-win-x64-2.196.2\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.455.3577\ps_modules\BCAppTest\6caab73c-c883-46ae-8e31-dd7566417f13.ps1:34 char:41
+         $this.Initialize($serviceUrl, ([AuthenticationScheme]::Window ...
+                                         ~~~~~~~~~~~~~~~~~~~~
Unable to find type [AuthenticationScheme].

At C:\vsts-agent-win-x64-2.196.2\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.455.3577\ps_modules\BCAppTest\6caab73c-c883-46ae-8e31-dd7566417f13.ps1:38 char:41
+         $this.Initialize($serviceUrl, ([AuthenticationScheme]::Window ...
+                                         ~~~~~~~~~~~~~~~~~~~~
Unable to find type [AuthenticationScheme].

At C:\vsts-agent-win-x64-2.196.2\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.455.3577\ps_modules\BCAppTest\6caab73c-c883-46ae-8e31-dd7566417f13.ps1:41 char:39
+     Initialize([string] $serviceUrl, [AuthenticationScheme] $authenti ...
+                                       ~~~~~~~~~~~~~~~~~~~~
Unable to find type [AuthenticationScheme].

At C:\vsts-agent-win-x64-2.196.2\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.455.3577\ps_modules\BCAppTest\6caab73c-c883-46ae-8e31-dd7566417f13.ps1:43 char:29
+         $this.addressUri = [ServiceAddressProvider]::ServiceAddress($ ...
+                             ~~~~~~~~~~~~~~~~~~~~~~
Unable to find type [ServiceAddressProvider].

At C:\vsts-agent-win-x64-2.196.2\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.455.3577\ps_modules\BCAppTest\6caab73c-c883-46ae-8e31-dd7566417f13.ps1:163 char:82
+ ... edControls | Where-Object { $_ -is [ClientStaticStringControl] } | Se ...
+                                         ~~~~~~~~~~~~~~~~~~~~~~~~~
Unable to find type [ClientStaticStringControl].

At C:\vsts-agent-win-x64-2.196.2\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.455.3577\ps_modules\BCAppTest\6caab73c-c883-46ae-8e31-dd7566417f13.ps1:169 char:88
+ ... edControls | Where-Object { $_ -is [ClientStaticStringControl] } | Se ...
+                                         ~~~~~~~~~~~~~~~~~~~~~~~~~
Unable to find type [ClientStaticStringControl].

Not all parse errors were reported.  Correct the reported errors and try again.
2023-03-27T06:43:58.3495299Z ##[section]Finishing: Run Tests
ptrk-tr commented 1 year ago

Can I get any update on this issue?

It's been over a week now that we can't use any CI/CD pipeline that contains test runs, which isn't ideal at all. The error hasn't changed but seeing as I'm the only one still reporting this it must be either an edge case or something nobody can reproduce I guess.

Anyhow, thanks in advance and kind regards.

AdminHodor commented 1 year ago

Dear @ptrk-tr,

Could you please try v1.455.3596 ? It could take us a couple of tries to get right since we are not able to replicate this on our side.

Kind regards,

ptrk-tr commented 1 year ago

@AdminHodor tested with v1.455.3600 and it works like a charm again, thanks for your efforts! I'll close this issue.

Kind regards.