SysTestExecute::assert Method [AX 2012]
Validates if a Boolean expression is true or false. If the expression is false, the method writes to the active log and updates status of the test job.
Syntax
client server public static boolean assert(boolean _assertion, [SysTestLogMessage _logMessage])
Run On
Called
Parameters
- _assertion
Type: boolean
- _logMessage
Type: SysTestLogMessage Extended Data Type
Return Value
Type: boolean
The result of the validation of the Boolean expression.
Remarks
If the method is called when there is no SysTestExecute Class object in the global cache, an eventual error is passed to the regular info log.