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

Notifications

Announcements

No record found.

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 629

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,111 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
    629 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
    629 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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,116

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 764 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 635 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans