Next: release method, Previous: sleep method, Up: MIN2Lua API
The request
functionality is used to request an event. As a parameter it takes the name of the event to be requested and as an optional second parameter the event type which can be StateEvent or IndicationEvent. By default it is StateEvent.
Examples:
function case_function() -- request example state event min.request("Event1"); end function case_function() -- request example state event 2 min.request("Event1",StateEvent); end function case_function() -- request example indication event min.request("Event1",IndicationEvent); end
Note that it is needed to release event after it has been requested.
Method request
may be also used to request an event from slave. See Remote test case execution.
function case_function() -- remote example slavehnd = min.slave_allocate(SlaveTypePhone,"Slave1"); slavehnd:request( "Event1"); min.slave_free(slavehnd); end