Skip to main content

Notifications

Business Central forum
Suggested answer

Strange behavior of the BCPT Suite

Posted on by 35

Who 's also using the BCPT Suite and noticed some strange behavior?

This is a simple test, Insert 100 records.

codeunit 50502 "LoadLedgerLockTable"
{
    SingleInstance = true;

    trigger OnRun()
    begin
        If not IsInitialized or true then begin
            InitRun();
            IsInitialized := true;
        end;
        CreateLedgerEntries();
    end;

    var
        BCPTTestContext: Codeunit "BCPT Test Context";
        IsInitialized: Boolean;

    local procedure InitRun()
    var
    begin
    end;

    local procedure CreateLedgerEntries()
    var
        LedgerEntryLockTable: Record LedgerEntryLockTable;
        Counter: Integer;
    begin
        for Counter := 1 to 100 do begin
            BCPTTestContext.StartScenario('Add Ledger Locktable');
            LedgerEntryLockTable.Init();
            LedgerEntryLockTable.Insert(true);
            Commit();
            BCPTTestContext.EndScenario('Add Ledger Locktable');
            BCPTTestContext.UserWait();
        end;
    end;

}

Next step, configure a Test Suite

pastedimage1610568397550v1.png

Add the the correct codeunit

pastedimage1610571320785v5.png

pastedimage1610568489122v4.png

So far so good... let's summarize.

Run Codeunit in 10 sessions. At this moment we don't have a base.

I hit start and I wait... first of all, The screen doesn't get refreshed (so you don't know when the run is finished)

pastedimage1610575157123v6.png

Base version stays 0, version goes to 1

pastedimage1610575460915v7.png

If you want to see the "Log Entries" of session 1 (in fact 0), you get nothing

pastedimage1610575512460v8.png

Since the filter users "version No. = 1. I don't think this is ok? This should be the active "Version No."

If you run the test multiple times, the fields don't get filled in on the BCPT Suite Lines, so you can't compare againts you base run.

pastedimage1610575712973v9.png

I'm a bit confused here...

  • PConijn Profile Picture
    PConijn 49 on at
    Strange behavior of the BCPT Suite
    Hi,
     
    I have been fiddling around with BCPT and I am getting this same issue (we are currently testing on BC24.3). Have you ever been able to find a solution?
  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: Strange behavior of the BCPT Suite

    Hello,

    We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

    Thanks.

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

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,802 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,133 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,154

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans