Skip to main content

Unit-Test-Block

Command Description

Any command can be added to the unit test block. The commands in the unit test block are only valid when the process block is run separately. The commands in the unit test block are executed first before the execution of the commands in the process block

Command Prototype

UnitTest

End UnitTest

Parameter Description

ParameterRequiredTypeDefaultDescription
NoneNoneNoneNoneNone
TracePrint("--------------------------------Unit test block------------ -------------------------") 
//-------------------------------------------------------------------------------
//[Remarks] Any command can be added to the unit test block. The commands in the unit test block are only valid when the process block is run alone. When running, the commands in the unit test block will be executed first, and then the commands in the process block will be executed. .
//Input parameters:
// None
//out parameters:
// None
TracePrint("Print 123, 456, 789 respectively, of which 456 is in the unit test block, the result is: ")

TracePrint(123)
UnitTest
Delay(1000)
TracePrint(456)
End UnitTest
TracePrint(789)