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

Announcements

No record found.

News and Announcements icon
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 436

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
    61,204 Super User 2026 Season 1 on at

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

  • Muhammad Anas Naeemi Profile Picture
    436 on at

    Hi Mohana, I didn't get that.

  • Suggested answer
    Mohana Yadav Profile Picture
    61,204 Super User 2026 Season 1 on at

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

  • Muhammad Anas Naeemi Profile Picture
    436 on at

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

  • Suggested answer
    Mohana Yadav Profile Picture
    61,204 Super User 2026 Season 1 on at

    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
    436 on at

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

  • Muhammad Anas Naeemi Profile Picture
    436 on at

    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
    61,204 Super User 2026 Season 1 on at

    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
    436 on at

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

    pastedimage1680767585154v1.png

  • Suggested answer
    Mohana Yadav Profile Picture
    61,204 Super User 2026 Season 1 on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,946 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,177 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 555 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans