DEF_MESSAGE

System Testing Test Script Language.

Syntax

DEF_MESSAGE <message>, EV= <cmp_expression>

Description

The DEF_MESSAGE instruction allows you to define a reference <message> variable. In order to do this, you must define the reference values with <cmp_expression>.

The message variable is the reference event variable initialized by the DEF_MESSAGE instruction. It has to be declared by the MESSAGE instruction.

Associated Rules

The DEF_MESSAGE instruction can appear in a PROC, SCENARIO, INITIALIZATION, TERMINATION, or EXCEPTION block.

You may partially define a reference message. The undefined <cmp_expression> fields are not used to compare incoming messages.

Interface File

typedef struct {   

int type;   

struct {       

char app_name[8];       

unsigned char class_name;   

} data;   

char userdata[100];

} message_t;

Example

MESSAGE message_t: msg

SCENARIO first   

DEF_MESSAGE msg, EV= { code=>ConnectCF,

&                        data=>{ app_name=>"ATCMKD" }}

Related Topics

MESSAGEWAITTILVAR