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. 

  • Suggested answer
    Mohana Yadav Profile Picture
    61,248 Super User 2026 Season 2 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,248 Super User 2026 Season 2 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,248 Super User 2026 Season 2 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,248 Super User 2026 Season 2 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,248 Super User 2026 Season 2 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 796 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 481 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 377 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans