blob: d39f1a1fb9e1f97011627517e279bbeeca9c6ac6 [file] [log] [blame]
///////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2000-2019 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 //
///////////////////////////////////////////////////////////////////////////////
[MAIN_CONTROLLER]
//TCPPort := 9999
[TESTPORT_PARAMETERS]
//*EPTF_guiPortIf.destIPAddr := "127.0.0.1"
*.EPTF_guiPortIf.use_connection_ASPs := "yes"
*.EPTF_guiPortIf.packet_hdr_length_offset := "0"
*.EPTF_guiPortIf.packet_hdr_nr_bytes_in_length := "4"
*.EPTF_guiPortIf.packet_hdr_byte_order := "MSB"
*.EPTF_guiPortIf.server_mode := "no"
*.EPTF_guiPortIf.halt_on_connection_reset := "no"
*.EPTF_pinger.localPort := "11420"
[MODULE_PARAMETERS]
tsp_xtdp_listen_addr := "127.0.0.1"
tsp_xtdp_listen_port := 11420
tsp_EPTF_UIHandler_headlessmode := false;
tsp_EPTF_Var_debug := false;
tsp_debug_EPTF_CS_Admin_Functions := false;
tsp_EPTF_LGenBaseDebug := false
tsp_EPTF_LGenBaseDebugTraffic := false
tsp_debug_EPTF_ExecCtrl_Functions := false;
tsp_debug_EPTF_ExecCtrl_UIHandler := false;
tsp_debug_EPTF_ExecCtrlClient_Functions :=false;
tsp_EPTF_CS_LGenHostnameList := {} // change this to the actual hostname(s), localhost will not work
//tsp_use_RuntimeGUI := false;
tsp_use_LoggingUI := false;
tsp_nof_A_CS_Admins := 1; // set to 0 to disable Stack A
tsp_nof_B_CS_Admins := 1; // set to 0 to disable Stack B
tsp_CS_Admin_A_HostList := {}
tsp_CS_Admin_B_HostList := {}
tsp_demoInterval := 150.0;
tsp_useLoadBalancing_A := true;
tsp_useLoadBalancing_B := false;
tsp_EPTF_GUI_Main_Window_Width := 820.0;
tsp_EPTF_GUI_Main_Window_Height := 630.0;
tsp_EPTF_GUI_Main_Window_Title := "Central Scheduling demo";
tsp_EPTF_Base_serialStopAllComponents := true;
tsp_ExecCtrl_manualControl := false;
tsp_LGenBase_BustCalcMethod := cs;
tsp_EPTF_Var_SyncInterval := 1.0; // also GUI refresh preiod
/*tsp_LoadRegulators := {
{
host := "",
name := "LoadReg",
loadToReach := 12.0
},
{
host := "",
name := "LoadReg2",
loadToReach := 25.0
}
}*/
/*
tsp_LGenBase_EntityGrpDeclarators := {
{name := "eg0", eType := "CS_Entity_Tc_A", eCount := 100},
{name := "eg1", eType := "CS_Entity_LGen_A", eCount := 5}
}
tsp_LGenBase_TcMgmt_tcTypeDeclarators2 := {
{
name := "TC_A0",
fsmName := "EPTF_CS_FSM_Tc",
entityType := "CS_Entity_Tc_A",
customEntitySucc := ""
}
};
tsp_LGenBase_TcMgmt_ScenarioDeclarators2 := {
{
name := "SC0",
tcList := {
{
tcName := "TC_A0",
startDelay := 0.0,
cpsToReach := 3.0,
enableEntities := true,
enable := true,
ranges := {
{
name := "range1",
enableSplit := false,
baseOffset := 0,
count := 100
}
},
params := {},
groupFinishConditions := {
nrOfExecStart := omit,
nrOfSuccesses := 100,
nrOfFails := omit,
nrOfGrpLoop := omit,
nrOfRangeLoop := omit,
execTime := omit,
entitiesFinished := false,
customFinishCondition := omit
},
entityFinishConditions := omit,
entityFinishActions := omit,
tcFinishActions := omit
}
}
}
}
tsp_EPTF_ExecCtrl_Scenario2EntityGroupList := {
{scenarioName:="SC0", eGrpName:="eg0",name:=omit}
}
*/
////////////////// EPTF R3
tsp_LGenBase_EntityGrpDeclarators := {
{name := "eg0", eType := "CS_Entity_Tc_A", eCount := 100},
{name := "eg1", eType := "CS_Entity_LGen_A", eCount := 10},
{name := "eg2", eType := "CS_Entity_Tc_B", eCount := 100},
{name := "eg3", eType := "CS_Entity_LGen_B", eCount := 5}
}
tsp_EPTF_ExecCtrl_Scenario2EntityGroupList := {
{scenarioName:="Scenario_A", eGrpName:="eg0",name:=omit},
{scenarioName:="Scenario_B", eGrpName:="eg2",name:=omit}
}
tsp_LGenBase_TcMgmt_tcTypeDeclarators2 := {
// TCs for entity type CS_Entity_Tc_A
{ // TCs running in preexec phase
name := "TC_A0_Pre",
fsmName := "EPTF_CS_FSM_Tc", // declared in EPTF CentralScheduling
entityType := "CS_Entity_Tc_A", // CS_Entity_Tc in EPTF CentralScheduling, "_A" supplied as a suffix by the application
customEntitySucc := ""
},
{
name := "TC_A1_Pre",
fsmName := "EPTF_CS_FSM_Tc",
entityType := "CS_Entity_Tc_A",
customEntitySucc := ""
},
{
name := "TC_A2_Pre",
fsmName := "EPTF_CS_FSM_Tc",
entityType := "CS_Entity_Tc_A",
customEntitySucc := ""
},
{
name := "TC_A3_Pre",
fsmName := "EPTF_CS_FSM_Tc",
entityType := "CS_Entity_Tc_A",
customEntitySucc := ""
},
{ // TCs running in loadgen phase
name := "TC_A0",
fsmName := "EPTF_CS_FSM_Tc",
entityType := "CS_Entity_Tc_A",
customEntitySucc := ""
},
{
name := "TC_A1",
fsmName := "EPTF_CS_FSM_Tc",
entityType := "CS_Entity_Tc_A",
customEntitySucc := ""
},
{
name := "TC_A2",
fsmName := "EPTF_CS_FSM_Tc",
entityType := "CS_Entity_Tc_A",
customEntitySucc := ""
},
{
name := "TC_A3",
fsmName := "EPTF_CS_FSM_Tc",
entityType := "CS_Entity_Tc_A",
customEntitySucc := ""
},
{ // TCs running in postexec phase
name := "TC_A0_Post",
fsmName := "EPTF_CS_FSM_Tc",
entityType := "CS_Entity_Tc_A",
customEntitySucc := ""
},
{
name := "TC_A1_Post",
fsmName := "EPTF_CS_FSM_Tc",
entityType := "CS_Entity_Tc_A",
customEntitySucc := ""
},
{
name := "TC_A2_Post",
fsmName := "EPTF_CS_FSM_Tc",
entityType := "CS_Entity_Tc_A",
customEntitySucc := ""
},
{
name := "TC_A3_Post",
fsmName := "EPTF_CS_FSM_Tc",
entityType := "CS_Entity_Tc_A",
customEntitySucc := ""
},
// TCs for entity type CS_Entity_Tc_B
{
name := "TC_B_Pre",
fsmName := "EPTF_CS_FSM_Tc",
entityType := "CS_Entity_Tc_B", // CS_Entity_Tc in EPTF CentralScheduling, "_B" supplied as a suffix by the application
customEntitySucc := ""
},
{
name := "TC_B2",
fsmName := "EPTF_CS_FSM_Tc",
entityType := "CS_Entity_Tc_B",
customEntitySucc := ""
},
{
name := "TC_B3",
fsmName := "EPTF_CS_FSM_Tc",
entityType := "CS_Entity_Tc_B",
customEntitySucc := ""
},
{
name := "TC_B_Post",
fsmName := "EPTF_CS_FSM_Tc",
entityType := "CS_Entity_Tc_B",
customEntitySucc := ""
}
}
tsp_LGenBase_TcMgmt_ScenarioDeclarators3 :=
{
{
name := "Scenario_A",
tcList := {
{
tcName := "TC_A0_Pre",
tcParamsList := {
{target := { trafficWeight := 1.0 }},
{enableEntitiesAtStart := true},
{ranges := {
{name := "public id", enableSplit := true, baseOffset := 0, count := 3},
{name := "user id", enableSplit := false, baseOffset := 0, count := 1},
{name := "subscriber id", enableSplit := false, baseOffset := 0, count := 3}
}
},
{trafficStartFinish := {
{nrOfRangeLoop := {count := 1, actions := {}}}
}
}
}
},
{
tcName := "TC_A1_Pre",
tcParamsList := {
{target := { trafficWeight := 1.0 }},
{enableEntitiesAtStart := true},
{ranges := {
{name := "public id", enableSplit := true, baseOffset := 0, count := 3},
{name := "user id", enableSplit := false, baseOffset := 0, count := 2},
{name := "subscriber id", enableSplit := false, baseOffset := 0, count := 2}
}
},
{trafficStartFinish := {
{nrOfRangeLoop := {count := 1, actions := {}}}
}
}
}
},
{
tcName := "TC_A2_Pre",
tcParamsList := {
{target := { trafficWeight := 1.0 }},
{enableEntitiesAtStart := true},
{ranges := {
{name := "public id", enableSplit := true, baseOffset := 0, count := 2},
{name := "user id", enableSplit := false, baseOffset := 0, count := 3},
{name := "subscriber id", enableSplit := false, baseOffset := 0, count := 5}
}
},
{trafficStartFinish := {
{nrOfRangeLoop := {count := 1, actions := {}}}
}
}
}
},
{
tcName := "TC_A3_Pre",
tcParamsList := {
{target := { trafficWeight := 1.0 }},
{enableEntitiesAtStart := true},
{ranges := {
{name := "public id", enableSplit := true, baseOffset := 0, count := 2},
{name := "user id", enableSplit := false, baseOffset := 0, count := 2},
{name := "subscriber id", enableSplit := false, baseOffset := 0, count := 5}
}
},
{trafficStartFinish := {
{nrOfRangeLoop := {count := 1, actions := {}}}
}
}
}
},
{
tcName := "TC_A0",
tcParamsList := {
{target := { trafficWeight := 1.0 }},
{enableEntitiesAtStart := true},
{ranges := {
{name := "public id", enableSplit := true, baseOffset := 0, count := 3},
{name := "user id", enableSplit := false, baseOffset := 0, count := 1},
{name := "subscriber id", enableSplit := false, baseOffset := 0, count := 3}
}
},
{trafficStartFinish := {
{nrOfExecStart := {count := 20,actions := {}}},
{execTime := {time := 150.0,actions := {}}}
}
}
}
},
{
tcName := "TC_A1",
tcParamsList := {
{target := { trafficWeight := 1.0 }},
{enableEntitiesAtStart := true},
{ranges := {
{name := "public id", enableSplit := true, baseOffset := 0, count := 3},
{name := "user id", enableSplit := false, baseOffset := 0, count := 2},
{name := "subscriber id", enableSplit := false, baseOffset := 0, count := 2}
}
},
{trafficStartFinish := {
{nrOfExecStart := {count := 20,actions := {}}},
{execTime := {time := 150.0,actions := {}}}
}
}
}
},
{
tcName := "TC_A2",
tcParamsList := {
{target := { trafficWeight := 1.0 }},
{enableEntitiesAtStart := true},
{ranges := {
{name := "public id", enableSplit := true, baseOffset := 0, count := 2},
{name := "user id", enableSplit := false, baseOffset := 0, count := 3},
{name := "subscriber id", enableSplit := false, baseOffset := 0, count := 5}
}
},
{trafficStartFinish := {
{nrOfExecStart := {count := 30,actions := {}}},
{execTime := {time := 150.0,actions := {}}}
}
}
}
},
{
tcName := "TC_A3",
tcParamsList := {
{target := { trafficWeight := 1.0 }},
{enableEntitiesAtStart := true},
{ranges := {
{name := "public id", enableSplit := true, baseOffset := 0, count := 2},
{name := "user id", enableSplit := false, baseOffset := 0, count := 2},
{name := "subscriber id", enableSplit := false, baseOffset := 0, count := 5}
}
},
{trafficStartFinish := {
{nrOfExecStart := {count := 20,actions := {}}},
{execTime := {time := 150.0,actions := {}}}
}
}
}
},
{
tcName := "TC_A0_Post",
tcParamsList := {
{target := { trafficWeight := 1.0 }},
{enableEntitiesAtStart := true},
{ranges := {
{name := "public id", enableSplit := true, baseOffset := 0, count := 3},
{name := "user id", enableSplit := false, baseOffset := 0, count := 1},
{name := "subscriber id", enableSplit := false, baseOffset := 0, count := 3}
}
},
{trafficStartFinish := {
{nrOfRangeLoop := {count := 1, actions := {}}}
}
}
}
},
{
tcName := "TC_A1_Post",
tcParamsList := {
{target := { trafficWeight := 1.0 }},
{enableEntitiesAtStart := true},
{ranges := {
{name := "public id", enableSplit := true, baseOffset := 0, count := 3},
{name := "user id", enableSplit := false, baseOffset := 0, count := 2},
{name := "subscriber id", enableSplit := false, baseOffset := 0, count := 2}
}
},
{trafficStartFinish := {
{nrOfRangeLoop := {count := 1, actions := {}}}
}
}
}
},
{
tcName := "TC_A2_Post",
tcParamsList := {
{target := { trafficWeight := 1.0 }},
{enableEntitiesAtStart := true},
{ranges := {
{name := "public id", enableSplit := true, baseOffset := 0, count := 2},
{name := "user id", enableSplit := false, baseOffset := 0, count := 3},
{name := "subscriber id", enableSplit := false, baseOffset := 0, count := 5}
}
},
{trafficStartFinish := {
{nrOfRangeLoop := {count := 1, actions := {}}}
}
}
}
},
{
tcName := "TC_A3_Post",
tcParamsList := {
{target := { trafficWeight := 1.0 }},
{enableEntitiesAtStart := true},
{ranges := {
{name := "public id", enableSplit := true, baseOffset := 0, count := 2},
{name := "user id", enableSplit := false, baseOffset := 0, count := 2},
{name := "subscriber id", enableSplit := false, baseOffset := 0, count := 5}
}
},
{trafficStartFinish := {
{nrOfRangeLoop := {count := 1, actions := {}}}
}
}
}
}
},
scParamsList := {
{weightedScData := {cpsToReach := 4.0, lockCPS := false, deterministicMix := true, scheduler := omit}},
{phaseListName := "ExecPhases"},
{phaseFinishConditions := {
{
phase := "preexec",
conditions := { // logical AND
{ tcFinished := "TC_A0_Pre" },
{ tcFinished := "TC_A1_Pre" },
{ tcFinished := "TC_A2_Pre" },
{ tcFinished := "TC_A3_Pre" }
}
},
{
phase := "loadgen",
conditions := {
{ tcFinished := "TC_A0" },
{ tcFinished := "TC_A1" },
{ tcFinished := "TC_A2" },
{ tcFinished := "TC_A3" }
}
},
{
phase := "postexec",
conditions := {
{ tcFinished := "TC_A0_Post" },
{ tcFinished := "TC_A1_Post" },
{ tcFinished := "TC_A2_Post" },
{ tcFinished := "TC_A3_Post" }
}
}
}
},
{phaseStateChangeActions := {
{
phase := "preexec",
state := RUNNING,
actions := {
{ startScenario:="Scenario_A" },
{ startTc := "TC_A0_Pre" },
{ startTc := "TC_A1_Pre" },
{ startTc := "TC_A2_Pre" },
{ startTc := "TC_A3_Pre" }
}
},
{
phase := "preexec",
state := STOPPING,
actions := {
{ stopTc := "TC_A0_Pre" },
{ stopTc := "TC_A1_Pre" },
{ stopTc := "TC_A2_Pre" },
{ stopTc := "TC_A3_Pre" }
}
},
{
phase := "loadgen",
state := RUNNING,
actions := {
{ startTc := "TC_A0" },
{ startTc := "TC_A1" },
{ startTc := "TC_A2" },
{ startTc := "TC_A3" }
}
},
{
phase := "loadgen",
state := STOPPING,
actions := {
{ stopTc := "TC_A0" },
{ stopTc := "TC_A1" },
{ stopTc := "TC_A2" },
{ stopTc := "TC_A3" }
}
},
{
phase := "postexec",
state := RUNNING,
actions := {
{ startTc := "TC_A0_Post" },
{ startTc := "TC_A1_Post" },
{ startTc := "TC_A2_Post" },
{ startTc := "TC_A3_Post" }
}
},
{
phase := "postexec",
state := STOPPING,
actions := {
{ stopTc := "TC_A0_Post" },
{ stopTc := "TC_A1_Post" },
{ stopTc := "TC_A2_Post" },
{ stopTc := "TC_A3_Post" }
}
}
}
}
}
},
{
name := "Scenario_B",
tcList := {
{
tcName := "TC_B_Pre",
tcParamsList := {
{target := { trafficWeight := 1.0 }},
{enableEntitiesAtStart := true},
{trafficStartFinish := {
{nrOfExecStart := {count := 1,actions := {}}} // single pre-exec
}
}
}
},
{
tcName := "TC_B2",
tcParamsList := {
{target := { trafficWeight := 1.0 }},
{enableEntitiesAtStart := true},
{trafficStartFinish := {
{nrOfExecStart := {count := 10,actions := {}}}
}
}
}
},
{
tcName := "TC_B3",
tcParamsList := {
{target := { trafficWeight := 1.0 }},
{enableEntitiesAtStart := true},
{trafficStartFinish := {
{nrOfExecStart := {count := 15,actions := {}}}
}
}
}
},
{
tcName := "TC_B_Post",
tcParamsList := {
{target := { trafficWeight := 1.0 }},
{enableEntitiesAtStart := true},
{trafficStartFinish := {
{nrOfExecStart := {count := 1,actions := {}}} // single PostExec
}
}
}
}
},
scParamsList := {
{weightedScData := {cpsToReach := 2.0, lockCPS := false, deterministicMix := true, scheduler := omit}},
{phaseListName := "ExecPhases"},
{phaseFinishConditions := {
{
phase := "preexec",
conditions := {
{ tcFinished := "TC_B_Pre" }
}
},
{
phase := "loadgen",
conditions := {
{ tcFinished := "TC_B2" },
{ tcFinished := "TC_B3" }
}
},
{
phase := "postexec",
conditions := {
{ tcFinished := "TC_B_Post" }
}
}
}
},
{phaseStateChangeActions := {
{
phase := "preexec",
state := RUNNING,
actions := {
{ startScenario:="Scenario_B" },
{ startTc := "TC_B_Pre" }
}
},
{
phase := "preexec",
state := STOPPING,
actions := {
{ stopTc := "TC_B_Pre" }
}
},
{
phase := "loadgen",
state := RUNNING,
actions := {
{ startTc := "TC_B2" },
{ startTc := "TC_B3" }
}
},
{
phase := "loadgen",
state := STOPPING,
actions := {
{ stopTc := "TC_B2" },
{ stopTc := "TC_B3" }
}
},
{
phase := "postexec",
state := RUNNING,
actions := {
{ startTc := "TC_B_Post" }
}
},
{
phase := "postexec",
state := STOPPING,
actions := {
{ stopTc := "TC_B_Post" }
}
}
}
}
}
}
}
tsp_EPTF_ExecCtrl_PhaseList_Declarators :=
{
{
name := "ExecPhases",
phases :=
{
{ name := "preexec", enabled := true },
{ name := "loadgen" , enabled := true },
{ name := "postexec", enabled := true }
}
}
}
tsp_EPTF_ExecCtrl_ScenarioGroup_Declarators :=
{
// The two scenarios in different groups - no sync
{
name := "ScGroup1",
execMode := AUTOMATIC,
scenarioNames := { "eg0.Scenario_A" },
phaseListName := "ExecPhases"
},
{
name := "ScGroup2",
execMode := AUTOMATIC,
scenarioNames := { "eg2.Scenario_B" },
phaseListName := "ExecPhases"
}
}
// in same group - phases in sync
/* {
name := "ScGroup_sync",
execMode := AUTOMATIC,
scenarioNames := { "eg0.Scenario_A", "eg2.Scenario_B" },
phaseListName := "ExecPhases"
}*/
//}
////////////////// ~EPTF R3
[EXECUTE]
MainModule.tc_mainTestcase
[LOGGING]
FileMask := TTCN_USER | TTCN_WARNING | TTCN_ERROR | TTCN_VERDICTOP | TTCN_PORTEVENT
ConsoleMask := TTCN_WARNING | TTCN_ERROR | TTCN_STATISTICS
SourceInfoFormat := Stack
LogEventTypes := Yes
LogEntityName := Yes