---
title: "Codeunit 149002 BCPT Role Wrapper, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/149002-bcpt-role-wrapper/points/
object: https://jonas-paprotka.de/ref/codeunit/149002-bcpt-role-wrapper/
app: "Performance Toolkit"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/149002-bcpt-role-wrapper/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 149002 BCPT Role Wrapper, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/149002-bcpt-role-wrapper/points/

3 procedures and triggers with a step in src/Tools/Performance Toolkit/App/src/BCPTRoleWrapper.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 25](https://jonas-paprotka.de/ref/codeunit/149002-bcpt-role-wrapper/source/#L25), trigger.

- [33](https://jonas-paprotka.de/ref/codeunit/149002-bcpt-role-wrapper/source/#L33) calls `SetBCPTLine`
- [38](https://jonas-paprotka.de/ref/codeunit/149002-bcpt-role-wrapper/source/#L38) calls `InitializeBCPTLineForRun`
- [39](https://jonas-paprotka.de/ref/codeunit/149002-bcpt-role-wrapper/source/#L39) calls `SetBCPTHeader`
- [44](https://jonas-paprotka.de/ref/codeunit/149002-bcpt-role-wrapper/source/#L44) calls `ExecuteBCPTLine`

## ExecuteBCPTLine

[Line 62](https://jonas-paprotka.de/ref/codeunit/149002-bcpt-role-wrapper/source/#L62), local.

- [86](https://jonas-paprotka.de/ref/codeunit/149002-bcpt-role-wrapper/source/#L86) calls `GetAndClearAccumulatedWaitTimeMs`
- [87](https://jonas-paprotka.de/ref/codeunit/149002-bcpt-role-wrapper/source/#L87) calls `GetAndClearNoOfLogEntriesInserted`
- [89](https://jonas-paprotka.de/ref/codeunit/149002-bcpt-role-wrapper/source/#L89) calls [Codeunit 149005 BCPT Line](https://jonas-paprotka.de/ref/codeunit/149005-bcpt-line/) `StartScenario`
- [90](https://jonas-paprotka.de/ref/codeunit/149002-bcpt-role-wrapper/source/#L90) raises `OnBeforeExecuteIteration`
- [91](https://jonas-paprotka.de/ref/codeunit/149002-bcpt-role-wrapper/source/#L91) calls `ExecuteIteration`
- [93](https://jonas-paprotka.de/ref/codeunit/149002-bcpt-role-wrapper/source/#L93) calls [Codeunit 149005 BCPT Line](https://jonas-paprotka.de/ref/codeunit/149005-bcpt-line/) `EndScenario`
- [122](https://jonas-paprotka.de/ref/codeunit/149002-bcpt-role-wrapper/source/#L122) calls [Codeunit 149004 BCPT Header](https://jonas-paprotka.de/ref/codeunit/149004-bcpt-header/) `DecreaseNoOfTestsRunningNow`

## ExecuteIteration

[Line 125](https://jonas-paprotka.de/ref/codeunit/149002-bcpt-role-wrapper/source/#L125), local.

- [130](https://jonas-paprotka.de/ref/codeunit/149002-bcpt-role-wrapper/source/#L130) calls `SetBCPTLine`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
