Skip to main content

Notifications

Announcements

No record found.

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

Categories:
  • PConijn Profile Picture
    PConijn 32 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.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,995 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,610 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans