HodorNV / ALOps

ALOps
59 stars 24 forks source link

Compile TestApp for BC14 fails because symbols are missing #554

Closed JohnnyUndercover closed 2 years ago

JohnnyUndercover commented 2 years ago

Describe the bug I have an app with a test app for BC14 without C/Side customizations. When I try to compile the test app, I get errors that the symbols for the test objects are missing.

the used yaml please provide the yaml that you used. It helps you put the yaml like this:

name: $(Build.BuildId)

variables:
- name: 'AppVersion'
  value: '?.?.*.0'
- name: 'LicenceFile'
  value: '\\files\licence.flf'
- group: 'ALOps Settings'

pool:
  name: BusinessCentralBuildAgents

trigger:
- master

steps:
- checkout: self
  clean: true
  lfs: true

- task: ALOpsDockerCreate@1
  inputs:
    artifactversion: '14'
    artifactcountry: 'de'
    licensefile: '$(LicenceFile)'
    includetesttoolkit: true

- task: ALOpsDockerStart@1
  inputs:
    enable_symbol_loading: true
    memory_gb: '8'
    docker_parameters: |
      --isolation=hyperv

- task: ALOpsDockerWait@1
  inputs:
    search_string: 'Ready for connections!'
    usecompression: false

- task: ALOpsAppCompiler@1
  displayName: 'Compile MainApp'
  inputs:
    usedocker: true
    targetproject: 'MainApp/app.json'
    al_analyzer: 'AppSourceCop,CodeCop,PerTenantExtensionCop,UICop'
    nav_app_version: '$(AppVersion)'
    failed_on_warnings: false

- task: ALOpsAppPublish@1
  displayName: 'Publish $(Build.Repository.Name) MainApp'
  inputs:
    usedocker: true
    nav_artifact_app_filter: '*.app'
    skip_verification: true

- task: ALOpsAppCompiler@1
  displayName: 'Compile TestApp'
  inputs:
    usedocker: true
    targetproject: 'TestApp/app.json'
    nav_app_version: '$(AppVersion)'
    publish_artifact: false

- task: ALOpsAppPublish@1
  displayName: 'Publish $(Build.Repository.Name) TestApp'
  inputs:
    usedocker: true
    nav_artifact_app_filter: '*.app'

- task: ALOpsAppTest@1
  displayName: 'ALOPS - Run TestSuite'
  inputs:
    usedocker: true
    import_action: "Skip"
    show_available_tests: true
    import_testtoolkit: false
    failed_test_action: 'Ignore'
  continueOnError: true

- task: PublishTestResults@2
  displayName: 'Publish Test Results **/TestResults.xml'
  inputs:
    testResultsFormat: XUnit
    testResultsFiles: '**/TestResults.xml'
    testRunTitle: 'BC Test Results: $(Build.BuildId)'
    failTaskOnFailedTests: true

- task: ALOpsDockerRemove@1
  enabled: true
  condition: always()

the output Also the complete output is necessary for us to see what is going on. Also use backtics:

2022-08-15T09:51:54.7170841Z ##[section]Starting: Compile TestApp
2022-08-15T09:51:54.7511030Z ==============================================================================
2022-08-15T09:51:54.7511438Z Task         : ALOps App Compiler
2022-08-15T09:51:54.7511752Z Description  : Compile AL Extensions for Business Central
2022-08-15T09:51:54.7512043Z Version      : 1.451.3127
2022-08-15T09:51:54.7512260Z Author       : Hodor
2022-08-15T09:51:54.7512549Z Help         : Compile a Business Central extension from AL code.
2022-08-15T09:51:54.7512998Z ==============================================================================
2022-08-15T09:51:59.1323655Z *** Validate configuration
2022-08-15T09:51:59.5146837Z *** Task Inputs:
2022-08-15T09:51:59.5317992Z 
2022-08-15T09:51:59.5470566Z name                                                                             value
2022-08-15T09:51:59.5716806Z ----                                                                             -----
2022-08-15T09:51:59.5718967Z usedocker                                                                         True
2022-08-15T09:51:59.5726993Z fixed_tag                                                                             
2022-08-15T09:51:59.5731678Z targetproject                                    C:\agent\_work\161\s\TestApp\app.json
2022-08-15T09:51:59.5876413Z nav_computername                                                                      
2022-08-15T09:51:59.5960341Z nav_serverinstance                                                               BC140
2022-08-15T09:51:59.5965958Z nav_tenant                                                                     default
2022-08-15T09:51:59.5968219Z nav_ports_dev                                                                     7049
2022-08-15T09:51:59.5995522Z bc_username                                                                           
2022-08-15T09:51:59.5997711Z bc_password                                                                           
2022-08-15T09:51:59.6015752Z al_compiler_version                                                         0.12.15355
2022-08-15T09:51:59.6022420Z ruleset                                                                               
2022-08-15T09:51:59.6023698Z suppresswarnings                                                                  KEEP
2022-08-15T09:51:59.6025120Z al_analyzer                                                                           
2022-08-15T09:51:59.6025887Z nav_app_version                                                                ?.?.*.0
2022-08-15T09:51:59.6026683Z vsix_download_path                                                                    
2022-08-15T09:51:59.6027313Z use_ssl                                                                          False
2022-08-15T09:51:59.6028078Z download_test_symbols                                                            False
2022-08-15T09:51:59.6029718Z usecompression                                                                    True
2022-08-15T09:51:59.6034269Z publish_artifact                                                                 False
2022-08-15T09:51:59.6035560Z publishxlif                                                                      False
2022-08-15T09:51:59.6036381Z failed_on_warnings                                                               False
2022-08-15T09:51:59.6095154Z app_file_suffix                                                                       
2022-08-15T09:51:59.6105333Z updatebuildnumber                                                                 True
2022-08-15T09:51:59.6113319Z setup_working_folder                                                             False
2022-08-15T09:51:59.6127432Z showmycode                                                                        Keep
2022-08-15T09:51:59.6128359Z resourceexposurepolicy_allowdebugging                                             Keep
2022-08-15T09:51:59.6131353Z resourceexposurepolicy_allowdownloadingsource                                     Keep
2022-08-15T09:51:59.6142894Z resourceexposurepolicy_includesourceinsymbolfile                                  Keep
2022-08-15T09:51:59.6143862Z applicationinsightskey                                                                
2022-08-15T09:51:59.6144412Z printappmanifest                                                                  True
2022-08-15T09:51:59.6145073Z output_alc_logs                                                                   True
2022-08-15T09:51:59.6147203Z additionalprobingpaths                                                                
2022-08-15T09:51:59.6147620Z 
2022-08-15T09:51:59.6147825Z 
2022-08-15T09:51:59.6148035Z 
2022-08-15T09:51:59.6148526Z *** For documentation, please visit   : https://www.alops.be/documentation
2022-08-15T09:51:59.6150358Z 
2022-08-15T09:51:59.7456398Z *** Importing required PS-Functions
2022-08-15T09:52:00.5919668Z *** Initiate Docker Session
2022-08-15T09:52:00.9634375Z *** Set Docker Container ErrorActionPreference = Stop
2022-08-15T09:52:02.1068998Z *** Import NAV/BC Management DLL's
2022-08-15T09:52:02.1230134Z *** Loading assemblies for ServiceTier [NAV].
2022-08-15T09:52:02.4454303Z *** Loading assemblies from: [C:\program files\microsoft dynamics nav\140\service]
2022-08-15T09:52:02.4690707Z *** Selected module: [C:\program files\microsoft dynamics nav\140\service\Microsoft.Dynamics.Nav.Apps.Management.dll]
2022-08-15T09:52:02.4717753Z *** Loading module: [C:\program files\microsoft dynamics nav\140\service\Microsoft.Dynamics.Nav.Apps.Management.dll]
2022-08-15T09:52:02.5312832Z *** Selected module: [C:\program files\microsoft dynamics nav\140\service\Microsoft.Dynamics.Nav.Management.dll]
2022-08-15T09:52:02.5343439Z *** Loading module: [C:\program files\microsoft dynamics nav\140\service\Microsoft.Dynamics.Nav.Management.dll]
2022-08-15T09:52:02.5861657Z *** BC NCL Management DLL: C:\program files\microsoft dynamics nav\140\service\Microsoft.Dynamics.Nav.Ncl.dll
2022-08-15T09:52:03.0649340Z *** BC Types DLL: C:\program files\microsoft dynamics nav\140\service\Microsoft.Dynamics.Nav.Types.dll
2022-08-15T09:52:03.3124253Z *** Setting up AL Compiler [ALLanguage]
2022-08-15T09:52:03.6478912Z *** Using AL Compiler [vALLanguage] located [C:\Run\Microsoft.al\al-ALLanguage\extension\bin\alc.exe]
2022-08-15T09:52:03.6497251Z ***
2022-08-15T09:52:03.6522319Z *** Working folder: C:\agent\_work\161\s
2022-08-15T09:52:03.6533621Z ***
2022-08-15T09:52:03.6545681Z *** Copy Working folder to Docker Container: fc45c173b5b28517692c280207024c92e3b6bd650bace32a4d3a4d3b2e2d28d2
2022-08-15T09:52:03.6556951Z *** Docker Working Folder: c:\Run\DevOps\
2022-08-15T09:52:03.6568772Z *** Copy from [C:\agent\_work\161\s] to [c:\Run\DevOps\]
2022-08-15T09:52:03.6627305Z *** Source File setup completed
2022-08-15T09:52:04.2085917Z *** Target Project: \TestApp\app.json
2022-08-15T09:52:04.2107976Z *** Check for app.json files: c:\Run\DevOps\
2022-08-15T09:52:04.2220596Z *** Multiple projects found:
2022-08-15T09:52:04.2299616Z    - C:\Run\DevOps\MainApp
2022-08-15T09:52:04.2335623Z    - C:\Run\DevOps\TestApp
2022-08-15T09:52:04.2385415Z *** Retrieving App-Info [\TestApp\app.json]
2022-08-15T09:52:04.2558897Z *** Loading Json Object: [c:\Run\DevOps\TestApp\app.json]
2022-08-15T09:52:04.2852407Z   * App.ID          = c75525d7-21c7-42ea-8a0c-eb4b0edcb79b
2022-08-15T09:52:04.2886995Z   * App.Name        = MyApp Test
2022-08-15T09:52:04.2919981Z   * App.Publisher   = Default publisher
2022-08-15T09:52:04.2961079Z   * App.Version     = 1.0.0.0
2022-08-15T09:52:04.2999891Z   * App.Platform    = 14.0.0.0
2022-08-15T09:52:04.3038410Z   * App.Application = 14.0.0.0
2022-08-15T09:52:04.3124792Z *** Check Runtime: [3.0]
2022-08-15T09:52:04.3255437Z *** Removing ResourceExposurePolicy
2022-08-15T09:52:04.3327214Z ***
2022-08-15T09:52:04.3827081Z *** Retaining original [Major] from version (?.0.0.0)
2022-08-15T09:52:04.3887808Z *** Retaining original [Minor] from version (0.?.0.0)
2022-08-15T09:52:04.3976621Z *** Setting Managed App Version [c:\Run\DevOps\TestApp\app.json] =>  1.0.16806.0
2022-08-15T09:52:04.4664939Z *** Final app.json:
2022-08-15T09:52:04.4665247Z {
2022-08-15T09:52:04.4665570Z     "id":  "c75525d7-21c7-42ea-8a0c-eb4b0edcb79b",
2022-08-15T09:52:04.4665930Z     "name":  "MyApp Test",
2022-08-15T09:52:04.4666246Z     "publisher":  "Default publisher",
2022-08-15T09:52:04.4666585Z     "version":  "1.0.16806.0",
2022-08-15T09:52:04.4666928Z     "brief":  "MyApp Test",
2022-08-15T09:52:04.4667261Z     "description":  "Test App for MyApp",
2022-08-15T09:52:04.4667678Z     "privacyStatement":  "https://www.myUrl.de/privacyStatement",
2022-08-15T09:52:04.4668096Z     "EULA":  "https://www.myUrl.de/EULA",
2022-08-15T09:52:04.4668503Z     "help":  "https://www.myUrl.de/help",
2022-08-15T09:52:04.4668865Z     "url":  "https://www.myUrl.de",
2022-08-15T09:52:04.4669191Z     "logo":  "./res/Logo.jpg",
2022-08-15T09:52:04.4669493Z     "dependencies":  [
2022-08-15T09:52:04.4669762Z                          {
2022-08-15T09:52:04.4670123Z                              "appId":  "73500d58-8b99-43cf-a41e-cd4244f5f7b1",
2022-08-15T09:52:04.4670503Z                              "name":  "MyApp",
2022-08-15T09:52:04.4670846Z                              "publisher":  "Default publisher",
2022-08-15T09:52:04.4671185Z                              "version":  "1.0.0.0"
2022-08-15T09:52:04.4671474Z                          }
2022-08-15T09:52:04.4671722Z                      ],
2022-08-15T09:52:04.4671986Z     "screenshots":  [
2022-08-15T09:52:04.4672111Z 
2022-08-15T09:52:04.4672346Z                     ],
2022-08-15T09:52:04.4672631Z     "application":  "14.0.0.0",
2022-08-15T09:52:04.4672946Z     "platform":  "14.0.0.0",
2022-08-15T09:52:04.4673237Z     "idRanges":  [
2022-08-15T09:52:04.4673782Z                      {
2022-08-15T09:52:04.4674058Z                          "from":  51000,
2022-08-15T09:52:04.4674357Z                          "to":  51100
2022-08-15T09:52:04.4674632Z                      }
2022-08-15T09:52:04.4674878Z                  ],
2022-08-15T09:52:04.4675150Z     "showMyCode":  true,
2022-08-15T09:52:04.4675487Z     "runtime":  "3.0",
2022-08-15T09:52:04.4675839Z     "target":  "Internal",
2022-08-15T09:52:04.4676315Z     "contextSensitiveHelpUrl":  "https://www.myUrl.de/contextSensitiveHelpUrl",
2022-08-15T09:52:04.4676768Z     "supportedLocales":  [
2022-08-15T09:52:04.4677106Z                              "de-DE"
2022-08-15T09:52:04.4677367Z                          ],
2022-08-15T09:52:04.4677628Z     "features":  [
2022-08-15T09:52:04.4677908Z                      "TranslationFile"
2022-08-15T09:52:04.4678184Z                  ]
2022-08-15T09:52:04.4678411Z }
2022-08-15T09:52:04.4678508Z 
2022-08-15T09:52:04.4678734Z ***
2022-08-15T09:52:04.5938352Z *** Working Direcotry: [c:\Run\DevOps\]
2022-08-15T09:52:04.5961507Z *** Target Project: [\TestApp\app.json]
2022-08-15T09:52:04.5982533Z *** Project Directory: [c:\Run\DevOps\TestApp]
2022-08-15T09:52:04.6023868Z *** VSCode Settings: [c:\Run\DevOps\TestApp\.vscode\settings.json]
2022-08-15T09:52:04.6067311Z *** VSCode-Settings json found.
2022-08-15T09:52:04.6092095Z *** Loading Json Object: [c:\Run\DevOps\TestApp\.vscode\settings.json]
2022-08-15T09:52:04.6177009Z *** Using Ruleset: [c:\Run\DevOps\TestApp\.vscode\ruleset.json]
2022-08-15T09:52:04.6200911Z ***
2022-08-15T09:52:04.9131927Z *** Resolve Docker Credentials
2022-08-15T09:52:04.9222701Z *** Setup BC Username/Password from Container info
2022-08-15T09:52:04.9304338Z *** Download Symbols
2022-08-15T09:52:05.9904525Z *** Working Dir: c:\Run\DevOps\
2022-08-15T09:52:09.7070356Z *** Loading assemblies from: [C:\program files\microsoft dynamics nav\140\service]
2022-08-15T09:52:10.3601626Z *** PackageCache path created [c:\Run\DevOps\PackageCache]
2022-08-15T09:52:10.3624833Z ***
2022-08-15T09:52:10.4682403Z *** Propagated Dependency: Default publisher - MyApp - 1.0.0.0
2022-08-15T09:52:10.4836909Z *** Download System-Symbols for [14.0.0.0]
2022-08-15T09:52:10.5297635Z *** Downloading NAV Symbols for [System v14.0.0.0]
2022-08-15T09:52:10.5320231Z *** Downloading NAV Symbols from [https://fc45c173b5b2:7049/NAV/dev/packages?publisher=Microsoft&appName=System&versionText=14.0.0.0&tenant=default]
2022-08-15T09:52:10.5679404Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-08-15T09:52:10.5719371Z ##[command]Invoke-RestMethod -Method Get -Uri https://fc45c173b5b2:7049/NAV/dev/packages?publisher=Microsoft&appName=System&versionText=14.0.0.0&tenant=default
2022-08-15T09:52:10.6760600Z *** Content-Disposition: attachment; filename=Microsoft_System_14.0.49057.0.app
2022-08-15T09:52:10.6977977Z *** Saving symbol file [Microsoft_System_14.0.49057.0.app] to [c:\Run\DevOps\PackageCache]
2022-08-15T09:52:10.7231369Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Microsoft_System_14.0.49057.0.app].
2022-08-15T09:52:10.7898073Z ***
2022-08-15T09:52:10.7920192Z *** Download Application-Symbols for [14.0.0.0]
2022-08-15T09:52:10.7946243Z *** Downloading NAV Symbols for [Application v14.0.0.0]
2022-08-15T09:52:10.7963659Z *** Downloading NAV Symbols from [https://fc45c173b5b2:7049/NAV/dev/packages?publisher=Microsoft&appName=Application&versionText=14.0.0.0&tenant=default]
2022-08-15T09:52:10.7986898Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-08-15T09:52:10.8006416Z ##[command]Invoke-RestMethod -Method Get -Uri https://fc45c173b5b2:7049/NAV/dev/packages?publisher=Microsoft&appName=Application&versionText=14.0.0.0&tenant=default
2022-08-15T09:52:28.4968129Z *** Content-Disposition: attachment; filename=Microsoft_Application_14.39.49063.0.app
2022-08-15T09:52:28.5037766Z *** Saving symbol file [Microsoft_Application_14.39.49063.0.app] to [c:\Run\DevOps\PackageCache]
2022-08-15T09:52:28.6301185Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Microsoft_Application_14.39.49063.0.app].
2022-08-15T09:52:28.6355250Z ***
2022-08-15T09:52:28.6436056Z *** Check for Depency Apps 1
2022-08-15T09:52:28.6495255Z *** Download Application-Symbols for [MyApp v1.0.0.0]
2022-08-15T09:52:28.6528176Z *** Downloading NAV Symbols for [MyApp v1.0.0.0]
2022-08-15T09:52:28.6590062Z *** Downloading NAV Symbols from [https://fc45c173b5b2:7049/NAV/dev/packages?publisher=Default+publisher&appName=MyApp&versionText=1.0.0.0&tenant=default]
2022-08-15T09:52:28.6622101Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-08-15T09:52:28.6643204Z ##[command]Invoke-RestMethod -Method Get -Uri https://fc45c173b5b2:7049/NAV/dev/packages?publisher=Default+publisher&appName=MyApp&versionText=1.0.0.0&tenant=default
2022-08-15T09:52:28.7748027Z *** Content-Disposition: attachment; filename="Default publisher_MyApp_1.0.16806.0.app"
2022-08-15T09:52:28.7800701Z *** Saving symbol file [Default publisher_MyApp_1.0.16806.0.app] to [c:\Run\DevOps\PackageCache]
2022-08-15T09:52:28.7871274Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Default publisher_MyApp_1.0.16806.0.app].
2022-08-15T09:52:28.7922362Z ***
2022-08-15T09:52:29.6661808Z *** Starting AL Compiler...
2022-08-15T09:52:29.6687828Z *** App.Name         = MyApp Test
2022-08-15T09:52:29.6711476Z *** App.Publisher    = Default publisher
2022-08-15T09:52:29.6734688Z *** App.Compiler Path= C:\Run\Microsoft.al\al-ALLanguage\extension\bin\alc.exe
2022-08-15T09:52:29.6816176Z *** Checking for Assemblies in App
2022-08-15T09:52:29.6874978Z *** Add Windows Assembly Path [C:\Windows\assembly]
2022-08-15T09:52:29.7019024Z *** Detect ALC.EXE Features.
2022-08-15T09:52:29.7042582Z ##[command]& C:\Run\Microsoft.al\al-ALLanguage\extension\bin\alc.exe /?
2022-08-15T09:52:32.0471287Z   * PARALLEL+
2022-08-15T09:52:32.0506840Z   * ASSEMBLYPROBINGPATHS
2022-08-15T09:52:32.0810890Z ##[command]& C:\Run\Microsoft.al\al-ALLanguage\extension\bin\alc.exe /packagecachepath:"c:\Run\DevOps\PackageCache" /project:"c:\Run\DevOps\TestApp" /out:"c:\Run\DevOps\Default publisher_MyApp Test_1.0.16806.0.app" /fullpaths /parallel+ /assemblyprobingpaths:"C:\Windows\assembly","C:\Windows\Microsoft.NET\assembly","C:\program files\microsoft dynamics nav\140\service" /ruleset:"c:\Run\DevOps\TestApp\.vscode\ruleset.json"
2022-08-15T09:52:57.4170751Z *** AL Compiler Exit Code: 1
2022-08-15T09:52:57.5984852Z *** Full Compile Log:
2022-08-15T09:52:57.6113526Z Microsoft (R) AL Compiler version 3.0.8.10845 Copyright (C) Microsoft Corporation. All rights reserved  Compilation started for project 'MyApp Test' containing '2' files at '11:52:37.662'.  c:\Run\DevOps\TestApp\src\CheckTransferfields.Codeunit.al(219,17): error AL0185: Codeunit 'Assert' is missing  Compilation ended at '11:52:56.459'. 
2022-08-15T09:52:57.6136553Z 
2022-08-15T09:52:58.1192201Z *** AL Compiler raw logs: Start
2022-08-15T09:52:58.1221937Z Microsoft (R) AL Compiler version 3.0.8.10845
2022-08-15T09:52:58.1254435Z Copyright (C) Microsoft Corporation. All rights reserved
2022-08-15T09:52:58.1283897Z Compilation started for project 'MyApp Test' containing '2' files at '11:52:37.662'.
2022-08-15T09:52:58.2659182Z c:\Run\DevOps\TestApp\src\CheckTransferfields.Codeunit.al(219,17): error AL0185: Codeunit 'Assert' is missing
2022-08-15T09:52:58.2688982Z Compilation ended at '11:52:56.459'.
2022-08-15T09:52:58.2715016Z *** AL Compiler raw logs: End
2022-08-15T09:52:58.2739705Z *** Start processing compile results.
2022-08-15T09:52:58.3286880Z ##[error]c:\Run\DevOps\TestApp\src\CheckTransferfields.Codeunit.al(219,17): error AL0185: Codeunit 'Assert' is missing
2022-08-15T09:52:58.5509420Z ##[error]Compilation ended at '11:52:56.459'.
2022-08-15T09:52:58.5545655Z *** Store compile log to [c:\Run\DevOps\compilelog.txt]
2022-08-15T09:52:58.5595740Z *** Start processing compile results done.
2022-08-15T09:52:58.5643235Z *** Transfer App Artifact from Docker container.
2022-08-15T09:52:59.7603916Z ##[error]Der Pfad "c:\Run\DevOps\Default publisher_MyApp Test_1.0.16806.0.app" kann nicht gefunden werden, da er nicht vorhanden ist.
2022-08-15T09:53:00.0836148Z ##[section]Async Command Start: Add Build Tag
2022-08-15T09:53:00.0837159Z Build '16806' has following tags now: AL.Compiler.ALLanguage, AL.Analyzer.AppSourceCop, AL.Analyzer.UICop, AL.Analyzer.PerTenantExtensionCop, AL.Analyzer.CodeCop, BC.Platform.14.0.49057.0, BC.Version.14.39.49063.0, myimage-onprem-14.39.49063.0-de-10.0.17763.3287-ltsc2019, App.MyApp.1.0.16806.0
2022-08-15T09:53:00.0837977Z ##[section]Async Command End: Add Build Tag
2022-08-15T09:53:00.0838895Z ##[section]Async Command Start: Update Build Number
2022-08-15T09:53:00.0839386Z Update build number to 1.0.16806.0 for build 16806
2022-08-15T09:53:00.0839713Z ##[section]Async Command End: Update Build Number
2022-08-15T09:53:00.0840795Z ##[section]Finishing: Compile TestApp

Expected behavior In the ALOpsDockerCreate step I set includetesttoolkit to true, so I expected the test toolkit symbols to be present.

I am not sure if this is a bug or my assumption that the includetesttoolkit parameter is the same as the parameter in bccontainerhelper is wrong.

Screenshots

Additional context If I manually add the testtoolkit before compiling the test app, everything works as expected. But then it takes a few minutes to import the toolkit on each run and not just once when the image is created.

- task: PowerShell@2
  inputs:
    targetType: 'inline'
    script: |
      Import-TestToolkitToBcContainer -containerName $ENV:ALOPS_DOCKER_HOSTNAME -ImportAction Overwrite
waldo1001 commented 2 years ago

I don't see reference for the assert in your app.json .. .

can you add this:

  "test": "14.0.0.0"
JohnnyUndercover commented 2 years ago

Thanks, that fixed it!

I didn't think about that something was missing in the app.json because it worked in vs code..

Just in case someone is having the same problems: After adding "test": "14.0.0.0" to the app.json, i also needed to change "import_testtoolkit" to "true", because without i got the follwing error:

[error]Run-Test-Exception: Cannot open page 130409. You might need to import the test toolkit to the container and/or remove the folder and retry. You might also have URL or Company name wrong.

The changed task in the pipline

- task: ALOpsAppTest@1
  displayName: 'ALOPS - Run TestSuite'
  inputs:
    usedocker: true
    import_action: "Skip"
    show_available_tests: true
    import_testtoolkit: true
    failed_test_action: 'Ignore'
  continueOnError: true