Table of Contents

Codeunit "BCPT Test Context"

ID 149003
Namespace: System.Tooling

Exposes functions that can be used by the BCPT tests.

Properties

Name Value
SingleInstance True
Access Public

Methods

StartScenario

This method starts the scope of a test session where the performance numbers are collected.

procedure StartScenario(ScenarioOperation: Text)

Parameters

Name Type Description
ScenarioOperation Text

Label of the scenario.

EndScenario

This method ends the scope of a test session where the performance numbers are collected.

procedure EndScenario(ScenarioOperation: Text)

Parameters

Name Type Description
ScenarioOperation Text

Label of the scenario.

EndScenario

This method ends the scope of a test session where the performance numbers are collected.

procedure EndScenario(ScenarioOperation: Text, ExecutionSuccess: Boolean)

Parameters

Name Type Description
ScenarioOperation Text

Label of the scenario.

ExecutionSuccess Boolean

Result of the test execution.

UserWait

This method simulates a users delay between operations. This method is called by the BCPT test to represent a realistic scenario. The calculation of the length of the wait is done usign the parameters defined on the BCPT suite.

procedure UserWait()

GetParameters

Returns the paramater list associated with the sessions.

procedure GetParameters(): Text

Returns

Type Description
Text

GetParameter

Returns the requested paramater value associated with the session.

procedure GetParameter(ParameterName: Text): Text

Parameters

Name Type Description
ParameterName Text

Name of the parameter.

Returns

Type Description
Text

See also