PRINT

System Testing Test Script Language.

Syntax

PRINT <identifier>, <expression>

Description

The PRINT instruction prints the value of <expression> in the generated reports. The identifier names the value.

<expression> must be a C integer expression.

The same identifier can be used in different PRINT instructions.

Example

#int hp = 3;

#int ds = 5;

TIMER time

PROC init (int sock_type)

...

PRINT SockTypeValue, sockType

...

END PROC

SCENARIO Main

...

CALL init( AF_UNIX )

PRINT HpDs, (hp+ds)*10

PRINT elapsedTime, TIME (time)

...

END SCENARIO

Related Topics

TIME | TIMER | VAR