web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Assert codeunit not found

(0) ShareShare
ReportReport
Posted on by 390

Hello everyone,

I was creating a testing code unit for a custom table. But when I am trying to use "Assert" codeunit as a variable it is raising an error that "Assert codeunit not found'. I am not using dockers as I don't know how to use it. Maybe I have to install NavTestToolKit first. But I do not know how to install it. Kindly help. 

I have the same question (0)
  • Suggested answer
    Mohana Yadav Profile Picture
    60,967 Super User 2025 Season 2 on at
    RE: Assert codeunit not found

    you can find the test libraries under \Applications\testframework folder of the DVD

  • Muhammad Anas Naeemi Profile Picture
    390 on at
    RE: Assert codeunit not found

    Hi Mohana, I didn't get that.

  • Suggested answer
    Mohana Yadav Profile Picture
    60,967 Super User 2025 Season 2 on at
    RE: Assert codeunit not found

    you have to install test library apps which are available in the DVD folder for BC OnPrem

  • Muhammad Anas Naeemi Profile Picture
    390 on at
    RE: Assert codeunit not found

    I got the folder but there is no setup for installing libraries. can you show me?

  • Suggested answer
    Mohana Yadav Profile Picture
    60,967 Super User 2025 Season 2 on at
    RE: Assert codeunit not found

    You have to install like the other business central apps.

    learn.microsoft.com/.../devenv-how-publish-and-install-an-extension-v2

  • Muhammad Anas Naeemi Profile Picture
    390 on at
    RE: Assert codeunit not found

    The thing is that in my powershell no NAV commands are running.

  • Muhammad Anas Naeemi Profile Picture
    390 on at
    RE: Assert codeunit not found

    The term 'Publish-NAVApp' is not recognized as the name of a cmdlet, function, script file, or

    operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try

    again.

  • Suggested answer
    Mohana Yadav Profile Picture
    60,967 Super User 2025 Season 2 on at
    RE: Assert codeunit not found

    Please run this command first

    Import-Module 'C:\Program Files\Microsoft Dynamics 365 Business Central\210\Service\NavAdminTool.ps1'

    Path may change depending on the version

  • Muhammad Anas Naeemi Profile Picture
    390 on at
    RE: Assert codeunit not found

    I have installed it but still not showing up in AL Object designer.

    pastedimage1680767585154v1.png

  • Suggested answer
    Mohana Yadav Profile Picture
    60,967 Super User 2025 Season 2 on at
    RE: Assert codeunit not found

    Did you install as well? Install-NAVApp?

    Add test: parameter like application and platform in app.json

    Download symbols

    try now

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,327

#2
Sumit Singh Profile Picture

Sumit Singh 2,734

#3
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,599

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans