Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run-BCPTTestsInBcContainer always fails #3361

Open
JoergPernberg opened this issue Feb 23, 2024 · 0 comments
Open

Run-BCPTTestsInBcContainer always fails #3361

JoergPernberg opened this issue Feb 23, 2024 · 0 comments
Assignees
Labels

Comments

@JoergPernberg
Copy link

JoergPernberg commented Feb 23, 2024

PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!

Describe the issue
Running Run-BCPTTestsInBcContainer in a container with 23.4.15643.15786 sandbox always throws an error

Scripts used to create container and cause the issue

Run-BCPTTestsInBcContainer `
    -containerName navserver `
    -tenant bcpt `
    -companyName BCPT `
    -testPage 149002 `
    -suiteCode 'Test' `
    -credential $Credential 

**Full output of scripts**

Invoke GET on https://192.168.244.78:7048/BC/api/v1.0/companies?$filter=name%20eq%20%27BCPT%27&tenant=bcpt
Using Company ID 7959e7d5-44cf-ee11-aaf0-f300c20e2f64
Using testpage 149002
Using Suitecode Test
Service Url http://localhost:80/BC/cs/?tenant=bcpt&company=BCPT
Running Performance Tests...
The passed path for -BCPTTestRunnerInternalFolderPath seem to be relative path, converting to absolute.
Absolute path is C:\Applications\testframework\TestRunner\Internal
Importing AL Test Runner from C:\Applications\testframework\TestRunner\Internal\BCPTTestRunnerInternal.psm1
WARNING: The names of some imported commands from the module
'ALTestRunnerInternal' include unapproved verbs that might make them less
discoverable. To find the commands with unapproved verbs, run the Import-Module
command again with the Verbose parameter. For a list of approved verbs, type
Get-Verb.
Installing MSAL.PS...
Exception calling "ShouldContinue" with "2" argument(s): "Object reference not set to an instance of an object."

Container Free Physical Memory: 5.2Gb

Services in container navserver:

  • MicrosoftDynamicsNavServer$BC is Running
  • MSSQL$SQLEXPRESS is Running

Run-BCPTTestsInBcContainer Telemetry Correlation Id: 2ef82eb8-4768-4127-a81d-c063bfc12074
Exception calling "ShouldContinue" with "2" argument(s): "Object reference not set to an instance of an object."
At C:\Program Files\WindowsPowerShell\Modules\bccontainerhelper\6.0.5\ContainerHandling\Invoke-ScriptInNavContainer.ps1:288 char:25
throw $errorMessage
~~~~~~~~~~~~~~~~~~~
CategoryInfo : OperationStopped: (Exception calli... of an object.":String) [], RuntimeException
FullyQualifiedErrorId : Exception calling "ShouldContinue" with "2" argument(s): "Object reference not set to an instance of an object."

Additional context
It happens all the time and never worked before

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants