Used to find out whether an automatic test is currently run or not.
Remark: The automatic tests can be run on the windows, classes or procedures only.
IF InAutomaticTestMode() = True THEN
Trace("CustomerNum variable: " + CustomerNum)
END
Syntax
<Result> = InAutomaticTestMode()
<Result>: Boolean
- True if an automatic test is currently run,
- False otherwise.
Remarks
Availability of the function
InAutomaticTestMode can be used in all IDEs to allow for cross-platform code. Functions or procedures that use InAutomaticTestMode can be shared between several products without generating any compilation error.
Business / UI classification: Neutral code