Share via


ReleaseUpdateCockpit::parmUnitTest Method [AX 2012]

Gets or sets the value that will determine whether the upgrade test will be performed.

Syntax

server public static boolean parmUnitTest([boolean _testOn])

Run On

Server

Parameters

  • _testOn
    Type: boolean
    A Boolean value that indicates whether to turn on the unit test.

Return Value

Type: boolean
true if the value that determines whether the upgrade test will be performed is true; otherwise, false.

Remarks

It is difficult to write a unit test for some upgrade classes. This value is a test hook to give us a way to skip or add some code when we are running a unit test or doing some testing locally.

See Also

Reference

ReleaseUpdateCockpit Class