HodorNV / ALOps

ALOps
56 stars 24 forks source link

Running tests onPrem ignores nav_serverinstance setting? #662

Closed dvanes67 closed 1 year ago

dvanes67 commented 1 year ago

Describe the bug I'm trying to get some tests running on an onPrem instance and get an error: 'Service Tier [BC] not found.'

the used yaml

- task: ALOpsAppPublish@1
  inputs:
    nav_serverinstance: 'Dev_DvE'                                   <---- This one works
    batch_publish_folder: '$(System.ArtifactsDirectory)'

- task: ALOpsAppTest@1
  displayName: 'Run OVO SystemHelper Tests'
  inputs:
    nav_serverinstance: 'Dev_DvE'                                    <------ This one doesn't
    companyname: 'xxxxxxxx'
    bc_username: '$(BC_Test_User)'
    bc_password: '$(BC_Test_User_Password)'    
    bc_webclient_url: 'https://xxxxxxxxxx/Dev_DvE'
    testfilter: '11054288'    
    testpage: '130455'
  continueOnError: true

the output

strictappnames                                                                                                    False
nav_serverinstance                                                                                              Dev_DvE
artifact_path                                                                                                          
nav_artifact_app_filter                                                                                           *.app
skip_verification                                                                                                  True
forceinstall                                                                                                      False
forcesync                                                                                                         False
publish_scope                                                                                                    Global
tenant                                                                                                          default
batch_publish_folder                                                                      C:\agent_general01\_work\13\a
publisherazureactivedirectorytenantid                                                                                  
blocksymbolsonly                                                                                                  False

*** No ALOps License found. Set License with the [alops-licenseid] or [alops_licenseid] variables.
*** To acquire a license, please visit: https://www.alops.be/getlicense
*** For pricing options, please visit : https://www.alops.be/pricing
*** For documentation, please visit   : https://www.alops.be/documentation

*** ALOps License:
  * Trial Key  : 0a6cacc8-426f-48f8-9a4f-616d1d5a6da5
  * Licensed To: ALOps Trial [9/31] days remaining. Trial ends: Friday, 08 September 2023

*** Importing required PS-Functions
*** Start Batch App-Publish.
*** Import NAV/BC Management DLL's [False]
*** Loading assemblies for ServiceTier [Dev_DvE].
*** Loading assemblies from: [C:\program files\microsoft dynamics 365 business central\210\service]
*** Selected module: [C:\program files\microsoft dynamics 365 business central\210\service\Microsoft.Dynamics.Nav.Management.dll]
*** Loading module: [C:\program files\microsoft dynamics 365 business central\210\service\Microsoft.Dynamics.Nav.Management.dll]
*** Selected module: [C:\program files\microsoft dynamics 365 business central\210\service\Microsoft.Dynamics.Nav.Apps.Management.dll]
*** Loading module: [C:\program files\microsoft dynamics 365 business central\210\service\Microsoft.Dynamics.Nav.Apps

This is the output from Publish, It uses the correct ServiceTier


testfilter                                                11054288
disabledtests                                                     
show_available_tests                                          True
import_testtoolkit                                            True
import_action                                            Overwrite
testpage                                                    130455
testsuite                                                  DEFAULT
extensionid                                                       
installaltesttool                                            False
failed_test_action                                         Warning
override_finsql_path                                              
resultfilename                                     TestResults.xml
testrunnercodeunitid                                              

*** No ALOps License found. Set License with the [alops-licenseid] or [alops_licenseid] variables.
*** To acquire a license, please visit: https://www.alops.be/getlicense
*** For pricing options, please visit : https://www.alops.be/pricing
*** For documentation, please visit   : https://www.alops.be/documentation

*** ALOps License:
  * Trial Key  : 0a6cacc8-426f-48f8-9a4f-616d1d5a6da5
  * Licensed To: ALOps Trial [9/31] days remaining. Trial ends: Friday, 08 September 2023

*** Importing required PS-Functions
*** Working folder: C:\agent_general01\_work\13\s
***
*** Selected module: [C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4899\ps_modules\BCAppTest\bin\Microsoft.Dynamics.Framework.UI.Client.dll]
*** Loading module: [C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4899\ps_modules\BCAppTest\bin\Microsoft.Dynamics.Framework.UI.Client.dll]
*** Test Context Url: https://xxxxxxxx/Dev_DvEcs?tenant=default&company=xxxxxxxx
*** Install Test-Tool extension for creating Test-Suites
*** Import NAV/BC Management DLL's [False]
*** Loading assemblies for ServiceTier [BC].
##[error]ServiceTier [BC] not found.
Finishing: Run OVO SystemHelper Tests

Here it is looking for ServiceTier [BC]

Expected behavior I expect it to look for the ServiceTier I specified (as nav_serverinstance)

Screenshots

Additional context We are still in trial, but I have already created a task to get a license

waldo1001 commented 1 year ago

Can you please provide full output?

waldo1001 commented 1 year ago

You might have found a bug .. we are uploading a hotfix, which hopefully solves this issue. This will be installed under version 1.458.4909.

After our hotfix is verified (could take a few hours), the update will be installed automatically after a few runs.

So please report back when the pipeline has run after the update?

dvanes67 commented 1 year ago

Great, I'll keep trying and I'll let you know.

dvanes67 commented 1 year ago

I have the new version No. and unfortunately still the same error ...


2023-08-30T09:37:30.7312321Z ##[section]Starting: ALOpsAppTest
2023-08-30T09:37:30.7490752Z ==============================================================================
2023-08-30T09:37:30.7491099Z Task         : ALOps App Test
2023-08-30T09:37:30.7491350Z Description  : Run AL-TestSuite for Business Central
2023-08-30T09:37:30.7491591Z Version      : 1.458.4909
2023-08-30T09:37:30.7491785Z Author       : Hodor
2023-08-30T09:37:30.7492047Z Help         : Run Business Central Test-Suite and collect results.
2023-08-30T09:37:30.7492398Z ==============================================================================
2023-08-30T09:37:32.2202168Z *** Validate configuration
2023-08-30T09:37:32.3640727Z *** Task Inputs:
2023-08-30T09:37:32.3702528Z 
2023-08-30T09:37:32.3847423Z name                                                          value
2023-08-30T09:37:32.3848575Z ----                                                          -----
2023-08-30T09:37:32.3850657Z usedocker                                                     False
2023-08-30T09:37:32.3851831Z fixed_tag                                                          
2023-08-30T09:37:32.3854071Z nav_serverinstance                                          Dev_DvE
2023-08-30T09:37:32.3855051Z tenant                                                      default
2023-08-30T09:37:32.3857101Z companyname                                             30 A. & Zn.
2023-08-30T09:37:32.3858614Z profile                                                            
2023-08-30T09:37:32.3860421Z bc_username                                     QWINSOFT\BcAutoTest
2023-08-30T09:37:32.3862104Z bc_password                                              ***
2023-08-30T09:37:32.3863174Z bc_authentication                                   NavUserPassword
2023-08-30T09:37:32.3865578Z bc_webclient_url            https://webclient.xxx.com:2121/Dev_DvE/
2023-08-30T09:37:32.3866801Z testfilter                                                 11054288
2023-08-30T09:37:32.3868252Z disabledtests                                                      
2023-08-30T09:37:32.3869921Z show_available_tests                                           True
2023-08-30T09:37:32.3871487Z import_testtoolkit                                             True
2023-08-30T09:37:32.3873345Z import_action                                             Overwrite
2023-08-30T09:37:32.3874316Z testpage                                                     130455
2023-08-30T09:37:32.3876322Z testsuite                                                   DEFAULT
2023-08-30T09:37:32.3877887Z extensionid                                                        
2023-08-30T09:37:32.3879518Z installaltesttool                                             False
2023-08-30T09:37:32.3881125Z failed_test_action                                          Warning
2023-08-30T09:37:32.3882316Z override_finsql_path                                               
2023-08-30T09:37:32.3884591Z resultfilename                                      TestResults.xml
2023-08-30T09:37:32.3885660Z testrunnercodeunitid                                         130450
2023-08-30T09:37:32.3886032Z 
2023-08-30T09:37:32.3912553Z 
2023-08-30T09:37:32.3920891Z 
2023-08-30T09:37:32.4143842Z *** For documentation, please visit   : https://www.alops.be/documentation
2023-08-30T09:37:32.4151764Z 
2023-08-30T09:37:32.6998028Z *** ALOps License:
2023-08-30T09:37:32.7016898Z   * Licensed To: QwinSoft BV. (RepositoryPer5 License)
2023-08-30T09:37:32.7020402Z 
2023-08-30T09:37:32.7143703Z *** Importing required PS-Functions
2023-08-30T09:37:32.7784216Z *** Working folder: C:\agent_general01\_work\13\s
2023-08-30T09:37:32.7790852Z ***
2023-08-30T09:37:32.8408446Z *** Selected module: [C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4909\ps_modules\BCAppTest\bin\Microsoft.Dynamics.Framework.UI.Client.dll]
2023-08-30T09:37:32.8416178Z *** Loading module: [C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4909\ps_modules\BCAppTest\bin\Microsoft.Dynamics.Framework.UI.Client.dll]
2023-08-30T09:37:33.0326662Z *** Test Context Url: https://webclient.xxx.com:2121/Dev_DvE/cs?tenant=default&company=30%20A.%20%26%20Zn.
2023-08-30T09:37:33.0450128Z *** Install Test-Tool extension for creating Test-Suites
2023-08-30T09:37:33.1416789Z *** Import NAV/BC Management DLL's [False]
2023-08-30T09:37:33.1466925Z *** Loading assemblies for ServiceTier [BC].
2023-08-30T09:37:33.6297500Z ##[error]ServiceTier [BC] not found.
2023-08-30T09:37:33.6614771Z ##[section]Finishing: ALOpsAppTest
waldo1001 commented 1 year ago

Hi,

can you try to switch off this parameter: import_testtoolkit? As that is most probably not necessary.

waldo1001 commented 1 year ago

Also - we never recommend to work with the testfilter - that's a hack rather than a decent approach (nothing we can do about it though). We'd rather recommend working with an install codeunit in the test-app, set up the suite, and run that suite .. .

dvanes67 commented 1 year ago

Switched off Import_testtoolkit, still the same error. Adding an install codeunit will take a but longer, but I'll look into that.

(I deleted the complete output post, as I think it doesn't add anything at this point, and to reduce wear and tear on my mouse)

2023-08-30T10:03:02.4494176Z ##[section]Starting: ALOpsAppTest
2023-08-30T10:03:02.4624760Z ==============================================================================
2023-08-30T10:03:02.4625161Z Task         : ALOps App Test
2023-08-30T10:03:02.4625438Z Description  : Run AL-TestSuite for Business Central
2023-08-30T10:03:02.4625702Z Version      : 1.458.4909
2023-08-30T10:03:02.4625916Z Author       : Hodor
2023-08-30T10:03:02.4626529Z Help         : Run Business Central Test-Suite and collect results.
2023-08-30T10:03:02.4626948Z ==============================================================================
2023-08-30T10:03:03.9066464Z *** Validate configuration
2023-08-30T10:03:04.0425466Z *** Task Inputs:
2023-08-30T10:03:04.0487015Z 
2023-08-30T10:03:04.0634888Z name                                                          value
2023-08-30T10:03:04.0637849Z ----                                                          -----
2023-08-30T10:03:04.0640397Z usedocker                                                     False
2023-08-30T10:03:04.0642846Z fixed_tag                                                          
2023-08-30T10:03:04.0645536Z nav_serverinstance                                          Dev_DvE
2023-08-30T10:03:04.0648566Z tenant                                                      default
2023-08-30T10:03:04.0652452Z companyname                                            Test Company
2023-08-30T10:03:04.0655424Z profile                                                            
2023-08-30T10:03:04.0658380Z bc_username                                     QWINSOFT\BcAutoTest
2023-08-30T10:03:04.0661267Z bc_password                                              ***
2023-08-30T10:03:04.0663376Z bc_authentication                                   NavUserPassword
2023-08-30T10:03:04.0666141Z bc_webclient_url            https://webclient.XXX.com:2121/Dev_DvE/
2023-08-30T10:03:04.0668304Z testfilter                                                 11054288
2023-08-30T10:03:04.0670800Z disabledtests                                                      
2023-08-30T10:03:04.0673390Z show_available_tests                                           True
2023-08-30T10:03:04.0675782Z import_testtoolkit                                            False
2023-08-30T10:03:04.0678277Z import_action                                             Overwrite
2023-08-30T10:03:04.0680878Z testpage                                                     130455
2023-08-30T10:03:04.0684763Z testsuite                                                   DEFAULT
2023-08-30T10:03:04.0687464Z extensionid                                                        
2023-08-30T10:03:04.0689625Z installaltesttool                                             False
2023-08-30T10:03:04.0693994Z failed_test_action                                          Warning
2023-08-30T10:03:04.0696644Z override_finsql_path                                               
2023-08-30T10:03:04.0699369Z resultfilename                                      TestResults.xml
2023-08-30T10:03:04.0701857Z testrunnercodeunitid                                         130450
2023-08-30T10:03:04.0702060Z 
2023-08-30T10:03:04.0728881Z 
2023-08-30T10:03:04.0737992Z 
2023-08-30T10:03:04.0977317Z *** For documentation, please visit   : https://www.alops.be/documentation
2023-08-30T10:03:04.0981272Z 
2023-08-30T10:03:04.4760408Z *** ALOps License:
2023-08-30T10:03:04.4781693Z   * Licensed To: QwinSoft BV. (RepositoryPer5 License)
2023-08-30T10:03:04.4785408Z 
2023-08-30T10:03:04.4921600Z *** Importing required PS-Functions
2023-08-30T10:03:04.5525837Z *** Working folder: C:\agent_general01\_work\13\s
2023-08-30T10:03:04.5532272Z ***
2023-08-30T10:03:04.5956331Z *** Selected module: [C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4909\ps_modules\BCAppTest\bin\Microsoft.Dynamics.Framework.UI.Client.dll]
2023-08-30T10:03:04.5963058Z *** Loading module: [C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4909\ps_modules\BCAppTest\bin\Microsoft.Dynamics.Framework.UI.Client.dll]
2023-08-30T10:03:04.7891316Z *** Test Context Url: https://webclient.XXX.com:2121/Dev_DvE/cs?tenant=default&company=Test%20Company
2023-08-30T10:03:04.8020562Z *** Install Test-Tool extension for creating Test-Suites
2023-08-30T10:03:04.9012051Z *** Import NAV/BC Management DLL's [False]
2023-08-30T10:03:04.9063333Z *** Loading assemblies for ServiceTier [BC].
2023-08-30T10:03:05.3603949Z ##[error]ServiceTier [BC] not found.
2023-08-30T10:03:05.3860391Z ##[section]Finishing: ALOpsAppTest
waldo1001 commented 1 year ago

Too bad we can't ge this repro-ed.

can you try with the latest? 1.458.4912

dvanes67 commented 1 year ago

This is what happens now, but I have also added some install code and removed the filter. You may have solved the bug, I'll need to figure out what is going wrong here.

2023-08-30T10:31:42.0154179Z ##[section]Starting: ALOpsAppTest
2023-08-30T10:31:42.0341130Z ==============================================================================
2023-08-30T10:31:42.0341855Z Task         : ALOps App Test
2023-08-30T10:31:42.0342426Z Description  : Run AL-TestSuite for Business Central
2023-08-30T10:31:42.0342986Z Version      : 1.458.4912
2023-08-30T10:31:42.0343384Z Author       : Hodor
2023-08-30T10:31:42.0343958Z Help         : Run Business Central Test-Suite and collect results.
2023-08-30T10:31:42.0344750Z ==============================================================================
2023-08-30T10:31:43.4881335Z *** Validate configuration
2023-08-30T10:31:43.6490027Z *** Task Inputs:
2023-08-30T10:31:43.6556794Z 
2023-08-30T10:31:43.6704172Z name                                                          value
2023-08-30T10:31:43.6706905Z ----                                                          -----
2023-08-30T10:31:43.6709105Z usedocker                                                     False
2023-08-30T10:31:43.6711274Z fixed_tag                                                          
2023-08-30T10:31:43.6713490Z nav_serverinstance                                          Dev_DvE
2023-08-30T10:31:43.6715648Z tenant                                                      default
2023-08-30T10:31:43.6717863Z companyname                                            Test Company
2023-08-30T10:31:43.6720158Z profile                                                            
2023-08-30T10:31:43.6722240Z bc_username                                     QWINSOFT\BcAutoTest
2023-08-30T10:31:43.6725052Z bc_password                                              ***
2023-08-30T10:31:43.6728204Z bc_authentication                                   NavUserPassword
2023-08-30T10:31:43.6730407Z bc_webclient_url          https://webclient.XXXXX.com:2121/Dev_DvE/
2023-08-30T10:31:43.6732291Z testfilter                                                         
2023-08-30T10:31:43.6734496Z disabledtests                                                      
2023-08-30T10:31:43.6736714Z show_available_tests                                           True
2023-08-30T10:31:43.6738908Z import_testtoolkit                                            False
2023-08-30T10:31:43.6741077Z import_action                                             Overwrite
2023-08-30T10:31:43.6743337Z testpage                                                     130455
2023-08-30T10:31:43.6745446Z testsuite                                                   DEFAULT
2023-08-30T10:31:43.6747648Z extensionid                                                        
2023-08-30T10:31:43.6749913Z installaltesttool                                             False
2023-08-30T10:31:43.6752079Z failed_test_action                                          Warning
2023-08-30T10:31:43.6754243Z override_finsql_path                                               
2023-08-30T10:31:43.6756446Z resultfilename                                      TestResults.xml
2023-08-30T10:31:43.6758624Z testrunnercodeunitid                                         130450
2023-08-30T10:31:43.6758896Z 
2023-08-30T10:31:43.6793640Z 
2023-08-30T10:31:43.6803824Z 
2023-08-30T10:31:43.7039903Z *** For documentation, please visit   : https://www.alops.be/documentation
2023-08-30T10:31:43.7042928Z 
2023-08-30T10:31:44.0279346Z *** ALOps License:
2023-08-30T10:31:44.0320818Z   * Licensed To: QwinSoft BV. (RepositoryPer5 License)
2023-08-30T10:31:44.0327768Z 
2023-08-30T10:31:44.0537471Z *** Importing required PS-Functions
2023-08-30T10:31:44.1221380Z *** Working folder: C:\agent_general01\_work\13\s
2023-08-30T10:31:44.1229450Z ***
2023-08-30T10:31:44.1729371Z *** Selected module: [C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\bin\Microsoft.Dynamics.Framework.UI.Client.dll]
2023-08-30T10:31:44.1736723Z *** Loading module: [C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\bin\Microsoft.Dynamics.Framework.UI.Client.dll]
2023-08-30T10:31:44.4037461Z *** Test Context Url: https://webclient.XXXXX.com:2121/Dev_DvE/cs?tenant=default&company=Test%20Company
2023-08-30T10:31:44.4162882Z *** Set TCP Keep-Alive
2023-08-30T10:31:44.4483701Z *** Start TestSuite
2023-08-30T10:31:44.4883208Z *** Running TestSuite with authentication [NavUserPassword] with User [QWINSOFT\BcAutoTest]
2023-08-30T10:31:44.4896485Z *** Run warm-up with page [130455]
2023-08-30T10:31:44.4927292Z *** Warm-up Client Context
2023-08-30T10:31:45.2703884Z CommunicationError : Response status code does not indicate success: 401 (Unauthorized).
2023-08-30T10:31:45.2720844Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 91
2023-08-30T10:31:45.2727916Z at AwaitState, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 220
2023-08-30T10:31:45.2736282Z at OpenSession, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 198
2023-08-30T10:31:45.2744980Z at Initialize, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 59
2023-08-30T10:31:45.2751739Z at ClientContext, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 26
2023-08-30T10:31:45.2759044Z at New-ClientContext, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\7e1f5533-a959-44a1-a4f8-f314c530c94f.ps1: line 27
2023-08-30T10:31:45.2765857Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\2072ae72-cbf0-4a8c-ba7d-e11e3710d09c.ps1: line 10
2023-08-30T10:31:45.2772761Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\3097003d-c6b1-4edb-a089-48e62715c8ce.ps1: line 518
2023-08-30T10:31:45.2779956Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\203bcf18-d612-413e-9274-ff7eb559a362.ps1: line 1
2023-08-30T10:31:45.2786814Z at <ScriptBlock>, <No file>: line 1
2023-08-30T10:31:45.2794873Z at <ScriptBlock>, <No file>: line 22
2023-08-30T10:31:45.2801802Z at <ScriptBlock>, <No file>: line 18
2023-08-30T10:31:45.2808679Z at <ScriptBlock>, <No file>: line 1
2023-08-30T10:31:55.0275575Z *** Warm-Up Exception: ClientSession State is Uninitialized (Wait time 10 seconds)
2023-08-30T10:31:55.0289838Z *** Warm-up Client Context failed: retry
2023-08-30T10:32:00.0310720Z *** Warm-up Client Context
2023-08-30T10:32:00.2654819Z CommunicationError : Response status code does not indicate success: 401 (Unauthorized).
2023-08-30T10:32:00.2670532Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 91
2023-08-30T10:32:00.2684304Z at AwaitState, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 220
2023-08-30T10:32:00.2695806Z at OpenSession, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 198
2023-08-30T10:32:00.2707894Z at Initialize, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 59
2023-08-30T10:32:00.2720526Z at ClientContext, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 26
2023-08-30T10:32:00.2731942Z at New-ClientContext, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\7e1f5533-a959-44a1-a4f8-f314c530c94f.ps1: line 27
2023-08-30T10:32:00.2744554Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\2072ae72-cbf0-4a8c-ba7d-e11e3710d09c.ps1: line 10
2023-08-30T10:32:00.2756029Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\3097003d-c6b1-4edb-a089-48e62715c8ce.ps1: line 518
2023-08-30T10:32:00.2767822Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\203bcf18-d612-413e-9274-ff7eb559a362.ps1: line 1
2023-08-30T10:32:00.2778959Z at <ScriptBlock>, <No file>: line 1
2023-08-30T10:32:00.2791852Z at <ScriptBlock>, <No file>: line 22
2023-08-30T10:32:00.2803356Z at <ScriptBlock>, <No file>: line 18
2023-08-30T10:32:00.2814728Z at <ScriptBlock>, <No file>: line 1
2023-08-30T10:32:10.2356821Z *** Warm-Up Exception: ClientSession State is Uninitialized (Wait time 10 seconds)
2023-08-30T10:32:10.2371201Z *** Warm-up Client Context failed: retry
2023-08-30T10:32:15.2339126Z *** Warm-up Client Context
2023-08-30T10:32:15.4687207Z CommunicationError : Response status code does not indicate success: 401 (Unauthorized).
2023-08-30T10:32:15.4703203Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 91
2023-08-30T10:32:15.4716326Z at AwaitState, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 220
2023-08-30T10:32:15.4727763Z at OpenSession, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 198
2023-08-30T10:32:15.4740463Z at Initialize, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 59
2023-08-30T10:32:15.4751760Z at ClientContext, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 26
2023-08-30T10:32:15.4763449Z at New-ClientContext, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\7e1f5533-a959-44a1-a4f8-f314c530c94f.ps1: line 27
2023-08-30T10:32:15.4778171Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\2072ae72-cbf0-4a8c-ba7d-e11e3710d09c.ps1: line 10
2023-08-30T10:32:15.4789598Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\3097003d-c6b1-4edb-a089-48e62715c8ce.ps1: line 518
2023-08-30T10:32:15.4801061Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\203bcf18-d612-413e-9274-ff7eb559a362.ps1: line 1
2023-08-30T10:32:15.4812183Z at <ScriptBlock>, <No file>: line 1
2023-08-30T10:32:15.4825284Z at <ScriptBlock>, <No file>: line 22
2023-08-30T10:32:15.4838100Z at <ScriptBlock>, <No file>: line 18
2023-08-30T10:32:15.4849818Z at <ScriptBlock>, <No file>: line 1
2023-08-30T10:32:25.4395534Z *** Warm-Up Exception: ClientSession State is Uninitialized (Wait time 10 seconds)
2023-08-30T10:32:25.4415122Z *** Warm-up Client Context failed: retry
2023-08-30T10:32:30.4370352Z *** Warm-up Client Context
2023-08-30T10:32:30.6880823Z CommunicationError : Response status code does not indicate success: 401 (Unauthorized).
2023-08-30T10:32:30.6892644Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 91
2023-08-30T10:32:30.6900204Z at AwaitState, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 220
2023-08-30T10:32:30.6915393Z at OpenSession, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 198
2023-08-30T10:32:30.6920971Z at Initialize, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 59
2023-08-30T10:32:30.6926940Z at ClientContext, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 26
2023-08-30T10:32:30.6933113Z at New-ClientContext, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\7e1f5533-a959-44a1-a4f8-f314c530c94f.ps1: line 27
2023-08-30T10:32:30.6939364Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\2072ae72-cbf0-4a8c-ba7d-e11e3710d09c.ps1: line 10
2023-08-30T10:32:30.6952614Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\3097003d-c6b1-4edb-a089-48e62715c8ce.ps1: line 518
2023-08-30T10:32:30.6954542Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\203bcf18-d612-413e-9274-ff7eb559a362.ps1: line 1
2023-08-30T10:32:30.6962455Z at <ScriptBlock>, <No file>: line 1
2023-08-30T10:32:30.6975751Z at <ScriptBlock>, <No file>: line 22
2023-08-30T10:32:30.6982753Z at <ScriptBlock>, <No file>: line 18
2023-08-30T10:32:30.6988699Z at <ScriptBlock>, <No file>: line 1
2023-08-30T10:32:40.6431695Z *** Warm-Up Exception: ClientSession State is Uninitialized (Wait time 10 seconds)
2023-08-30T10:32:40.6446592Z *** Warm-up Client Context failed: retry
2023-08-30T10:32:45.6556744Z *** Warm-up Client Context
2023-08-30T10:32:45.9215257Z CommunicationError : Response status code does not indicate success: 401 (Unauthorized).
2023-08-30T10:32:45.9229936Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 91
2023-08-30T10:32:45.9242347Z at AwaitState, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 220
2023-08-30T10:32:45.9254261Z at OpenSession, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 198
2023-08-30T10:32:45.9270259Z at Initialize, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 59
2023-08-30T10:32:45.9276410Z at ClientContext, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 26
2023-08-30T10:32:45.9282664Z at New-ClientContext, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\7e1f5533-a959-44a1-a4f8-f314c530c94f.ps1: line 27
2023-08-30T10:32:45.9288993Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\2072ae72-cbf0-4a8c-ba7d-e11e3710d09c.ps1: line 10
2023-08-30T10:32:45.9295139Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\3097003d-c6b1-4edb-a089-48e62715c8ce.ps1: line 518
2023-08-30T10:32:45.9303079Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\203bcf18-d612-413e-9274-ff7eb559a362.ps1: line 1
2023-08-30T10:32:45.9308899Z at <ScriptBlock>, <No file>: line 1
2023-08-30T10:32:45.9315164Z at <ScriptBlock>, <No file>: line 22
2023-08-30T10:32:45.9321422Z at <ScriptBlock>, <No file>: line 18
2023-08-30T10:32:45.9327905Z at <ScriptBlock>, <No file>: line 1
2023-08-30T10:32:55.8756123Z *** Warm-Up Exception: ClientSession State is Uninitialized (Wait time 10 seconds)
2023-08-30T10:32:55.8764981Z *** Warm-up Client Context failed: retry
2023-08-30T10:33:00.8940780Z ##[error]Warm-up Client Context failed
2023-08-30T10:33:00.8965773Z *** Get XUnit Test file from []
2023-08-30T10:33:01.0746636Z ##[error]Cannot bind argument to parameter 'Path' because it is null.
2023-08-30T10:33:01.1071068Z ##[section]Finishing: ALOpsAppTest
dvanes67 commented 1 year ago

Added the filter again, this is what happens now... (Apologies for spamming output)

2023-08-30T12:35:59.8466765Z ##[section]Starting: ALOpsAppTest
2023-08-30T12:35:59.8640905Z ==============================================================================
2023-08-30T12:35:59.8641259Z Task         : ALOps App Test
2023-08-30T12:35:59.8641509Z Description  : Run AL-TestSuite for Business Central
2023-08-30T12:35:59.8641746Z Version      : 1.458.4912
2023-08-30T12:35:59.8641928Z Author       : Hodor
2023-08-30T12:35:59.8642196Z Help         : Run Business Central Test-Suite and collect results.
2023-08-30T12:35:59.8642544Z ==============================================================================
2023-08-30T12:36:05.6214780Z *** Validate configuration
2023-08-30T12:36:05.7379900Z *** Task Inputs:
2023-08-30T12:36:05.7662372Z 
2023-08-30T12:36:05.7895127Z name                                                          value
2023-08-30T12:36:05.7897588Z ----                                                          -----
2023-08-30T12:36:05.7899550Z usedocker                                                     False
2023-08-30T12:36:05.7902170Z fixed_tag                                                          
2023-08-30T12:36:05.7904694Z nav_serverinstance                                          Dev_DvE
2023-08-30T12:36:05.7907718Z tenant                                                      default
2023-08-30T12:36:05.7909859Z companyname                                            Test Company
2023-08-30T12:36:05.7912363Z profile                                                            
2023-08-30T12:36:05.7914671Z bc_username                                     QWINSOFT\BcAutoTest
2023-08-30T12:36:05.7918438Z bc_password                                              ***
2023-08-30T12:36:05.7919552Z bc_authentication                                   NavUserPassword
2023-08-30T12:36:05.7922346Z bc_webclient_url     https://webclient.XXXXX.com:2121/Dev_DvE/
2023-08-30T12:36:05.7924377Z testfilter                                                 11054288
2023-08-30T12:36:05.7926369Z disabledtests                                                      
2023-08-30T12:36:05.7928754Z show_available_tests                                           True
2023-08-30T12:36:05.7931530Z import_testtoolkit                                            False
2023-08-30T12:36:05.7933688Z import_action                                             Overwrite
2023-08-30T12:36:05.7935618Z testpage                                                     130455
2023-08-30T12:36:05.7937412Z testsuite                                                   DEFAULT
2023-08-30T12:36:05.7939024Z extensionid                                                        
2023-08-30T12:36:05.7940727Z installaltesttool                                             False
2023-08-30T12:36:05.7942324Z failed_test_action                                          Warning
2023-08-30T12:36:05.7944277Z override_finsql_path                                               
2023-08-30T12:36:05.7945364Z resultfilename                                      TestResults.xml
2023-08-30T12:36:05.7947374Z testrunnercodeunitid                                         130450
2023-08-30T12:36:05.7947763Z 
2023-08-30T12:36:05.7973002Z 
2023-08-30T12:36:05.7982717Z 
2023-08-30T12:36:05.8214438Z *** For documentation, please visit   : https://www.alops.be/documentation
2023-08-30T12:36:05.8218200Z 
2023-08-30T12:36:06.3686207Z *** ALOps License:
2023-08-30T12:36:06.3724803Z   * Licensed To: QwinSoft BV. (RepositoryPer5 License)
2023-08-30T12:36:06.3732330Z 
2023-08-30T12:36:06.3874781Z *** Importing required PS-Functions
2023-08-30T12:36:06.6967448Z *** Working folder: C:\agent_general01\_work\13\s
2023-08-30T12:36:06.6982172Z ***
2023-08-30T12:36:06.8024885Z *** Selected module: [C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\bin\Microsoft.Dynamics.Framework.UI.Client.dll]
2023-08-30T12:36:06.8038008Z *** Loading module: [C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\bin\Microsoft.Dynamics.Framework.UI.Client.dll]
2023-08-30T12:36:07.6411964Z *** Test Context Url: https://webclient.XXXXX.com:2121/Dev_DvE/cs?tenant=default&company=Test%20Company
2023-08-30T12:36:07.6702640Z *** Install Test-Tool extension for creating Test-Suites
2023-08-30T12:36:07.7901277Z *** Import NAV/BC Management DLL's [False]
2023-08-30T12:36:07.7953942Z *** Loading assemblies for ServiceTier [Dev_DvE].
2023-08-30T12:36:08.3794045Z *** Loading assemblies from: [C:\program files\microsoft dynamics 365 business central\210\service]
2023-08-30T12:36:08.4220859Z *** Selected module: [C:\program files\microsoft dynamics 365 business central\210\service\Microsoft.Dynamics.Nav.Management.dll]
2023-08-30T12:36:08.4229118Z *** Loading module: [C:\program files\microsoft dynamics 365 business central\210\service\Microsoft.Dynamics.Nav.Management.dll]
2023-08-30T12:36:08.5227796Z *** Selected module: [C:\program files\microsoft dynamics 365 business central\210\service\Microsoft.Dynamics.Nav.Apps.Management.dll]
2023-08-30T12:36:08.5236541Z *** Loading module: [C:\program files\microsoft dynamics 365 business central\210\service\Microsoft.Dynamics.Nav.Apps.Management.dll]
2023-08-30T12:36:08.6023693Z *** Add Test-Runner Extension for ALOps
2023-08-30T12:36:08.6063340Z *** Installing Applications:
2023-08-30T12:36:08.6068505Z 
2023-08-30T12:36:08.6082336Z Publisher Name Path ProcessOrder
2023-08-30T12:36:08.6087847Z --------- ---- ---- ------------
2023-08-30T12:36:08.6091558Z           Path                  
2023-08-30T12:36:08.6091802Z 
2023-08-30T12:36:08.6093727Z 
2023-08-30T12:36:08.6136537Z *** Get App Info: C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\AL\HodorNV_ALOpsTestRunner_1.0.0.0.app
2023-08-30T12:36:08.7732610Z 
2023-08-30T12:36:08.7742499Z *** Get App Tenant Info
2023-08-30T12:36:08.9519324Z *** Publish App: [Hodor NV / ALOps Test Runner]
2023-08-30T12:36:09.2186164Z ##[error]Unable to locate the server instance: MicrosoftDynamicsNavServer$BC
2023-08-30T12:36:09.2697096Z ##[section]Finishing: ALOpsAppTest
waldo1001 commented 1 year ago

Let's not work with the filter for now.

Authentication seems wrong. You have "usernamepassword", but seems to be using WinAuth?

dvanes67 commented 1 year ago

I have removed the filter, changed bc_authentication to windows, still getting CommunicationError : Response status code does not indicate success: 401 (Unauthorized). I could send another log, but it is the same as https://github.com/HodorNV/ALOps/issues/662#issuecomment-1699086608

edit: Sorry, it is not, it only says unauthorized once now, then it says uninitialized

2023-08-30T13:14:39.1753732Z ##[section]Starting: ALOpsAppTest
2023-08-30T13:14:39.1983445Z ==============================================================================
2023-08-30T13:14:39.1983828Z Task         : ALOps App Test
2023-08-30T13:14:39.1988421Z Description  : Run AL-TestSuite for Business Central
2023-08-30T13:14:39.1988721Z Version      : 1.458.4912
2023-08-30T13:14:39.1988936Z Author       : Hodor
2023-08-30T13:14:39.1989229Z Help         : Run Business Central Test-Suite and collect results.
2023-08-30T13:14:39.1989590Z ==============================================================================
2023-08-30T13:14:40.5277348Z *** Validate configuration
2023-08-30T13:14:40.6220148Z *** Task Inputs:
2023-08-30T13:14:40.6866511Z 
2023-08-30T13:14:40.7084832Z name                                                          value
2023-08-30T13:14:40.7101805Z ----                                                          -----
2023-08-30T13:14:40.7135909Z usedocker                                                     False
2023-08-30T13:14:40.7142471Z fixed_tag                                                          
2023-08-30T13:14:40.7143337Z nav_serverinstance                                          Dev_DvE
2023-08-30T13:14:40.7144740Z tenant                                                      default
2023-08-30T13:14:40.7148389Z companyname                                            Test Company
2023-08-30T13:14:40.7154961Z profile                                                            
2023-08-30T13:14:40.7158650Z bc_username                                     QWINSOFT\BcAutoTest
2023-08-30T13:14:40.7162953Z bc_password                                              ***
2023-08-30T13:14:40.7163952Z bc_authentication                                           Windows
2023-08-30T13:14:40.7167676Z bc_webclient_url     https://webclient.XXXXX.com:2121/Dev_DvE/
2023-08-30T13:14:40.7170232Z testfilter                                                         
2023-08-30T13:14:40.7173009Z disabledtests                                                      
2023-08-30T13:14:40.7175825Z show_available_tests                                           True
2023-08-30T13:14:40.7176577Z import_testtoolkit                                            False
2023-08-30T13:14:40.7177913Z import_action                                             Overwrite
2023-08-30T13:14:40.7183077Z testpage                                                     130455
2023-08-30T13:14:40.7193600Z testsuite                                                   DEFAULT
2023-08-30T13:14:40.7197059Z extensionid                                                        
2023-08-30T13:14:40.7201677Z installaltesttool                                             False
2023-08-30T13:14:40.7207783Z failed_test_action                                          Warning
2023-08-30T13:14:40.7210912Z override_finsql_path                                               
2023-08-30T13:14:40.7213904Z resultfilename                                      TestResults.xml
2023-08-30T13:14:40.7216920Z testrunnercodeunitid                                         130450
2023-08-30T13:14:40.7217562Z 
2023-08-30T13:14:40.7283308Z 
2023-08-30T13:14:40.7313035Z 
2023-08-30T13:14:40.7731796Z *** For documentation, please visit   : https://www.alops.be/documentation
2023-08-30T13:14:40.7742107Z 
2023-08-30T13:14:41.0929287Z *** ALOps License:
2023-08-30T13:14:41.0970106Z   * Licensed To: QwinSoft BV. (RepositoryPer5 License)
2023-08-30T13:14:41.0977171Z 
2023-08-30T13:14:41.1220618Z *** Importing required PS-Functions
2023-08-30T13:14:41.1871228Z *** Working folder: C:\agent_general01\_work\13\s
2023-08-30T13:14:41.1877841Z ***
2023-08-30T13:14:41.2391361Z *** Selected module: [C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\bin\Microsoft.Dynamics.Framework.UI.Client.dll]
2023-08-30T13:14:41.2399238Z *** Loading module: [C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\bin\Microsoft.Dynamics.Framework.UI.Client.dll]
2023-08-30T13:14:41.4374082Z *** Test Context Url: https://webclient.XXXXX.com:2121/Dev_DvE/cs?tenant=default&company=Test%20Company
2023-08-30T13:14:41.4502696Z *** Set TCP Keep-Alive
2023-08-30T13:14:41.4639336Z *** Start TestSuite
2023-08-30T13:14:41.4755473Z *** Running TestSuite with authentication [Windows] with User [QWINSOFT\BcAutoTest]
2023-08-30T13:14:41.4763693Z *** Run warm-up with page [130455]
2023-08-30T13:14:41.4779951Z *** Warm-up Client Context
**2023-08-30T13:14:42.0048650Z CommunicationError : Response status code does not indicate success: 401 (Unauthorized).**
2023-08-30T13:14:42.0080539Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 91
2023-08-30T13:14:42.0091625Z at AwaitState, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 220
2023-08-30T13:14:42.0102828Z at OpenSession, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 198
2023-08-30T13:14:42.0116547Z at Initialize, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 59
2023-08-30T13:14:42.0128448Z at ClientContext, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 34
2023-08-30T13:14:42.0139989Z at New-ClientContext, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\7e1f5533-a959-44a1-a4f8-f314c530c94f.ps1: line 21
2023-08-30T13:14:42.0151781Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\2072ae72-cbf0-4a8c-ba7d-e11e3710d09c.ps1: line 10
2023-08-30T13:14:42.0162820Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\3097003d-c6b1-4edb-a089-48e62715c8ce.ps1: line 518
2023-08-30T13:14:42.0173868Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\203bcf18-d612-413e-9274-ff7eb559a362.ps1: line 1
2023-08-30T13:14:42.0184677Z at <ScriptBlock>, <No file>: line 1
2023-08-30T13:14:42.0195831Z at <ScriptBlock>, <No file>: line 22
2023-08-30T13:14:42.0207758Z at <ScriptBlock>, <No file>: line 18
2023-08-30T13:14:42.0220219Z at <ScriptBlock>, <No file>: line 1
**2023-08-30T13:14:51.9940829Z *** Warm-Up Exception: ClientSession State is Uninitialized (Wait time 10 seconds)**
2023-08-30T13:14:51.9955188Z *** Warm-up Client Context failed: retry
2023-08-30T13:14:57.0133871Z *** Warm-up Client Context
2023-08-30T13:14:57.2476809Z CommunicationError : Response status code does not indicate success: 401 (Unauthorized).
2023-08-30T13:14:57.2488754Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 91
2023-08-30T13:14:57.2498159Z at AwaitState, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 220
2023-08-30T13:14:57.2507580Z at OpenSession, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 198
2023-08-30T13:14:57.2516813Z at Initialize, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 59
2023-08-30T13:14:57.2526071Z at ClientContext, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 34
2023-08-30T13:14:57.2535433Z at New-ClientContext, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\7e1f5533-a959-44a1-a4f8-f314c530c94f.ps1: line 21
2023-08-30T13:14:57.2546828Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\2072ae72-cbf0-4a8c-ba7d-e11e3710d09c.ps1: line 10
2023-08-30T13:14:57.2555683Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\3097003d-c6b1-4edb-a089-48e62715c8ce.ps1: line 518
2023-08-30T13:14:57.2559086Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\203bcf18-d612-413e-9274-ff7eb559a362.ps1: line 1
2023-08-30T13:14:57.2564329Z at <ScriptBlock>, <No file>: line 1
2023-08-30T13:14:57.2570147Z at <ScriptBlock>, <No file>: line 22
2023-08-30T13:14:57.2575960Z at <ScriptBlock>, <No file>: line 18
2023-08-30T13:14:57.2582432Z at <ScriptBlock>, <No file>: line 1
2023-08-30T13:15:07.4087180Z *** Warm-Up Exception: ClientSession State is Uninitialized (Wait time 10 seconds)
2023-08-30T13:15:07.4097651Z *** Warm-up Client Context failed: retry
2023-08-30T13:15:13.0743335Z *** Warm-up Client Context
2023-08-30T13:15:13.7943931Z CommunicationError : Response status code does not indicate success: 401 (Unauthorized).
2023-08-30T13:15:13.7954479Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 91
2023-08-30T13:15:13.7961770Z at AwaitState, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 220
2023-08-30T13:15:13.7969502Z at OpenSession, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 198
2023-08-30T13:15:13.7976964Z at Initialize, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 59
2023-08-30T13:15:13.7984789Z at ClientContext, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 34
2023-08-30T13:15:13.7993076Z at New-ClientContext, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\7e1f5533-a959-44a1-a4f8-f314c530c94f.ps1: line 21
2023-08-30T13:15:13.8000696Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\2072ae72-cbf0-4a8c-ba7d-e11e3710d09c.ps1: line 10
2023-08-30T13:15:13.8007645Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\3097003d-c6b1-4edb-a089-48e62715c8ce.ps1: line 518
2023-08-30T13:15:13.8014486Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\203bcf18-d612-413e-9274-ff7eb559a362.ps1: line 1
2023-08-30T13:15:13.8022320Z at <ScriptBlock>, <No file>: line 1
2023-08-30T13:15:13.8029192Z at <ScriptBlock>, <No file>: line 22
2023-08-30T13:15:13.8036305Z at <ScriptBlock>, <No file>: line 18
2023-08-30T13:15:13.8043912Z at <ScriptBlock>, <No file>: line 1
2023-08-30T13:15:23.4090612Z *** Warm-Up Exception: ClientSession State is Uninitialized (Wait time 10 seconds)
2023-08-30T13:15:23.4098988Z *** Warm-up Client Context failed: retry
2023-08-30T13:15:28.4041506Z *** Warm-up Client Context
2023-08-30T13:15:28.6387125Z CommunicationError : Response status code does not indicate success: 401 (Unauthorized).
2023-08-30T13:15:28.6400861Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 91
2023-08-30T13:15:28.6411500Z at AwaitState, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 220
2023-08-30T13:15:28.6421686Z at OpenSession, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 198
2023-08-30T13:15:28.6431776Z at Initialize, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 59
2023-08-30T13:15:28.6442132Z at ClientContext, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 34
2023-08-30T13:15:28.6452306Z at New-ClientContext, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\7e1f5533-a959-44a1-a4f8-f314c530c94f.ps1: line 21
2023-08-30T13:15:28.6462762Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\2072ae72-cbf0-4a8c-ba7d-e11e3710d09c.ps1: line 10
2023-08-30T13:15:28.6472648Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\3097003d-c6b1-4edb-a089-48e62715c8ce.ps1: line 518
2023-08-30T13:15:28.6484461Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\203bcf18-d612-413e-9274-ff7eb559a362.ps1: line 1
2023-08-30T13:15:28.6493715Z at <ScriptBlock>, <No file>: line 1
2023-08-30T13:15:28.6503710Z at <ScriptBlock>, <No file>: line 22
2023-08-30T13:15:28.6513694Z at <ScriptBlock>, <No file>: line 18
2023-08-30T13:15:28.6523869Z at <ScriptBlock>, <No file>: line 1
2023-08-30T13:15:38.5634093Z *** Warm-Up Exception: ClientSession State is Uninitialized (Wait time 10 seconds)
2023-08-30T13:15:38.5647098Z *** Warm-up Client Context failed: retry
2023-08-30T13:15:43.5762619Z *** Warm-up Client Context
2023-08-30T13:15:43.8103652Z CommunicationError : Response status code does not indicate success: 401 (Unauthorized).
2023-08-30T13:15:43.8118148Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 91
2023-08-30T13:15:43.8128751Z at AwaitState, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 220
2023-08-30T13:15:43.8138924Z at OpenSession, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 198
2023-08-30T13:15:43.8149062Z at Initialize, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 59
2023-08-30T13:15:43.8159277Z at ClientContext, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\66b92951-8b07-4972-ac36-197cc795847a.ps1: line 34
2023-08-30T13:15:43.8170039Z at New-ClientContext, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\7e1f5533-a959-44a1-a4f8-f314c530c94f.ps1: line 21
2023-08-30T13:15:43.8180247Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\ps_modules\BCAppTest\2072ae72-cbf0-4a8c-ba7d-e11e3710d09c.ps1: line 10
2023-08-30T13:15:43.8190341Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\3097003d-c6b1-4edb-a089-48e62715c8ce.ps1: line 518
2023-08-30T13:15:43.8203001Z at <ScriptBlock>, C:\agent_general01\_work\_tasks\ALOpsAppTest_05bf385f-26f1-474d-a993-49930a16de43\1.458.4912\203bcf18-d612-413e-9274-ff7eb559a362.ps1: line 1
2023-08-30T13:15:43.8210064Z at <ScriptBlock>, <No file>: line 1
2023-08-30T13:15:43.8219786Z at <ScriptBlock>, <No file>: line 22
2023-08-30T13:15:43.8230333Z at <ScriptBlock>, <No file>: line 18
2023-08-30T13:15:43.8241586Z at <ScriptBlock>, <No file>: line 1
2023-08-30T13:15:53.7808148Z *** Warm-Up Exception: ClientSession State is Uninitialized (Wait time 10 seconds)
2023-08-30T13:15:53.7817879Z *** Warm-up Client Context failed: retry
2023-08-30T13:15:58.7817704Z ##[error]Warm-up Client Context failed
2023-08-30T13:15:58.7873660Z *** Get XUnit Test file from []
2023-08-30T13:15:58.9441880Z ##[error]Cannot bind argument to parameter 'Path' because it is null.
2023-08-30T13:15:58.9908630Z ##[section]Finishing: ALOpsAppTest
waldo1001 commented 1 year ago

It now seems to come down to solving authentication.

how did you set up the NST? How are you using this with your client? What if you do browse to "https://webclient.XXXXX.com:2121/Dev_DvE/" yourself (from the agent-machine) - how do log in? Windows? Username Pwd?

By the way, can you tell me why are you using a fixed installed environment to run tests? Why not simply using docker, install all apps in the pipeline, run tests? I'm trying to understand the use case.

dvanes67 commented 1 year ago

It now seems to come down to solving authentication.

What if you do browse to "https://webclient.XXXXX.com:2121/Dev_DvE/" yourself (from the agent-machine) - how do log in? Windows? Username Pwd?

I skipped a few questions, because I cannot answer them, but I can tell you what happens if I browse to the link on the agent-machine. It asks for authorization, over and over again. You may be on to something here. I'll try to figure out a working link, or change a setting or 2 (or have someone do that) and test again.

By the way, can you tell me why are you using a fixed installed environment to run tests? Why not simply using docker, install all apps in the pipeline, run tests? I'm trying to understand the use case. Yes I can tell you that. It is because we are severely lacking testcodeunits, and the few that we have rely heavily on existing data. I have tried restoring a database in docker, but it is simply to big, and I cannot get it small enough to fit. We do have an existing working pipeline, but it is too complicated, and I want things to be simple enough that I can understand it. (and maintain it should something bad happen to the person who does understand the pipeline. Also I have plans to add a lot of tests, and make them less (or not) reliant on existing data, so they can run on a docker container, but we are not there yet.

Also thank you for your patience and quick replies.

waldo1001 commented 1 year ago

You're welcome.

Personally, I do prefer:

dvanes67 commented 1 year ago

Ladies and Gentlemen, we have a winner I reduced the pipeline to just running the tests and publishing the results, and changed the agent pool to a different server. and lo and behold, it ran the tests (all succeeded tyvm) and published the results. I'll close this issue, and I'll thank you again. 5 star rating