Functions of the MBT Applib
| EPTF_MBT_LGen_Functions | Functions of the MBT Applib |
| f_EPTF_MBT_init | Function to initialize MBT behaviour |
| f_EPTF_MBT_cleanup_CT | Cleanup function of the MBT Applib |
| f_EPTF_MBT_declareEvents | Register the EVents used by the MBT AppLib |
| f_EPTF_MBT_declareTestSteps | Register the TestSteps used by the MBT AppLib |
| f_EPTF_MBT_bindEntity | Bind function of the MBT AppLib |
| f_EPTF_MBT_unbindEntity | Unbind function of the MBT AppLib |
| f_EPTF_MBT_resetEntity | Reset function of the MBT AppLib |
| f_EPTF_MBT_TestStep_invokeTestStep | General Purpose wrapper TestStep to select the Proper TestStep based on its actual parameters and invokes it. |
| f_EPTF_MBT_TestStep_sendUserResponse | TestStep function to generate the User response,. |
| f_EPTF_MBT_TestStep_invokeUserFunction | TestStep function to invoke user specific function |
| f_EPTF_MBT_Listener_catchEntityEvents | This is a listener to catch all entity level events. |
| f_EPTF_MBT_Listener_catchGenericEvents | This is a listener to catch all generic level events. |
| as_EPTF_MBT_PCO_Handler | EventHandler of the MBT AppLib |
| f_EPTF_MBT_initLGenFsm | This function inits the MBT FSM |
| f_EPTF_MBT_Tester_init | This function inits the EPTF_MBT_Tester_CT |
| f_MBT_execute | This function executes a test step on specifid FSM (which must run the FSM_MBT) FSM. |
| f_MBT_waitFor | This function waits for specified EPTF event to arrive. |
| f_MBT_dispatch | This function sends an EPTF event to an FSM. |
| f_MBT_activateFsm | This function activates an FSM on an entity. |
| f_convert_FsmAddr2TestStepArgs | Utility function to convert an FsmAddr address to a TestStepArgs value. |
function f_EPTF_MBT_init ( in charstring pl_selfName, in integer pl_selfId, in charstring pl_entityNamePrefix, in integer pl_numEntities : = 0, in EPTF_LGenBase_BehaviorContextBinder_FT pl_bind : = refers(f_EPTF_MBT_bindEntity), in EPTF_LGenBase_BehaviorContextHandler_FT pl_reset : = refers(f_EPTF_MBT_resetEntity), in EPTF_LGenBase_BehaviorContextHandler_FT pl_unbind : = refers(f_EPTF_MBT_unbindEntity) ) runs on EPTF_MBT_LGen_CT
Function to initialize MBT behaviour
| pl_selfName | in charstring - the components self name |
| pl_selfId | in integer - component self id |
| pl_entityNamePrefix | in charstring - entity name prefix |
| pl_numEntities | in integer - number of entities |
| pl_bind | in <EPTF_LGenBase_BehaviorContextBinder_FT> - behaviour context bind callback function |
| pl_reset | in <EPTF_LGenBase_BehaviorContextHandler_FT> - behaviour context reset callback function |
| pl_unbind | in <EPTF_LGenBase_BehaviorContextHandler_FT> - behaviour context unbind callback function |
-
-
-
function f_EPTF_MBT_TestStep_invokeTestStep( in EPTF_LGenBase_TestStepArgs pl_ptr ) runs on EPTF_MBT_LGen_CT
General Purpose wrapper TestStep to select the Proper TestStep based on its actual parameters and invokes it. Otherwise generates a log&console statement
in EPTF_LGenBase_TestStepArgs pl_ptr
-
-
-
function f_EPTF_MBT_TestStep_sendUserResponse( in EPTF_LGenBase_TestStepArgs pl_ptr ) runs on EPTF_MBT_LGen_CT
TestStep function to generate the User response,. It shall be invoked in case of the unhandled events (FSM description) based on the generated event it sends back a response towards the Tester component
in EPTF_LGenBase_TestStepArgs pl_ptr
-
-
-
function f_EPTF_MBT_TestStep_invokeUserFunction( in EPTF_LGenBase_TestStepArgs pl_ptr ) runs on EPTF_MBT_LGen_CT
TestStep function to invoke user specific function
in EPTF_LGenBase_TestStepArgs pl_ptr
-
-
It seraches for the user declared function basedon its name (stored in a component variable) and invokes it.)
function f_EPTF_MBT_Listener_catchEntityEvents( EPTF_LGenBase_ReportedEventDescriptor pl_event, EPTF_IntegerList pl_listenerArgs ) runs on EPTF_MBT_LGen_CT
This is a listener to catch all entity level events. Because unhandled events in the FSM descriptor can catch only FSM level events.
in EPTF_LGenBase_ReportedEventDescriptor pl_event in EPTF_IntegerList pl_listenerArgs
-
-
-
function f_EPTF_MBT_Listener_catchGenericEvents( EPTF_LGenBase_ReportedEventDescriptor pl_event, EPTF_IntegerList pl_listenerArgs ) runs on EPTF_MBT_LGen_CT
This is a listener to catch all generic level events. Because unhandled events in the FSM descriptor can catch only FSM level events.
in EPTF_LGenBase_ReportedEventDescriptor pl_event in EPTF_IntegerList pl_listenerArgs
-
-
-
altstep as_EPTF_MBT_PCO_Handler() runs on EPTF_MBT_LGen_CT
EventHandler of the MBT AppLib
-
-
-
Handles the following cases In case of an incomming TestStep Request dispatches the c_EPTF_MBT_inputIdx_incomingTestStepRequest event incomming Config Request configure the LoadGens creates the entity goups activate the fsms...etc incomming Command Request executes the requested command - incomming User Request dispatches the c_EPTF_MBT_inputIdx_incomingUserRequest event
function f_EPTF_MBT_initLGenFsm ( in fcb_EPTF_MBT_customUserFunction p_userFunc, in fcb_EPTF_MBT_entityGroupCreated p_entityGroupCreateFunc ) runs on EPTF_MBT_LGen_CT
This function inits the MBT FSM
| in fcb_EPTF_MBT_customUserFunction p_userFunc | sets the callback that shall create the UserResponses |
| in fcb_EPTF_MBT_entityGroupCreated p_entityGroupCreateFunc | sets the callback to handle entity group created |
-
-
-
function f_MBT_execute( in charstring p_name, in EPTF_MBT_LGen_Definitions. FsmAddr p_addr, in EPTF_IntegerList p_params : = {}, in boolean p_lock : = true ) runs on EPTF_MBT_Tester_CT
This function executes a test step on specifid FSM (which must run the FSM_MBT) FSM. It is possible to make the function blocking until the test stepis executed by setting the p_lock parameter to true, but it will only work in case the component extends the EPTF_MBT_Tester_CT and EPTF_MBT_LGen_CT as well!
-
-
-
function f_MBT_waitFor( in charstring p_behavior, in template charstring p_name, in template EPTF_MBT_LGen_Definitions. FsmAddr p_addr, in float p_timeout : = 30.0 ) runs on EPTF_MBT_Tester_CT return boolean
This function waits for specified EPTF event to arrive. Please note, that until the waiting time runs out all the other incoming events are dropped.
-
-
function f_MBT_dispatch( in charstring p_bName, in integer p_iIndex, in EPTF_MBT_LGen_Definitions. FsmAddr p_addr ) runs on EPTF_MBT_Tester_CT
This function sends an EPTF event to an FSM.
-
-
-
function f_MBT_activateFsm( in charstring p_entityGroupName, in integer p_eIdx, in charstring p_fsmName, out FsmAddr p_fsmAddr ) runs on EPTF_MBT_Tester_CT return integer
This function activates an FSM on an entity.
-
-
function f_convert_FsmAddr2TestStepArgs( in EPTF_MBT_LGen_Definitions. FsmAddr p_addr ) return EPTF_LGenBase_TestStepArgs
Utility function to convert an FsmAddr address to a TestStepArgs value.
-
-
Function to initialize MBT behaviour
function f_EPTF_MBT_init ( in charstring pl_selfName, in integer pl_selfId, in charstring pl_entityNamePrefix, in integer pl_numEntities : = 0, in EPTF_LGenBase_BehaviorContextBinder_FT pl_bind : = refers(f_EPTF_MBT_bindEntity), in EPTF_LGenBase_BehaviorContextHandler_FT pl_reset : = refers(f_EPTF_MBT_resetEntity), in EPTF_LGenBase_BehaviorContextHandler_FT pl_unbind : = refers(f_EPTF_MBT_unbindEntity) ) runs on EPTF_MBT_LGen_CT
Cleanup function of the MBT Applib
function f_EPTF_MBT_cleanup_CT() runs on EPTF_MBT_LGen_CT
Register the EVents used by the MBT AppLib
function f_EPTF_MBT_declareEvents() runs on EPTF_MBT_LGen_CT
Register the TestSteps used by the MBT AppLib
function f_EPTF_MBT_declareTestSteps() runs on EPTF_MBT_LGen_CT
Bind function of the MBT AppLib
function f_EPTF_MBT_bindEntity( in integer pl_eIdx ) runs on EPTF_MBT_LGen_CT return EPTF_IntegerList
Unbind function of the MBT AppLib
function f_EPTF_MBT_unbindEntity( in integer pl_eIdx ) runs on EPTF_MBT_LGen_CT
Reset function of the MBT AppLib
function f_EPTF_MBT_resetEntity( in integer pl_eIdx ) runs on EPTF_MBT_LGen_CT
General Purpose wrapper TestStep to select the Proper TestStep based on its actual parameters and invokes it.
function f_EPTF_MBT_TestStep_invokeTestStep( in EPTF_LGenBase_TestStepArgs pl_ptr ) runs on EPTF_MBT_LGen_CT
TestStep function to generate the User response,.
function f_EPTF_MBT_TestStep_sendUserResponse( in EPTF_LGenBase_TestStepArgs pl_ptr ) runs on EPTF_MBT_LGen_CT
TestStep function to invoke user specific function
function f_EPTF_MBT_TestStep_invokeUserFunction( in EPTF_LGenBase_TestStepArgs pl_ptr ) runs on EPTF_MBT_LGen_CT
This is a listener to catch all entity level events.
function f_EPTF_MBT_Listener_catchEntityEvents( EPTF_LGenBase_ReportedEventDescriptor pl_event, EPTF_IntegerList pl_listenerArgs ) runs on EPTF_MBT_LGen_CT
This is a listener to catch all generic level events.
function f_EPTF_MBT_Listener_catchGenericEvents( EPTF_LGenBase_ReportedEventDescriptor pl_event, EPTF_IntegerList pl_listenerArgs ) runs on EPTF_MBT_LGen_CT
EventHandler of the MBT AppLib
altstep as_EPTF_MBT_PCO_Handler() runs on EPTF_MBT_LGen_CT
This function inits the MBT FSM
function f_EPTF_MBT_initLGenFsm ( in fcb_EPTF_MBT_customUserFunction p_userFunc, in fcb_EPTF_MBT_entityGroupCreated p_entityGroupCreateFunc ) runs on EPTF_MBT_LGen_CT
This function inits the EPTF_MBT_Tester_CT
function f_EPTF_MBT_Tester_init ( in charstring pl_selfName ) runs on EPTF_MBT_Tester_CT
This function executes a test step on specifid FSM (which must run the FSM_MBT) FSM.
function f_MBT_execute( in charstring p_name, in EPTF_MBT_LGen_Definitions. FsmAddr p_addr, in EPTF_IntegerList p_params : = {}, in boolean p_lock : = true ) runs on EPTF_MBT_Tester_CT
This function waits for specified EPTF event to arrive.
function f_MBT_waitFor( in charstring p_behavior, in template charstring p_name, in template EPTF_MBT_LGen_Definitions. FsmAddr p_addr, in float p_timeout : = 30.0 ) runs on EPTF_MBT_Tester_CT return boolean
This function sends an EPTF event to an FSM.
function f_MBT_dispatch( in charstring p_bName, in integer p_iIndex, in EPTF_MBT_LGen_Definitions. FsmAddr p_addr ) runs on EPTF_MBT_Tester_CT
This function activates an FSM on an entity.
function f_MBT_activateFsm( in charstring p_entityGroupName, in integer p_eIdx, in charstring p_fsmName, out FsmAddr p_fsmAddr ) runs on EPTF_MBT_Tester_CT return integer
Utility function to convert an FsmAddr address to a TestStepArgs value.
function f_convert_FsmAddr2TestStepArgs( in EPTF_MBT_LGen_Definitions. FsmAddr p_addr ) return EPTF_LGenBase_TestStepArgs
Describes the FSM address
type record FsmAddr