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

Standard tests Automated Testing BC 18.4 onPrem

(0) ShareShare
ReportReport
Posted on by 666

Good day,

I'm busy working through "Automated Testing in Microsoft Dynamics 365 BC" by Luc van Vugt.
On Page 42 he mentions Standard Tests provided by Microsoft. When I use Get Test Codeunits I donot get the standard Tests code units.
How do I fix my onPrem version to show the Standard Tests and Standard Libraries?

Also if there anyone that might have other real life practice examples for Automated Testing. Something like Creating and Posting a Sales Order or even for testing reports that would be highly appreciated.

I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,161 Moderator on at

    You need to install the test apps that you find on applications\TestFramework folder on your product DVD download.

    docs.microsoft.com/.../3-install-run-test-toolkit

  • Suggested answer
    Hein Kruger Profile Picture
    666 on at

    Solved:

    There was a couple of steps to get the standard tests and Libraries.

    From C:\BC18.4 W1\Applications\testframework you need to install the

    TestLibraries :: Any,Assert,Variable Storage,Permissions Mock

    Performancetoolkit:: (In this order)- Performance Toolkit, Performance Toolkit Tests, Performance Toolkit Samples

    Test Runner:: Test Runner

    2.From “C:\BC18.4 W1\Applications\BaseApp\Test” install the

    “Microsoft_Tests-TestLibraries.app” first. After Publishing and installing this app you should be able to install the rest of the test apps in the folder.

    There are alot of test apps on the DVD. Again, Install the Test Library in the folder first (if there is one ) and then the app/s.

    system application

    BaseApp

    CompanyHub

    Email- Current User Connector

    Email- Microsoft 365 Connector

    Email- Outlook REST API

    Email- SMTP Connector

    EssentialBusinessHeadlines

    LatePaymentPredictor

    onprem permissions

    paypalpaymentsstandard

    salesandinventoryforecast

    vatgroupmanagement

  • Suggested answer
    Hein Kruger Profile Picture
    666 on at

    add Automated Orders Solved:

    install the apps in Testframework and install BaseApp\Test” install the “Microsoft_Tests-TestLibraries.app”

    Here some Code to add 5 Purchase Orders.
    Note: If you want to save the new Purchase Orders to the database, add Testisolation= Disabled, if Testisolation is enabled then the Created purchase Order will do an Auto Rollback.

    pastedimage1638254137738v1.png

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,870 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,138 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 915 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans