| /////////////////////////////////////////////////////////////////////////////// |
| // Copyright (c) 2000-2018 Ericsson Telecom AB // |
| // // |
| // All rights reserved. This program and the accompanying materials // |
| // are made available under the terms of the Eclipse Public License v2.0 // |
| // which accompanies this distribution, and is available at // |
| // https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html // |
| /////////////////////////////////////////////////////////////////////////////// |
| |
| [LOGGING] |
| //FileMask := LOG_ALL | TTCN_TESTCASE | TTCN_STATISTICS | TTCN_ERROR | TTCN_ACTION //| DEBUG |
| FileMask := TTCN_ACTION //| DEBUG |
| ConsoleMask := TTCN_WARNING | TTCN_TESTCASE | TTCN_STATISTICS | TTCN_ERROR | TTCN_ACTION |
| LogFile := "%c@%h-%n-%r.log" |
| LogEventTypes := No |
| SourceInfoFormat := None |
| //SourceInfoFormat := Stack |
| LogEntityName := No |
| |
| [EXECUTE] |
| EPTF_ILog_demo.tc_EPTF_ILog_demo |
| |
| [MODULE_PARAMETERS] |
| //tsp_EPTF_LGenBaseDebugConfig := false |
| //tsp_EPTF_LGenBaseDebugTraffic := true |
| #tsp_EPTF_ILog_Test_responseWeights := {8.0,0.6,0.6,0.6}; |
| |
| tsp_EPTF_ILogDemo_fsm := { |
| name := "MAIN_FSM", |
| fsmParams := { |
| {timerList := {{name := "time",startValue :=5.0}}}, |
| {stateList := {"init","wait4BeginResp","wait4Invoke1Resp","wait4Invoke2Resp","wait4Invoke3Resp","wait4EndResp"}} |
| }, |
| table := { |
| extendedTable := { |
| { events2Listen := {events := {{ singleEvent := {bName:="EPTF_CLL_LGenBase",iName := "LGenBase: Start_the_traffic_case!",eventType := fsm}}}}, |
| cellRow := { statedCellRow := { |
| { |
| inState := {state := "init"}, |
| cell := { |
| actionList := { |
| {stepOrFunctionName :="LGenBase: StepFunction_timerStart",contextArgs := {timerName := "time"}}, |
| {stepOrFunctionName :="newChains", contextArgs := omit}, |
| {stepOrFunctionName :="ILog: shortLogNext", contextArgs := omit}, |
| {stepOrFunctionName :="connect", contextArgs := omit}, |
| {stepOrFunctionName :="ILog: shortLogNext", contextArgs := omit}, |
| {stepOrFunctionName :="sendBegin",contextArgs := omit} |
| }, |
| nextStateCalculation := omit, nextState := "wait4BeginResp" |
| } |
| }, |
| { |
| inState := {anyUndefinedState := {} }, |
| cell := { |
| actionList := { |
| {stepOrFunctionName :="ILog: shortLogNext", contextArgs := omit}, |
| {stepOrFunctionName :="logFailFooter",contextArgs := omit}, |
| {stepOrFunctionName :="ILog: logFailed",contextArgs := omit}, |
| {stepOrFunctionName :="LGenBase: StepFunction_trafficFailed",contextArgs := omit} |
| }, |
| nextStateCalculation := omit, nextState := omit |
| } |
| } |
| } |
| } |
| }, |
| { events2Listen := {events := {{ singleEvent := {bName:="ILog_Applib", iName := "OK",eventType := fsm}}}}, |
| cellRow := { statedCellRow := { |
| { |
| inState := {state := "init"}, |
| cell := { |
| actionList := { |
| {stepOrFunctionName :="ILog: shortLogNext", contextArgs := omit}, |
| {stepOrFunctionName :="logFailFooter",contextArgs := omit}, |
| {stepOrFunctionName :="ILog: logFailed",contextArgs := omit}, |
| {stepOrFunctionName :="LGenBase: StepFunction_trafficFailed",contextArgs := omit} |
| }, |
| nextStateCalculation := omit, nextState := omit |
| } |
| }, |
| { |
| inState := {stateList := {"wait4BeginResp","wait4Invoke1Resp","wait4Invoke2Resp"}}, |
| cell := { |
| actionList := { |
| {stepOrFunctionName :="LGenBase: StepFunction_timerStartOrRestart",contextArgs := {timerName:= "time"}}, |
| {stepOrFunctionName :="ILog: shortLogNext", contextArgs := omit}, |
| {stepOrFunctionName :="sendInvoke",contextArgs := omit} |
| }, |
| nextStateCalculation := omit, nextState := omit |
| } |
| }, |
| { |
| inState := {state := "wait4Invoke3Resp"}, |
| cell := { |
| actionList := { |
| {stepOrFunctionName :="LGenBase: StepFunction_timerStartOrRestart",contextArgs := {timerName:= "time"}}, |
| {stepOrFunctionName :="ILog: shortLogNext", contextArgs := omit}, |
| {stepOrFunctionName :="sendEnd",contextArgs := omit} |
| }, |
| nextStateCalculation := omit, nextState := "wait4EndResp" |
| } |
| }, |
| { |
| inState := {state := "wait4EndResp"}, |
| cell := { |
| actionList := { |
| {stepOrFunctionName :="LGenBase: StepFunction_timerCancelIfRunning",contextArgs := {timerName:= "time"}}, |
| {stepOrFunctionName :="ILog: shortLogNext", contextArgs := omit}, |
| {stepOrFunctionName :="disconnect",contextArgs := omit}, |
| {stepOrFunctionName :="ILog: shortLogNext", contextArgs := omit}, |
| {stepOrFunctionName :="logSuccessFooter",contextArgs := omit}, |
| {stepOrFunctionName :="ILog: logSuccess",contextArgs := omit}, |
| //{stepOrFunctionName :="ILog: deleteLog",contextArgs := omit}, |
| {stepOrFunctionName :="LGenBase: StepFunction_trafficSuccess",contextArgs := omit} |
| }, |
| nextStateCalculation := omit, nextState := "init" |
| } |
| } |
| } |
| } |
| }, |
| |
| { events2Listen := {events := {{ singleEvent := {bName:="ILog_Applib", iName := "OK",eventType := fsm}}}}, |
| cellRow := { statedCellRow := { |
| { |
| inState := {state := "wait4BeginResp"}, |
| cell := {actionList := {}, nextStateCalculation := omit, nextState := "wait4Invoke1Resp"} |
| }, |
| { |
| inState := {state := "wait4Invoke1Resp"}, |
| cell := {actionList := {}, nextStateCalculation := omit, nextState := "wait4Invoke2Resp"} |
| }, |
| { |
| inState := {state := "wait4Invoke2Resp"}, |
| cell := {actionList := {}, nextStateCalculation := omit, nextState := "wait4Invoke3Resp"} |
| } |
| } |
| } |
| }, |
| |
| { events2Listen := {events := {{ singleEvent := {bName:="Special behavior for timeout reporting", iName := "time",eventType := fsm}}}}, |
| cellRow := { statedCellRow := { |
| { |
| inState := {anyUndefinedState := {} }, |
| cell := { |
| actionList := { |
| {stepOrFunctionName :="LGenBase: StepFunction_timerCancelIfRunning",contextArgs := {timerName:= "time"}}, |
| {stepOrFunctionName :="ILog: shortLogNext", contextArgs := omit}, |
| {stepOrFunctionName :="timeout",contextArgs := omit}, |
| {stepOrFunctionName :="ILog: shortLogNext", contextArgs := omit}, |
| {stepOrFunctionName :="disconnect",contextArgs := omit}, |
| {stepOrFunctionName :="ILog: shortLogNext", contextArgs := omit}, |
| {stepOrFunctionName :="logTimeoutFooter",contextArgs := omit}, |
| {stepOrFunctionName :="ILog: logFailed",contextArgs := omit}, |
| {stepOrFunctionName :="LGenBase: StepFunction_trafficFailed",contextArgs := omit} |
| }, |
| nextStateCalculation := omit, nextState := "init" |
| } |
| } |
| } |
| } |
| }, |
| { events2Listen := {events := {{ singleEvent := {bName:="ILog_Applib", iName := "NOK",eventType := fsm}}}}, |
| cellRow := { statedCellRow := { |
| { |
| inState := {anyUndefinedState := {} }, |
| cell := { |
| actionList := { |
| {stepOrFunctionName :="LGenBase: StepFunction_timerCancelIfRunning",contextArgs := {timerName:= "time"}}, |
| {stepOrFunctionName :="ILog: shortLogNext",contextArgs := omit}, |
| {stepOrFunctionName :="disconnect",contextArgs := omit}, |
| {stepOrFunctionName :="ILog: shortLogNext", contextArgs := omit}, |
| {stepOrFunctionName :="logFailFooter",contextArgs := omit}, |
| {stepOrFunctionName :="ILog: logFailed",contextArgs := omit}, |
| {stepOrFunctionName :="LGenBase: StepFunction_trafficFailed",contextArgs := omit} |
| }, |
| nextStateCalculation := omit, nextState := omit |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |