Skip to content

[Bug]: Run-TestsInBcContainer fails with "Cannot open page 130455" on BC 27.5 — Import-TestToolkitToBcContainer reports success but does not install Tests-TestRunner #4113

Description

@JaniEnora

BCContainerHelper version

6.1.11

Describe the issue

On BC 27.5 sandbox artifacts (country: NO), Import-TestToolkitToBcContainer completes and prints "TestToolkit successfully imported", but Run-TestsInBcContainer immediately fails with:

Cannot open page 130455. You might need to import the test toolkit to the container and/or remove the folder C:\ProgramData\BcContainerHelper\Extensions\...\PsTestTool and retry. You might also have URL or Company name wrong.

The root cause is that Import-TestToolkitToBcContainer only installs Tests-TestLibraries and AI Test Toolkit — it does not install Tests-TestRunner. However, Run-TestsInBcContainer (PsTestFunctions.ps1: line 598) still tries to open page 130455, which lives in Tests-TestRunner. Since Tests-TestRunner is absent from BC 27.5 artifacts (replaced by AI Test Toolkit), the page does not exist and the run fails.

Steps to reproduce

  1. Create a BC 27.5 container with installTestRunner=$true, installTestFramework=$true, installTestLibraries=$true via Run-AlPipeline (e.g. via AL-Go v8.1)
  2. Observe that Tests-TestLibraries and AI Test Toolkit are installed, but not Tests-TestRunner
  3. Import-TestToolkitToBcContainer reports TestToolkit successfully imported
  4. Run-TestsInBcContainer fails: Cannot open page 130455

Artifact used

https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/27.5.46862.47891/no

Installed apps after import (relevant)

App ID Name Installed
5d86850b-0d76-4eca-bd7b-951ad998e997 Tests-TestLibraries
2156302a-872f-4568-be0b-60968696f0d5 AI Test Toolkit
(classic test runner) Tests-TestRunner ❌ missing

Expected behavior

Either:

  • Run-TestsInBcContainer should detect that AI Test Toolkit is installed and use its page instead of 130455, or
  • Import-TestToolkitToBcContainer should still install Tests-TestRunner if present in the artifacts, and only fall back to AI Test Toolkit if it is not

Stack trace

at Run-TestsInBcContainer, BcContainerHelper\6.1.11\BcContainerHelper\AppHandling\Run-TestsInNavContainer.ps1: line 598
at <ScriptBlock>, Run-AlPipeline.ps1: line 1231
at Run-AlPipeline, Run-AlPipeline.ps1: line 1270

Additional context

  • Triggered via AL-Go v8.3 on a GitHub Actions runner (Windows Server 2025, hyperv isolation)
  • Container creation log shows includeTestToolkit=False (expected — toolkit is imported separately)
  • The import group ##[group]Importing test toolkit runs for ~113 seconds, installs TestLibraries and AI Test Toolkit, then exits with "TestToolkit successfully imported" — no error
  • ~90 seconds later, Run-TestsInBcContainer fails at page 130455

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions