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...
Answered

UAT

(5) ShareShare
ReportReport
Posted on by 133
Looking for valid testing scripts for AP, AR, GL 
 
 
I have the same question (0)
  • KP - Solution Architect Technical Profile Picture
    658 on at
    Hi,
     
    Do you need test scenarios for these in Business Central?
  • Suggested answer
    RockwithNav Profile Picture
    8,637 Super User 2025 Season 2 on at
    Can you tell briefly what exactly you are looking for?
     
  • DeanneR Profile Picture
    133 on at
     
    Need the scripts - more detailed tests please
  • Suggested answer
    KP - Solution Architect Technical Profile Picture
    658 on at
     
    You can create test codeunits of the processes that you want to test in the following way, and check in the test tool
     
    You can create scenarios like item creation,PO creation,SO creation PO/SO posting
    All these scenarios can be created in the test codeunit.
     
    codeunit 50110 "Item Creation Tests"
    {
        Subtype = Test;
        [Test]
        procedure CreateNewItem_ShouldInsertItem()
        var
            Item: Record Item;
            ItemNo: Code[20];
        begin
            ItemNo := 'TEST001';
            // Arrange: Make sure the item doesn't exist
            if Item.Get(ItemNo) then
                Error('Test item already exists.');
            // Act: Insert a new item
            Item.Init();
            Item."No." := ItemNo;
            Item.Description := 'Test Item';
            Item.Insert();
            // Assert: Check if item was inserted
            if not Item.Get(ItemNo) then
                Error('Item was not created.');
        end;
    }
     
     
    Thanks,
    KP
  • DeanneR Profile Picture
    133 on at
    @KP - Solution Architect Technical - no, not programming.  End user testing
  • Verified answer
    KP - Solution Architect Technical Profile Picture
    658 on at
    Hi 
     
    Please check below, it might help you.
     

    Module: Accounts Payable (AP)

    Test Case ID Scenario Description Steps Expected Result Status
    AP001 Create & post a purchase invoice Create vendor → Create & post invoice Vendor ledger entry is created  
    AP002 Apply a payment to an invoice Post payment journal against open invoice Vendor invoice is closed & applied  
    AP003 Record a purchase credit memo Create credit memo & apply to invoice Vendor balance reduced  
    AP004 Vendor prepayment Setup prepayment % → Create PO → Post prepayment Prepayment ledger entry created  
    AP005 Check vendor aging Review Vendor Aging report Correct aging bucket assignment  

    Module: Accounts Receivable (AR)

    Test Case ID Scenario Description Steps Expected Result Status
    AR001 Create & post a sales invoice Create customer → Create & post invoice Customer ledger entry created  
    AR002 Apply customer payment Post cash receipt journal → Apply to invoice Invoice is closed and applied  
    AR003 Post a sales credit memo Create & post credit memo → Apply to invoice Customer balance reduced  
    AR004 Customer prepayment Set up prepayment → Post prepayment invoice Prepayment applied correctly  
    AR005 Check customer aging Run Customer Aging report Balances are categorized correctly  

    Module: General Ledger (GL)

    Test Case ID Scenario Description Steps Expected Result Status
    GL001 Create and post general journal Enter GL lines with balancing account → Post Entries appear in GL Entry table  
    GL002 Reverse a journal entry Use “Reverse Transaction” action Original entry reversed  
    GL003 Trial balance report Run Trial Balance for current month Total debits = total credits  
    GL004 Post recurring journal Set up recurring template → Post journal Entry created as scheduled  
    GL005 Account schedules (P&L/BS) Set up and run Account Schedule Accurate P&L or Balance Sheet displayed  
     
     
    Thanks,
    KP
  • Verified answer
    DeanneR Profile Picture
    133 on at
    @KP - Solution Architect Technical  Yes - this is what I'm looking for.  Do you have more tests for these roles?  (thank you for what you posted)
  • Matteo Fiocco Profile Picture
    260 on at
     
    Module Test Case Description Main Step Expected Result Status (Pass/Fail)
    AP Vendor Creation Create a vendor card with bank info and posting groups Enter new vendor in the vendor list Vendor is saved with complete and correct details  
    AP Purchase Invoice Posting Post invoice linked to a Purchase Order Create and post invoice from PO Correct posting with amounts, VAT, and G/L accounts  
    AP Purchase Credit Memo Enter and apply a credit memo to an invoice Create credit memo and apply it to invoice Vendor balance is correctly reduced  
    AP Payment via Payment Journal Simulate vendor payment Fill and post payment journal Bank account is updated, vendor entry is closed  
    AR Customer Creation Create a customer card with payment terms and dimensions Enter new customer in customer list Customer is saved with valid master data  
    AR Sales Invoice Posting Post manual or order-based sales invoice Create and post sales invoice Correct G/L entries, customer balance updated  
    AR Cash Receipt via Journal Simulate customer payment Enter and post cash receipt journal Customer balance updated, entry closed  
    AR Sales Credit Memo Create and apply credit memo to sales invoice Create credit memo and apply it Correct reversal of sales and G/L entries  
    GL Manual Journal Entry Enter manual G/L entry with VAT and dimensions Use general journal Entry posted with correct cost centers and VAT  
    GL Close Accounting Period Test monthly/year-end period closing Perform period close operation Period locked, balances carried forward correctly  
    GL Trial Balance and COA Validation Check Chart of Accounts and trial balance correctness Run trial balance report Accurate financial data shown in the report  
  • DeanneR Profile Picture
    133 on at
    @Matteo Fiocco  Thank you Matteo
     
    Is this located on a website anywhere?  I'd love to get all of this information in one shot, please.
  • DeanneR Profile Picture
    133 on at
    @KP - Solution Architect Technical  do you have the complete list?  Where can I find this?
     
    Thanks in advance

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,606

#2
YUN ZHU Profile Picture

YUN ZHU 931 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans