Codeunit "BCPT Test Suite"
ID 149006
Namespace: System.Tooling
Methods
CreateTestSuiteHeader
procedure CreateTestSuiteHeader(SuiteCode: Code[10], SuiteDescription: Text[50], DurationInMinutes: Integer, DefaultMinUserDelayInMs: Integer, DefaultMaxUserDelayInMs: Integer, OneDayCorrespondsToMinutes: Integer, Tag: Text[20])
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
SuiteDescription
|
Text[50] |
|
DurationInMinutes
|
Integer |
|
DefaultMinUserDelayInMs
|
Integer |
|
DefaultMaxUserDelayInMs
|
Integer |
|
OneDayCorrespondsToMinutes
|
Integer |
|
Tag
|
Text[20] |
|
CreateTestSuiteHeader
procedure CreateTestSuiteHeader(SuiteCode: Code[10], SuiteDescription: Text[50])
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
SuiteDescription
|
Text[50] |
|
CreateUpdateTestSuiteHeader
procedure CreateUpdateTestSuiteHeader(SuiteCode: Code[10], SuiteDescription: Text[50], DurationInMinutes: Integer, DefaultMinUserDelayInMs: Integer, DefaultMaxUserDelayInMs: Integer, OneDayCorrespondsToMinutes: Integer, Tag: Text[20])
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
SuiteDescription
|
Text[50] |
|
DurationInMinutes
|
Integer |
|
DefaultMinUserDelayInMs
|
Integer |
|
DefaultMaxUserDelayInMs
|
Integer |
|
OneDayCorrespondsToMinutes
|
Integer |
|
Tag
|
Text[20] |
|
TestSuiteExists
procedure TestSuiteExists(SuiteCode: Code[10]): Boolean
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
Returns
TestSuiteLineExists
procedure TestSuiteLineExists(SuiteCode: Code[10], CodeunitID: Integer): Boolean
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
CodeunitID
|
Integer |
|
Returns
TestSuiteLineExists
procedure TestSuiteLineExists(SuiteCode: Code[10], CodeunitID: Integer, var LineNo: Integer): Boolean
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
CodeunitID
|
Integer |
|
LineNo
|
Integer |
|
Returns
TestSuiteLineExists
procedure TestSuiteLineExists(SuiteCode: Code[10], CodeunitID: Integer, ParameterFilterStr: Text, var LineNo: Integer): Boolean
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
CodeunitID
|
Integer |
|
ParameterFilterStr
|
Text |
|
LineNo
|
Integer |
|
Returns
SetTestSuiteDuration
procedure SetTestSuiteDuration(SuiteCode: Code[10], DurationInMinutes: Integer)
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
DurationInMinutes
|
Integer |
|
GetTestSuiteDuration
procedure GetTestSuiteDuration(SuiteCode: Code[10]): Integer
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
Returns
SetTestSuiteDefaultMinUserDelay
procedure SetTestSuiteDefaultMinUserDelay(SuiteCode: Code[10], DelayInMs: Integer)
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
DelayInMs
|
Integer |
|
GetTestSuiteDefaultMinUserDelay
procedure GetTestSuiteDefaultMinUserDelay(SuiteCode: Code[10]): Integer
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
Returns
SetTestSuiteDefaultMaxUserDelay
procedure SetTestSuiteDefaultMaxUserDelay(SuiteCode: Code[10], DelayInMs: Integer)
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
DelayInMs
|
Integer |
|
GetTestSuiteDefaultMaxUserDelay
procedure GetTestSuiteDefaultMaxUserDelay(SuiteCode: Code[10]): Integer
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
Returns
SetTestSuite1DayCorresponds
procedure SetTestSuite1DayCorresponds(SuiteCode: Code[10], DurationInMinutes: Integer)
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
DurationInMinutes
|
Integer |
|
GetTestSuite1DayCorresponds
procedure GetTestSuite1DayCorresponds(SuiteCode: Code[10]): Integer
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
Returns
SetTestSuiteTag
procedure SetTestSuiteTag(SuiteCode: Code[10], Tag: Text[20])
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
Tag
|
Text[20] |
|
GetTestSuiteTag
procedure GetTestSuiteTag(SuiteCode: Code[10]): Text[20]
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
Returns
Type |
Description |
Text[20] |
|
AddLineToTestSuiteHeader
procedure AddLineToTestSuiteHeader(SuiteCode: Code[10], CodeunitId: Integer, NoOfSessions: Integer, Description: Text[50], MinUserDelayInMs: Integer, MaxUserDelayInMs: Integer, DelayBtwnIterInSecs: Integer, RunInForeground: Boolean, Parameters: Text[1000]): Integer
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
CodeunitId
|
Integer |
|
NoOfSessions
|
Integer |
|
Description
|
Text[50] |
|
MinUserDelayInMs
|
Integer |
|
MaxUserDelayInMs
|
Integer |
|
DelayBtwnIterInSecs
|
Integer |
|
RunInForeground
|
Boolean |
|
Parameters
|
Text[1000] |
|
Returns
AddLineToTestSuiteHeader
procedure AddLineToTestSuiteHeader(SuiteCode: Code[10], CodeunitId: Integer): Integer
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
CodeunitId
|
Integer |
|
Returns
AddLineToTestSuiteHeader
procedure AddLineToTestSuiteHeader(SuiteCode: Code[10], CodeunitId: Integer, NoOfSessions: Integer, Description: Text[50], MinUserDelayInMs: Integer, MaxUserDelayInMs: Integer, DelayBtwnIterInSecs: Integer, RunInForeground: Boolean, Parameters: Text[1000], DelayType: Enum "BCPT Line Delay Type"): Integer
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
CodeunitId
|
Integer |
|
NoOfSessions
|
Integer |
|
Description
|
Text[50] |
|
MinUserDelayInMs
|
Integer |
|
MaxUserDelayInMs
|
Integer |
|
DelayBtwnIterInSecs
|
Integer |
|
RunInForeground
|
Boolean |
|
Parameters
|
Text[1000] |
|
DelayType
|
System.Tooling."BCPT Line Delay Type" |
|
Returns
SetTestSuiteLineNoOfSessions
procedure SetTestSuiteLineNoOfSessions(SuiteCode: Code[10], LineNo: Integer, NoOfSessions: Integer)
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
LineNo
|
Integer |
|
NoOfSessions
|
Integer |
|
SetTestSuiteLineDescription
procedure SetTestSuiteLineDescription(SuiteCode: Code[10], LineNo: Integer, Description: Text[50])
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
LineNo
|
Integer |
|
Description
|
Text[50] |
|
SetTestSuiteLineMinUserDelay
procedure SetTestSuiteLineMinUserDelay(SuiteCode: Code[10], LineNo: Integer, DelayInMs: Integer)
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
LineNo
|
Integer |
|
DelayInMs
|
Integer |
|
SetTestSuiteLineMaxUserDelay
procedure SetTestSuiteLineMaxUserDelay(SuiteCode: Code[10], LineNo: Integer, DelayInMs: Integer)
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
LineNo
|
Integer |
|
DelayInMs
|
Integer |
|
SetTestSuiteLineDelayBtwnIter
procedure SetTestSuiteLineDelayBtwnIter(SuiteCode: Code[10], LineNo: Integer, DelayInSecs: Integer)
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
LineNo
|
Integer |
|
DelayInSecs
|
Integer |
|
SetTestSuiteLineRunInForeground
procedure SetTestSuiteLineRunInForeground(SuiteCode: Code[10], LineNo: Integer, RunInForeground: Boolean)
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
LineNo
|
Integer |
|
RunInForeground
|
Boolean |
|
SetTestSuiteLineParameters
procedure SetTestSuiteLineParameters(SuiteCode: Code[10], LineNo: Integer, Parameters: Text[1000])
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
LineNo
|
Integer |
|
Parameters
|
Text[1000] |
|
IsAnyTestRunInProgress
procedure IsAnyTestRunInProgress(): Boolean
Returns
IsTestRunInProgress
procedure IsTestRunInProgress(SuiteCode: Code[10]): Boolean
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
|
Returns
Events
OnBeforeBCPTLineAddLogEntry
This event is raised before a log entry is added to the BCPT Line table.
It can be used to skip errors which are not relevant for the test suite. Like unused handler functions.
[IntegrationEvent(False,False)]
procedure OnBeforeBCPTLineAddLogEntry(SuiteCode: Code[10], CodeunitId: Integer, Description: Text, "Orig. Operation": Text, "Orig. ExecutionSuccess": Boolean, "Orig. Message": Text, var Operation: Text, var ExecutionSuccess: Boolean, var Message: Text)
Parameters
Name |
Type |
Description |
SuiteCode
|
Code[10] |
The test suite code
|
CodeunitId
|
Integer |
The id of the test codunit that is being run
|
Description
|
Text |
Description of the test on the "BCPT Line"
|
Orig. Operation
|
Text |
The test suite code
|
Orig. ExecutionSuccess
|
Boolean |
The test suite code
|
Orig. Message
|
Text |
The test suite code
|
Operation
|
Text |
Replacement operation that is currently executed
|
ExecutionSuccess
|
Boolean |
Replacement ExcecutionSuccess
|
Message
|
Text |
Replacement Message
|
See also