blob: d8b70af5cba2a1d4e5a52a0c2f0415fb4bca325e [file] [log] [blame]
///////////////////////////////////////////////////////////////////////////////
// //
// Copyright (c) 2000-2017 Ericsson Telecom AB //
// //
// All rights reserved. This program and the accompanying materials //
// are made available under the terms of the Eclipse Public License v1.0 //
// which accompanies this distribution, and is available at //
// http://www.eclipse.org/legal/epl-v10.html //
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////
// Module: EPTF_ExecCtrl_Testcases
//
// Purpose:
// This module contains the testcases of the EPTF ExecCtrl test enviroment.
//
// Module depends on:
// <EPTF_ExecCtrl_Test_Definitions>
// <EPTF_ExecCtrl_Test_Function>
// <EPTF_CLL_Base_Functions>
// <EPTF_CLL_Common_Definitions>
// <EPTF_CLL_CLI_Definitions>
// <EPTF_CLL_ExecCtrlTimeProfile_Definitions>
// <EPTF_CLL_ExecCtrl_Functions>
// <EPTF_CLL_ExecCtrl_CLIFunctions>
// <EPTF_CLL_ExecCtrl_Definitions>
// <EPTF_CLL_UIHandler_WidgetFunctions>
// <EPTF_CLL_ExecCtrlUIHandler_Definitions>
// <EPTF_CLL_HashMapInt2Int_Functions>
// <EPTF_CLL_HashMapOct2Int_Functions>
// <EPTF_CLL_HashMapStr2Int_Functions>
//
// Current Owner:
// Balazs Barcsik (EBALBAR)
// Gabor Tatarka (EGBOTAT)
//
// Last Review Date:
// 2007-xx-xx
//
// Detailed Comments:
// -
//
///////////////////////////////////////////////////////////////
module EPTF_ExecCtrl_Test_Testcases
{
import from EPTF_CLL_UIHandlerClient_Functions all;
import from ttcn_ericsson_se_protocolModules_xtdp_xtdl all;
//=========================================================================
// Import Part
//=========================================================================
import from EPTF_ExecCtrl_Test_Definitions all;
import from EPTF_ExecCtrl_Test_Functions all;
import from EPTF_CLL_ExecCtrlTimeProfile_Definitions all;
import from EPTF_CLL_ExecCtrl_Definitions all;
import from EPTF_CLL_ExecCtrl_Functions all;
import from EPTF_CLL_ExecCtrl_CLIFunctions all;
import from EPTF_CLL_ExecCtrl_ScenarioFunctions all;
import from EPTF_CLL_Common_Definitions all;
import from EPTF_CLL_CLI_Definitions all;
import from EPTF_CLL_Base_Functions all;
import from EPTF_CLL_Variable_Definitions all;
import from EPTF_CLL_Variable_Functions all;
import from EPTF_CLL_UIHandler_WidgetFunctions all;
import from EPTF_CLL_UIHandler_XULFunctions all;
//import from XTDP_PDU_Defs language "ASN.1:2002" all;
import from EPTF_CLL_ExecCtrlUIHandler_Definitions all;
import from EPTF_CLL_UIHandlerCLI_Definitions all;
import from EPTF_CLL_UIHandlerCLI_Functions all;
import from EPTF_CLL_ExecCtrlUIHandler_Functions all;
import from EPTF_CLL_LGenBase_Definitions all;
import from EPTF_CLL_ExecCtrl_ScenarioDefinitions all;
import from EPTF_CLL_LGenBase_PhaseDefinitions all;
import from EPTF_CLL_LGenBase_ConfigDefinitions all;
import from EPTF_CLL_ExecCtrl_PhaseDefinitions all;
import from EPTF_CLL_LoadRegulator_Definitions all;
import from EPTF_CLL_StatHandler_Definitions all;
import from EPTF_CLL_StatHandler_Functions all;
import from EPTF_CLL_CLI_Functions all;
import from EPTF_CLL_Logging_Functions all;
import from EPTF_CLL_DataSource_Definitions all;
import from EPTF_CLL_DataSource_Functions all;
import from TCCDateTime_Functions all;
// Testcases
//=========================================================================
testcase tc_EPTF_ExecCtrl_Test_cleanUp_CT() runs on EPTF_ExecCtrl_Test_CT
{
f_EPTF_ExecCtrl_init_CT("ExecCtrl_Test",1);
f_EPTF_Base_cleanup_CT();
f_EPTF_ExecCtrl_Test_checkCleanup();
f_EPTF_ExecCtrl_init_CT("ExecCtrl_Test2",1);
f_EPTF_Base_cleanup_CT();
setverdict(pass); // the test passes if we get here without error (i.e. the ExecCtrl can be re-initialized)
}
testcase tc_EPTF_ExecCtrl_Test_init_CT() runs on EPTF_ExecCtrl_Test_CT
{
f_EPTF_ExecCtrl_Test_init_CT(2);
f_EPTF_Base_cleanup_CT();
setverdict(pass);
}
testcase tc_EPTF_ExecCtrl_Test_initScTimeProfileListDB() runs on EPTF_ExecCtrl_Test_CT
{
f_EPTF_ExecCtrl_init_CT("ExecCtrl_Test",1);
f_EPTF_ExecCtrl_Test_initScTimeProfileListDB(tsp_EPTF_ExecCtrl_TimeProfileDescrList,
tsp_EPTF_ExecCtrl_TimeProfileList, tsp_EPTF_ExecCtrl_TimeProfile2TcList);
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_Regulator_init() runs on EPTF_ExecCtrl_Test_CT
{
f_EPTF_ExecCtrl_init_CT("ExecCtrl_Test",1);
f_EPTF_ExecCtrl_Test_checkRegulatorInit(tsp_EPTF_ExecCtrl_RegulatorNames, tsp_EPTF_ExecCtrl_RegulatedItems);
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_manualControlTrue() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp0", "scenario_0_declarator2", "TC0_declarator2", -1,{}},
{"grp1", "scenario_0", "TC0", -1,{}}
}
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_manualControlTrue("ExecCtrl", 1, v_scens, tsp_EPTF_Var_SyncInterval+2.0));
v_clients[0].start(f_ExecCtrlClient_Test_behaviour("Client_0", v_execCtrl));
t.start(tsp_EPTF_Var_SyncInterval+3.0);
alt {
[] t.timeout {
f_EPTF_Base_cleanup_CT();
}
}
}
testcase tc_EPTF_ExecCtrl_Test_manualControlFalse() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp0", "scenario_0_declarator2", "TC0_declarator2", -1,{}},
{"grp1", "scenario_0", "TC0", -1,{}}
}
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_manualControlFalse("ExecCtrl", 1, v_scens, tsp_EPTF_Var_SyncInterval+2.0));
v_clients[0].start(f_ExecCtrlClient_Test_behaviour("Client_0", v_execCtrl));
t.start(tsp_EPTF_Var_SyncInterval+3.0);
alt {
[] t.timeout {
f_EPTF_Base_cleanup_CT();
}
}
}
testcase tc_EPTF_ExecCtrl_Test_CPS() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp0", "scenario_1_declarator2", "TC0_declarator2", -1,{{ 3.0, 12.0}}},
{"grp1", "scenario_0", "TC0", -1,{{ 3.0, 12.0}}}
}
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_startScenarioOnLGens("ExecCtrl_Test", 1, v_scens, 4.0));
v_clients[0].start(f_EPTF_ExecCtrlClient_Test_CPS("Client_0", v_execCtrl, v_scens));
t.start(8.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_CPSFromTimeDescrProfile() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp0", "scenario_0_declarator2", "TC0_declarator2", -1,tsp_EPTF_ExecCtrl_TimeProfileDescrList[0].timeProfileData}
}
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_manualControlFalse("ExecCtrl_Test", 1, v_scens, 4.0));
v_clients[0].start(f_EPTF_ExecCtrlClient_Test_CPS("Client_0", v_execCtrl, v_scens));
t.start(13.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_CPSFromTimeProfileDescr2Client() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp0", "scenario_0_declarator2", "TC0_declarator2", -1,tsp_EPTF_ExecCtrl_TimeProfileDescrList[0].timeProfileData}
}
v_scensClient := v_scens;
f_setCPStoClients(v_scensClient, 2);
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_clients[1] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_1");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_manualControlFalse("ExecCtrl_Test", 2, v_scens, 4.0));
v_clients[0].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_0", v_execCtrl, v_scensClient));
v_clients[1].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_1", v_execCtrl, v_scensClient));
t.start(13.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_CPSFromTimeProfile() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp0", "scenario_0_declarator2", "TC0_declarator2", -1,tsp_EPTF_ExecCtrl_TimeProfileDescrList[0].timeProfileData}
}
//add 2nd time sequence
for (var integer i:= 0; i < sizeof(tsp_EPTF_ExecCtrl_TimeProfileDescrList[1].timeProfileData); i := i + 1) {
v_scens[0].timeProfile[sizeof(v_scens[0].timeProfile)] := tsp_EPTF_ExecCtrl_TimeProfileDescrList[1].timeProfileData[i]
}
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_manualControlFalse("ExecCtrl_Test", 1, v_scens, 4.0));
v_clients[0].start(f_EPTF_ExecCtrlClient_Test_CPS("Client_0", v_execCtrl, v_scens));
t.start(25.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
/*testcase tc_EPTF_ExecCtrl_Test_getTypeFromGroup() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_getTypeFromGroup("ExecCtrl_Test",0, 1.0));
t.start(2.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}*/
/*testcase tc_EPTF_ExecCtrl_Test_getETypeFromScenario() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_getETypeFromScenario("ExecCtrl_Test",0, 1.0));
t.start(2.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}*/
/*testcase tc_EPTF_ExecCtrl_Test_getTcName() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_getTcName("ExecCtrl_Test",0, 1.0));
t.start(2.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}*/
/*testcase tc_EPTF_ExecCtrl_Test_getTcIdx() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_getTcIdx("ExecCtrl_Test",0, 1.0));
t.start(2.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}*/
//not public
/*
This test makes no sense
testcase tc_EPTF_ExecCtrl_Test_getScenGrpIdx() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_getScenGrpIdx("ExecCtrl_Test",0, 1.0));
t.start(2.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
*/
testcase tc_EPTF_ExecCtrl_Test_startScenarioOnLGensByName2Client() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp0", "scenario_0_declarator2", "TC0_declarator2", -1,{{ 3.0, 12.0}}},
{"grp1", "scenario_0", "TC0", -1,{{ 3.0, 12.0}}}
}
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_clients[1] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_1");
v_scensClient := v_scens;
f_setCPStoClients(v_scensClient, 2);
v_execCtrl.start(f_EPTF_ExecCtrl_Test_startScenarioOnLGens("ExecCtrl_Test", 2, v_scens, 3.0));
v_clients[0].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_0", v_execCtrl, v_scensClient));
v_clients[1].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_1", v_execCtrl, v_scensClient));
t.start(8.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_stopScenarioOnLGens2Client() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp0", "scenario_0_declarator2", "TC0_declarator2", -1,{{ 4.0, 0.0}}},
{"grp1", "scenario_0", "TC0", -1,{{ 4.0, 0.0}}}
}
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_clients[1] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_1");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_stopScenarioOnLGens("ExecCtrl_Test", 2, v_scens, 3.0));
v_clients[0].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_0", v_execCtrl, v_scens, false));
v_clients[1].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_1", v_execCtrl, v_scens, false));
t.start(8.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_startTCOnLGensByName2Client() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp0", "scenario_1_declarator2", "TC1_declarator2", -1, {{ 3.0, 6.0}}},
{"grp1", "scenario_0", "TC1", -1, {{ 3.0, 6.0}}}
}
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_clients[1] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_1");
v_scensClient := v_scens;
f_setCPStoClients(v_scensClient, 2);
v_execCtrl.start(f_EPTF_ExecCtrl_Test_startTCOnLGens("ExecCtrl_Test", 2,v_scens, 2.0));
v_clients[0].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_0", v_execCtrl, v_scensClient));
v_clients[1].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_1", v_execCtrl, v_scensClient));
t.start(15.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_stopTCOnLGens2Client() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp0", "scenario_1_declarator2", "TC1_declarator2", -1, {{ 4.0, 0.0}}},
{"grp1", "scenario_0", "TC1", -1, {{ 4.0, 0.0}}}
}
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_clients[1] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_1");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_stopTCOnLGensByName("ExecCtrl_Test", 2, v_scens, 3.0));
v_clients[0].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_0", v_execCtrl, v_scens, false));
v_clients[1].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_1", v_execCtrl, v_scens, false));
t.start(8.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_checkScenarioStatus2Client() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp0", "scenario_0_declarator2", "TC0_declarator2", -1,{{ 3.0, 12.0}}},
{"grp1", "scenario_0", "TC0", -1,{{ 3.0, 12.0}}}
}
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_clients[1] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_1");
v_scensClient := v_scens;
f_setCPStoClients(v_scensClient, 2);
v_execCtrl.start(f_EPTF_ExecCtrl_Test_checkScenarioStatus("ExecCtrl_Test", 2, v_scens, tsp_EPTF_Var_SyncInterval+2.0));
v_clients[0].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_0", v_execCtrl, v_scensClient));
v_clients[1].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_1", v_execCtrl, v_scensClient));
t.start(tsp_EPTF_Var_SyncInterval+8.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_scenarioEnabled() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_scenarioEnabled("ExecCtrl_Test", 1, 2.0));
v_clients[0].start(f_ExecCtrlClient_Test_behaviour("ExecCtrlC_0", v_execCtrl));
t.start(3.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_startAllScenarios() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp0", "scenario_1_declarator2", "TC0_declarator2", -1, {{4.0,12.0}}},
{"grp1", "scenario_0", "TC0", -1, {{4.0,12.0}}}
}
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_clients[1] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_1");
v_scensClient := v_scens;
f_setCPStoClients(v_scensClient, 2);
v_execCtrl.start(f_EPTF_ExecCtrl_Test_startAllScenarios("ExecCtrl_Test",2, v_scens, 2.0));
v_clients[0].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_0", v_execCtrl, v_scensClient));
v_clients[1].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_1", v_execCtrl, v_scensClient));
t.start(20.0);
t.timeout;
setverdict(fail,"Scenario did not start up in time")
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_stopAllScenarios() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp0", "scenario_1_declarator2", "TC0_declarator2", -1, {{4.0,0.0}}},
{"grp1", "scenario_0", "TC0", -1, {{4.0,0.0}}}
}
v_scensClient := v_scens;
f_setCPStoClients(v_scensClient, 2);
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_clients[1] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_1");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_stopAllScenarios("ExecCtrl_Test",2, v_scens, 3.0));
v_clients[0].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_0", v_execCtrl, v_scensClient, false));
v_clients[1].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_1", v_execCtrl, v_scensClient, false));
t.start(8.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_checkAllScenarios() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp0", "scenario_1_declarator2", "TC0_declarator2", -1, {{4.0,12.0}}},
{"grp1", "scenario_0", "TC0", -1, {{4.0,12.0}}}
}
v_scensClient := v_scens;
f_setCPStoClients(v_scensClient, 2);
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_clients[1] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_1");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_checkAllScenarios("ExecCtrl_Test",2, v_scens, 6.0));
v_clients[0].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_0", v_execCtrl, v_scensClient, false));
v_clients[1].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_1", v_execCtrl, v_scensClient, false));
t.start(20.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_setCps_TC() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp0", "scenario_1_declarator2", "TC0_declarator2", -1, {{3.0,5.0},{7.0,0.0}}},
{"grp1", "scenario_0", "TC0", -1, {{3.0,5.0},{7.0,0.0}}}
}
v_scensClient := v_scens;
f_setCPStoClients(v_scensClient, 2);
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_clients[1] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_1");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_setCps_TC("ExecCtrl_Test",2, v_scens, 0.0));
v_clients[0].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_0", v_execCtrl, v_scensClient, false, 3.0));
v_clients[1].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_1", v_execCtrl, v_scensClient, false, 3.0));
t.start(10.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_setCps_SC() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp1", "scenario_0_declarator3", "TC0_declarator2", -1, {{4.0,18.0},{7.0,0.0}}}//,
// {"grp1", "scenario_0", "TC0", -1, {{10.0,5.0},{16.0,0.0}}}
}
v_scensClient := v_scens;
f_setCPStoClients(v_scensClient, 2);
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_clients[1] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_1");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_setCps_SC("ExecCtrl_Test",2, v_scens, 0.0));
v_clients[0].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_0", v_execCtrl, v_scensClient));
v_clients[1].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_1", v_execCtrl, v_scensClient));
t.start(10.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_setCps_TCCPSChangedCallback() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp0", "scenario_1_declarator2", "TC0_declarator2", -1, {{3.0,5.0},{7.0,0.0}}},
{"grp1", "scenario_0", "TC0", -1, {{3.0,5.0},{7.0,0.0}}}
}
v_scensClient := v_scens;
f_setCPStoClients(v_scensClient, 2);
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_clients[1] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_1");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_setCps_TCCPSChangedCallback("ExecCtrl_Test",2, v_scens, 0.0));
v_clients[0].start(f_EPTF_ExecCtrlClient_Test_CPSChangedCallback_TC("ExecCtrlC_0", v_execCtrl, v_scensClient, false, 3.0));
v_clients[1].start(f_EPTF_ExecCtrlClient_Test_CPSChangedCallback_TC("ExecCtrlC_1", v_execCtrl, v_scensClient, false, 3.0));
t.start(10.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_setCps_SCCPSChangedCallback() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp1", "scenario_0_declarator3", "", -1, {{3.0,5.0},{7.0,0.0}}}
}
v_scensClient := v_scens;
f_setCPStoClients(v_scensClient, 2);
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_clients[1] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_1");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_setCps_SCCPSChangedCallback("ExecCtrl_Test",2, v_scens, 0.0));
v_clients[0].start(f_EPTF_ExecCtrlClient_Test_CPSChangedCallback_SC("ExecCtrlC_0", v_execCtrl, v_scensClient, false, 3.0));
v_clients[1].start(f_EPTF_ExecCtrlClient_Test_CPSChangedCallback_SC("ExecCtrlC_1", v_execCtrl, v_scensClient, false, 3.0));
t.start(10.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_UIHandler_Test_setCPS() runs on myMTC_UI
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("ExecCtrl_UIHandler_Test", true, vl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp1", "scenario_0_declarator3", "TC0_declarator2", -1, {{13.0,20.0},{19.0,0.0}}},
{"grp0", "scenario_1_declarator2", "TC0_declarator2", -1, {{13.0,20.0},{19.0,0.0}}}
}
v_scensClient := v_scens;
f_setCPStoClients(v_scensClient, 2);
v_execCtrlUI := EPTF_ExecCtrl_UIHandler_Test_CT.create("ExecCtrlUI");
v_clientsUI[0] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_0");
v_clientsUI[1] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_1");
v_execCtrlUI.start(f_EPTF_ExecCtrl_UIHandler_Test_setCPS("ExecCtrl_Test",2, self, v_scens, 25.0));
v_clientsUI[0].start(f_EPTF_ExecCtrlClient_UIHandler_Test_CPS(int2str(0), v_execCtrlUI, v_scensClient,false, 3.0));
v_clientsUI[1].start(f_EPTF_ExecCtrlClient_UIHandler_Test_CPS(int2str(1), v_execCtrlUI, v_scensClient,false, 3.0));
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
}
[v_ready] T_alt.timeout{}
};
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,"");
t.start(26.0);
alt {
[] all component.done {}
[] t.timeout {}
}
f_EPTF_Base_cleanup_CT();
}
testcase tc_ETPF_ExecCtrl_UIHandler_Test_startButton() runs on myMTC_UI
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("UIHandler", true, vl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_execCtrlUI := EPTF_ExecCtrl_UIHandler_Test_CT.create("ExecCtrlUI");
v_clientsUI[0] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_0");
v_execCtrlUI.start(f_EPTF_ExecCtrl_UIHandler_Test_startButton("ExecCtrl_Test",1, self, 5.0));
v_clientsUI[0].start(f_EPTF_ExecCtrlClient_UIHandler_Test_behavior("ExecCtrlCUI_0", v_execCtrlUI));
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
}
[v_ready] T_alt.timeout{}
};
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,"");
action(%definitionId&"->checkReadyToRun");
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config[checkReadyToRun]");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
action(%definitionId&"->ReadyToRun");
t.start(40.0); // 30
alt {
[] all component.done {}
[] t.timeout {
setverdict(fail, "Test did not finish in time");
}
}
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_UIHandler_Test_addnewElementsToGui()
runs on myMTC_UI
{
var charstring vl_clientName :="MyUIHandlerClient";
f_EPTF_UIHandlerXUL_init_CT("UIHandler",true);
if(not f_EPTF_UIHandler_GUIConnected()){
setverdict(inconc,"The GUI is not connected...")
}
f_EPTF_UIHandler_clearGUI(); //if You don't apply it, the addWindow doesn't work
var boolean vl_dummy:=false;
var Widgets vl_newWindowWithButtons := {
window := {
/*about :=*/ "",
/*height :=*/ tsp_EPTF_GUI_Main_Window_Height,
/*help :=*/ "",
/*id :=*/ tsp_EPTF_GUI_Main_Window_WidgetId,
/*orientation :=*/ vertical,
/*title :=*/ tsp_EPTF_GUI_Main_Window_Title,
/*width :=*/ tsp_EPTF_GUI_Main_Window_Width,
/*image_list :=*/ {},
/*embeddedwidgets :=*/ {
/*embeddedwidget_list :=*/ {
{
pushbutton := {
/*customclass :=*/ omit,
/*disabled :=*/ omit,
/*disabledongui :=*/ omit,
/*flex :=*/ omit,
/*id :=*/ "FirstTbarPushButtonId",
/*imageid :=*/ omit,
/*label_ :=*/ "push",
/*tooltiptext :=*/ "FirstTbarPushButton ToolTip",
omit
}
},
{
togglebutton := {
/*customclass :=*/ omit,
/*disabled :=*/ omit,
/*disabledongui :=*/ omit,
/*flex :=*/ omit,
/*id :=*/ "FirstTbarToggleButtonId",
/*imageid :=*/ omit,
/*label_ :=*/ "toggle",
/*state :=*/ true,
/*tooltiptext :=*/ "FirstTbarToggleButton ToolTip",
omit
}
},
{
toolbar := {
/*customclass :=*/ omit,
/*disabled :=*/ omit,
/*disabledongui :=*/ omit,
/*id :=*/ tsp_EPTF_GUI_Main_Toolbar_WidgetId,
/*placement :=*/ north,
/*choice_list :=*/ {
{
pushbutton := {
/*customclass :=*/ omit,
/*disabled :=*/ omit,
/*disabledongui :=*/ omit,
/*flex :=*/ omit,
/*id :=*/ "SecondTbarPushButtonId",
/*imageid :=*/ omit,
/*label_ :=*/ "push",
/*tooltiptext :=*/ "SecondTbarPushButton ToolTip",
omit
}
},
{ separator := {omit} },
{
togglebutton := {
/*customclass :=*/ omit,
/*disabled :=*/ omit,
/*disabledongui :=*/ omit,
/*flex :=*/ omit,
/*id :=*/ "SecondTbarToggleButtonId",
/*imageid :=*/ omit,
/*label_ :=*/ "toggle",
/*state :=*/ true,
/*tooltiptext :=*/ "SecondTbarToggleButton ToolTip",
omit
}
}
}
}
}
}
}
}//window
};
f_EPTF_UIHandler_XSD_addElementToGui(vl_newWindowWithButtons, "", vl_dummy);
setverdict(pass);
var charstring vl_fetchedLayout := f_EPTF_UIHandler_snapshot();
var Widgets vl_snapshotXUL := f_EPTF_UIHandler_XSD_decodeXUL(vl_fetchedLayout)
if( not match(vl_newWindowWithButtons,vl_snapshotXUL)) {
var charstring vl_errMsg := log2str( match(vl_newWindowWithButtons,vl_snapshotXUL)); //fails
log(vl_errMsg)
setverdict(fail,vl_errMsg);
}
all component.done;
f_EPTF_Base_cleanup_CT();
}
//HQ70577
testcase tc_ExecCtrl_UIHandler_Test_stopButton_manualControl_false() runs on myMTC_UI
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("EXECCTRL_DSClient", true, vl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
v_execCtrlUI := EPTF_ExecCtrl_UIHandler_Test_CT.create("ExecCtrlUI");
v_clientsUI[0] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_0");
v_execCtrlUI.start(f_EPTF_ExecCtrl_UIHandler_Test_stopButton_manualControl_false("ExecCtrl_Test",1, self, false));
v_clientsUI[0].start(f_EPTF_ExecCtrlClient_UIHandler_Test_behavior("ExecCtrlCUI_0", v_execCtrlUI));
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
// f_EPTF_Base_stopAll();
}
[v_ready] T_alt.timeout{}
};
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,""/*c_ExecCtrl_DS_customGUIHBox*/);
t.start(30.0);
alt {
[] all component.done {}
[] t.timeout {
setverdict(fail, "Test did not finish in time");
}
}
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_UIHandler_Test_stopButton() runs on myMTC_UI
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("ExecCtrl_UIHandler_Test", true, vl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_execCtrlUI := EPTF_ExecCtrl_UIHandler_Test_CT.create("ExecCtrlUI");
v_clientsUI[0] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_0");
v_execCtrlUI.start(f_EPTF_ExecCtrl_UIHandler_Test_stopButton("ExecCtrl_Test",1, self, 6.0));
v_clientsUI[0].start(f_EPTF_ExecCtrlClient_UIHandler_Test_behavior("ExecCtrlCUI_0", v_execCtrlUI));
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
}
[v_ready] T_alt.timeout{}
};
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,"");
action(%definitionId&"->checkReadyToRun");
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config[checkReadyToRun]");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
action(%definitionId&"->ReadyToRun");
t.start(40.0);
alt {
[] all component.done {}
[] t.timeout {
setverdict(fail, "Test did not finish in time");
}
}
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_UIHandler_Test_terminateButton() runs on myMTC_UI
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("ExecCtrl_UIHandler_Test", true, vl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_execCtrlUI := EPTF_ExecCtrl_UIHandler_Test_CT.create("ExecCtrlUI");
v_clientsUI[0] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_0");
v_execCtrlUI.start(f_EPTF_ExecCtrl_UIHandler_Test_terminateButton("ExecCtrl_Test",1, self, 6.0));
v_clientsUI[0].start(f_EPTF_ExecCtrlClient_UIHandler_Test_behavior("ExecCtrlCUI_0", v_execCtrlUI));
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
}
[v_ready] T_alt.timeout{}
};
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,"");
action(%definitionId&"->checkReadyToRun");
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config[checkReadyToRun]");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
action(%definitionId&"->ReadyToRun");
t.start(30.0);
alt {
[] all component.done {}
[] t.timeout {
setverdict(fail, "Test did not finish in time");
}
}
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_UIHandler_Test_ExitButton() runs on myMTC_UI
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("ExecCtrl_UIHandler_Test", true, vl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_execCtrlUI := EPTF_ExecCtrl_UIHandler_Test_CT.create("ExecCtrlUI");
v_clientsUI[0] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_0");
v_execCtrlUI.start(f_EPTF_ExecCtrl_UIHandler_Test_ExitButton("ExecCtrl_Test",1, self, 5.0));
v_clientsUI[0].start(f_EPTF_ExecCtrlClient_UIHandler_Test_behavior("ExecCtrlCUI_0", v_execCtrlUI));
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
}
[v_ready] T_alt.timeout{}
};
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,"");
action(%definitionId&"->checkReadyToRun");
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config[checkReadyToRun]");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
action(%definitionId&"->ReadyToRun");
t.start(40.0);
alt {
[] all component.done {
setverdict(pass);}
[] t.timeout {
setverdict(fail, "Test did not finish in time");
}
}
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_UIHandler_Test_resetAllButton() runs on myMTC_UI
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("ExecCtrl_UIHandler_Test", true, vl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp0", "scenario_0_declarator2", "TC0_declarator2", -1, {}}
}
v_execCtrlUI := EPTF_ExecCtrl_UIHandler_Test_CT.create("ExecCtrlUI");
v_clientsUI[0] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_0");
v_execCtrlUI.start(f_EPTF_ExecCtrl_UIHandler_Test_resetAllButton("ExecCtrl_Test",1, self, 6.0, v_scens));
v_clientsUI[0].start(f_EPTF_ExecCtrlClient_UIHandler_Test_behavior("ExecCtrlCUI_0", v_execCtrlUI));
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config[v_ready]");
}
[v_ready] T_alt.timeout{}
};
// On MTC
var charstring vl_varResetButtonName := "";
var integer vl_retCode := 0;
vl_retCode := f_EPTF_DataSource_getData(vl_varResetButtonName,"StatHandler","","ResetAll",{});
action(%definitionId&"->vl_varResetButtonName->",vl_varResetButtonName,"[",vl_retCode,"]");
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,"");
// action(%definitionId&"->checkReadyToRun");
// T_guard.start( 100.0 );
// T_alt.start( 0.0 );
// alt{
// [] T_guard.timeout{
// setverdict(fail,"Timeout during config[checkReadyToRun]");
// f_EPTF_Base_stopAll();
// }
// [f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
// };
// action(%definitionId&"->ReadyToRun");
t.start(200.0);
alt {
[] all component.done {}
[] t.timeout {
setverdict(fail, "Test did not finish in time");
}
}
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_UIHandler_Test_StartStopScenarioDisable() runs on myMTC_UI
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("ExecCtrl_UIHandler_Test", true, vl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_execCtrlUI := EPTF_ExecCtrl_UIHandler_Test_CT.create("ExecCtrlUI");
v_clientsUI[0] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_0");
v_scens := {
{"grp1", "scenario_0_declarator3", "TC0_declarator2", -1, {}},
{"grp0", "scenario_1_declarator2", "TC0_declarator2", -1, {}}
}
v_execCtrlUI.start(f_EPTF_ExecCtrl_UIHandler_Test_StartStopScenarioDisable("ExecCtrl_Test",1, self, v_scens, 15.0));
v_clientsUI[0].start(f_EPTF_ExecCtrlClient_UIHandler_Test_behavior("ExecCtrlCUI_0", v_execCtrlUI));
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
}
[v_ready] T_alt.timeout{}
};
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,"");
t.start(45.0);
alt {
[] all component.done {
setverdict(pass);
}
[] t.timeout {
setverdict(fail);
}
}
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_UIHandler_Test_StartStopScenarioDisable2() runs on myMTC_UI
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("ExecCtrl_UIHandler_Test", true, vl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_Base_init_CT("ExecCtrl_Test");//superfluous
v_execCtrlUI := EPTF_ExecCtrl_UIHandler_Test_CT.create("ExecCtrlUI");
v_clientsUI[0] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_0");
v_scens := {
{"grp1", "scenario_0_declarator3", "TC0_declarator2", -1, {}},
{"grp0", "scenario_1_declarator2", "TC0_declarator2", -1, {}}
}
v_execCtrlUI.start(f_EPTF_ExecCtrl_UIHandler_Test_StartStopScenarioDisable2("ExecCtrl_Test",1, self, v_scens, 30.0));
v_clientsUI[0].start(f_EPTF_ExecCtrlClient_UIHandler_Test_behavior("ExecCtrlCUI_0", v_execCtrlUI));
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
}
[v_ready] T_alt.timeout{}
};
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,"");
t.start(60.0);
alt {
[] all component.done {
setverdict(pass);}
[] t.timeout {
setverdict(fail);}
}
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_UIHandler_Test_StartStopTcDisable() runs on myMTC_UI
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("ExecCtrl_UIHandler_Test", true, vl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_execCtrlUI := EPTF_ExecCtrl_UIHandler_Test_CT.create("ExecCtrlUI");
v_clientsUI[0] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_0");
v_scens := {
{"grp0", "scenario_1_declarator2", "TC0_declarator2", -1, {}},
{"grp1", "scenario_0_declarator3", "TC0_declarator2", -1, {}}
}
v_execCtrlUI.start(f_EPTF_ExecCtrl_UIHandler_Test_StartStopTcDisable("ExecCtrl_Test",1, self, v_scens, 5.0));
v_clientsUI[0].start(f_EPTF_ExecCtrlClient_UIHandler_Test_behavior("ExecCtrlCUI_0", v_execCtrlUI));
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
}
[v_ready] T_alt.timeout{}
};
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,"");
t.start(30.0);
alt {
[] all component.done {
setverdict(pass);}
[] t.timeout {
setverdict(fail);}
}
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_UIHandler_Test_Tab_EntityGroup() runs on myMTC_UI
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("ExecCtrl_UIHandler_Test", true, vl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_execCtrlUI := EPTF_ExecCtrl_UIHandler_Test_CT.create("ExecCtrlUI");
v_clientsUI[0] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_0");
v_execCtrlUI.start(f_EPTF_ExecCtrl_UIHandler_Test_Tab_EntityGroup("ExecCtrl_Test", 1, self, 7.0));
v_clientsUI[0].start(f_EPTF_ExecCtrlClient_UIHandler_Test_behavior("ExecCtrlCUI_0", v_execCtrlUI));
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
}
[v_ready] T_alt.timeout{}
};
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,"");
t.start(30.0);
alt {
[] all component.done {
setverdict(pass);}
[] t.timeout {
setverdict(fail);}
}
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_UIHandler_Test_Tab_Resources() runs on myMTC_UI
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("ExecCtrl_UIHandler_Test", true, vl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_execCtrlUI := EPTF_ExecCtrl_UIHandler_Test_CT.create("ExecCtrlUI");
v_clientsUI[0] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_0");
v_execCtrlUI.start(f_EPTF_ExecCtrl_UIHandler_Test_Tab_Resources("ExecCtrlUI",1, self, 7.0));
v_clientsUI[0].start(f_EPTF_ExecCtrlClient_UIHandler_Test_behavior("0", v_execCtrlUI));
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
}
[v_ready] T_alt.timeout{}
};
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,"");
t.start(30.0);
alt {
[] all component.done {
setverdict(pass);}
[] t.timeout {
setverdict(fail);}
}
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_UIHandler_Test_Regulator() runs on myMTC_UI
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("ExecCtrl_UIHandler_Test", true, vl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_Base_init_CT("ExecCtrl_Test");
//4. parameters is the Regulator`s index
v_scens := {
{tsp_EPTF_ExecCtrl_RegulatedItems[0].idName.cps_TC.eGrpName,
tsp_EPTF_ExecCtrl_RegulatedItems[0].idName.cps_TC.scName,
tsp_EPTF_ExecCtrl_RegulatedItems[0].idName.cps_TC.tcName, 0, {{5.0, 12.0}}},
{"grp1", "scenario_0_declarator3", "TC0_declarator2", 0, {{5.0, 6.0}}}
}
v_execCtrlUI := EPTF_ExecCtrl_UIHandler_Test_CT.create("ExecCtrlUI");
v_clientsUI[0] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_0");
v_execCtrlUI.start(f_EPTF_ExecCtrl_UIHandler_Test_Regulator("ExecCtrl_Test",1, self, v_scens, 5.0));
v_clientsUI[0].start(f_EPTF_ExecCtrlClient_UIHandler_Test_behavior("ExecCtrlCUI_0", v_execCtrlUI));
t.start(1.0); t.timeout; // wait until execCtrl starts
// start the regulators:
var EPTF_LoadRegulator_CT vl_regulator1 := EPTF_LoadRegulator_CT.create;
vl_regulator1.start(f_ExecCtrl_Regulator_Test_RegulatorBehaviour("Regulator 1",v_execCtrlUI,1.0));
vl_regulator1 := EPTF_LoadRegulator_CT.create;
vl_regulator1.start(f_ExecCtrl_Regulator_Test_RegulatorBehaviour("Regulator 2",v_execCtrlUI,1.0));
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
}
[v_ready] T_alt.timeout{}
};
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,"");
t.start(30.0);
alt {
[] all component.done {
setverdict(pass);}
[] t.timeout {
setverdict(fail);}
}
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_Regulator_Test_getTotalCps() runs on myMTC_UI
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp0", "scenario_1_declarator2", "TC0_declarator2", -1, {{4.0, 12.0}}}
}
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_0");
v_clients[1] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_1");
v_scensClient := v_scens;
f_setCPStoClients(v_scensClient, 2);
//last parameter is Total CPS
v_execCtrl.start(f_EPTF_ExecCtrl_Regulator_Test_getTotalCps("ExecCtrl_Test", 2, "Regulator 1", 12.0));
v_clients[0].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlCUI_0", v_execCtrl, v_scensClient));
v_clients[1].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlCUI_1", v_execCtrl, v_scensClient));
t.start(15.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_Regulator_Test_getRegulatorName() runs on myMTC_UI
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_execCtrl.start(f_EPTF_ExecCtrl_Regulator_Test_getRegulatorName("ExecCtrl_Test", 1, "Regulator 1", 0));
t.start(1.5);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_Regulator_Test_findRegulatorsForScenario() runs on myMTC_UI
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
//{"grp0", "scenario_1_declarator2", "TC0_declarator2", 0, {{4.0, 4.0}}}//,
{"grp1", "scenario_0_declarator3", "TC0_declarator2", 1, {{4.0, 8.0}}}
}
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_execCtrl.start(f_EPTF_ExecCtrl_Regulator_Test_findRegulatorsForScenario("ExecCtrl_Test", 1, v_scens));
t.start(1.5);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
// the CPS of a regulated item (regulated by a limit-max regulator in auto off state)
// is changed by a time profile. it is checked if the total cps of the regulator will be correct
testcase tc_ExecCtrl_Regulator_Test_totalCPSWithTimeProfile() runs on myMTC_UI
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp0", "scenario_0_declarator2", "TC0_declarator2", 1, tsp_EPTF_ExecCtrl_TimeProfileDescrList[0].timeProfileData}
}
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_execCtrl.start(f_EPTF_ExecCtrl_Regulator_Test_totalCPSWithTimeProfile("ExecCtrl_Test", 1, self, v_scens, v_scens[0].timeProfile[3].targetValue));
v_clients[0].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_0", v_execCtrl, v_scens,-,c_EPTF_ExecCtrl_Regulator_Test_regulatorStartTime));
var EPTF_LoadRegulator_CT vl_regulator1 := EPTF_LoadRegulator_CT.create;
vl_regulator1.start(f_ExecCtrl_Regulator_Test_RegulatorBehaviour("Regulator 1",v_execCtrl,1.0));
vl_regulator1 := EPTF_LoadRegulator_CT.create;
vl_regulator1.start(f_ExecCtrl_Regulator_Test_RegulatorBehaviour("Regulator 2",v_execCtrl,1.0));
t.start(30.0+v_scens[0].timeProfile[3].time+c_EPTF_ExecCtrl_Regulator_Test_regulatorStartTime);
alt {
[] all component.done {
setverdict(pass);}
[] t.timeout {
setverdict(fail, "Timeout before test finished");}
}
f_EPTF_Base_cleanup_CT();
}
group SetTargetCPSInAutoOff {
// Tests if Target CPS can be changed for a traffic case or scenario if it is
// regulated by a regulator with limitMax algorithm and the regulator is in
// "Auto-off" state (HL58788)
type component ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT extends EPTF_UIHandler_CLI_CT, EPTF_ExecCtrl_UIHandler_CT, myMTC_UI {
}
//======================================================
//f_EPTF_ExecCtrl_Test_SetTargetCPSInAutoOff_initItselfAndGui
//======================================================
function f_EPTF_ExecCtrl_Test_SetTargetCPSInAutoOff_initItselfAndGui(in charstring pl_selfName, in charstring pl_wndLayout) runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
//f_EPTF_UIHandlerXUL_init_CT(pl_selfName, true, pl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
}
const EPTF_ExecCtrl_RegulatedItems c_EPTF_ExecCtrl_RegulatedItems_setTargetCPSInAutoOff := {
{
idName := {
cps_TC := {
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
scName := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal,
tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc2
}
},
weight := 1.0,
enabled := true,
regulatorName := "LimitMaxRegulator"
},
{
idName := {
cps_SC := {
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
scName := c_EPTF_ExecCtrl_DefaultScenarios_scNameWeighted
}
},
weight := 1.0,
enabled := true,
regulatorName := "LimitMaxRegulator"
}
}
testcase tc_ExecCtrl_Regulator_Test_setTargetCPSInAutoOff() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
f_EPTF_CLI_init_CT("SetTargetCPSInAutoOff");
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:={},
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:={},
pl_EPTF_ExecCtrl_RegulatorNames:={"LimitMaxRegulator"},
pl_EPTF_ExecCtrl_RegulatedItems:=c_EPTF_ExecCtrl_RegulatedItems_setTargetCPSInAutoOff
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_CLI_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_CLI_compRef := self,
pl_loadModulepars := false,
pl_autoStart := true,
pl_dataSource_compRef := self);
// start the regulator:
var EPTF_LoadRegulator_CT vl_regulator := EPTF_LoadRegulator_CT.create;
vl_regulator.start(f_ExecCtrl_Regulator_Test_RegulatorBehaviour("LimitMaxRegulator",self,10.0));
timer T_guard, T_alt;
timer T_ping := 1.0;
T_guard.start( 100.0 );
T_alt.start( 0.0 );
T_ping.start;
alt{
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
[] T_guard.timeout{
setverdict(fail,"Timeout during config: checkReadyToRun");
f_EPTF_Base_stopAll();
}
};
// wait for regulator start!!!
var integer vl_regulatorStatusVarIdx := f_EPTF_Var_getId("EPTF_ExecCtrl.Regulator.status.LimitMaxRegulator");
T_alt.start( 0.0 );
T_guard.start( 10.0 );
alt {
[] T_guard.timeout{
action(%definitionId&"-timeout[LimitMaxRegulator]:{",vl_regulatorStatusVarIdx,"}",f_EPTF_Var_getStatusLEDValue(vl_regulatorStatusVarIdx));
setverdict(fail,"Timeout: Regulator did not go to Connected state");
f_EPTF_Base_stopAll();
}[f_EPTF_Var_getStatusLEDValue(vl_regulatorStatusVarIdx) == {led_green, "Connected"}] T_alt.timeout {
}
[] T_ping.timeout{ T_ping.start;
action(%definitionId&" - f_EPTF_Var_getStatusLEDValue(vl_regulatorStatusVarIdx)=",f_EPTF_Var_getStatusLEDValue(vl_regulatorStatusVarIdx));
repeat;}
}
f_EPTF_ExecCtrl_startAllScenarios();
// wait until regulator is auto-off:
T_alt.start( 0.0 );
T_guard.start( 120.0 );
alt {
[] T_guard.timeout{
action(%definitionId&"-timeout[LimitMaxRegulator]:{",vl_regulatorStatusVarIdx,"}",f_EPTF_Var_getStatusLEDValue(vl_regulatorStatusVarIdx));
setverdict(fail,"Timeout: Regulator did not go to Auto-off state");
f_EPTF_Base_stopAll();
}[f_EPTF_Var_getStatusLEDValue(vl_regulatorStatusVarIdx) == {led_blue, "Auto-off"}] T_alt.timeout {
}
}
f_EPTF_CLI_executeCommand("setcps tc DefaultEGrp.DefaultSc.DefaultTC1 6");
if ("Target CPS of traffic case DefaultEGrp.DefaultSc.DefaultTC1: 6.000000"
!= f_EPTF_CLI_executeCommand("gettargetcps tc DefaultEGrp.DefaultSc.DefaultTC1")) {
setverdict(fail,%definitionId&": CPS of traffic case cannot be changed on Auto-off state");
}
f_EPTF_CLI_executeCommand("setcps sc DefaultEGrp.DefaultWSc 8");
if ("Target CPS of scenario DefaultEGrp.DefaultWSc: 8.000000"
!= f_EPTF_CLI_executeCommand("gettargetcps sc DefaultEGrp.DefaultWSc")) {
setverdict(fail,%definitionId&": CPS of scenario cannot be changed on Auto-off state");
}
setverdict(pass);
//f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
} //~group SetTargetCPSInAutoOff
// this is a manual test
// scenarios are autoStarted after gui is ready
testcase tc_ExecCtrl_Test_Manual() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("SetTargetCPSInAutoOff", false, vl_wndLayout);
timer t_wait := 0.0, t_maxWait := 2.0;
var charstring vl_dataVarName;
t_maxWait.start;
t_wait.start;
alt {
[0==f_EPTF_DataSource_checkData(
pl_dataVarName := vl_dataVarName,
pl_source := "UIHandler",
pl_ptcName := "",
pl_element := "progressBar",
pl_params := {}
)] t_wait.timeout; // wait for UIHander DS registration
[] t_maxWait.timeout {
setverdict(fail,"Cannot display progress information, UIHandler DS registration timed out");
//f_EPTF_Base_stop(none);
}
}
// add progressbar to gui:
f_EPTF_UIHandler_createGUI("
<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>
<hbox flex='0.0' id='' orientation='horizontal'>
<label flex='0.0' value='Progress:' />
<spacer flex='0.0' />
<textbox id='ProgressBar' flex='1.0' readonly='true' value=''>
<externaldata element='progressBar' source='UIHandler'>
<params>
</params>
</externaldata>
</textbox>
</hbox>
</Widgets>",
"EPTF_Main_Window"
);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_init_CT(f_EPTF_Base_selfName(), 0, pl_dataSource_compRef := self);
// start the regulators:
var PhaseRegulator_CT vl_regulator1 := PhaseRegulator_CT.create;
vl_regulator1.start(f_EPTF_ExecCtrl_Test_PhaseRegulator_behavior("Regulator 1",self,1.0));
var EPTF_LoadRegulator_CT vl_regulator2 := EPTF_LoadRegulator_CT.create;
vl_regulator2.start(f_ExecCtrl_Regulator_Test_RegulatorBehaviour("Regulator 3",self,1.0));
timer T_guard, T_alt;
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
f_EPTF_ExecCtrl_startAllScenarios();
f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_UIHandler_Test_setCPSOrig() runs on myMTC_UI
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("ExecCtrl_UIHandler_Test", true, vl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp2", "SC_0", "TC0_declarator2", -1, {{23.0,10.0}, {29.0,15.0}, {35.0,20.0}, {41.0,25.0}, {47.0,30.0}}}
}
v_scensClient := v_scens;
f_setCPStoClients(v_scensClient, 2);
v_execCtrlUI := EPTF_ExecCtrl_UIHandler_Test_CT.create("ExecCtrlUI");
v_clientsUI[0] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_0");
v_clientsUI[1] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_1");
v_execCtrlUI.start(f_EPTF_ExecCtrl_UIHandler_Test_setCPS("ExecCtrl_Test",2, self, v_scens, 54.0)); // 4. params: exit
v_clientsUI[0].start(f_EPTF_ExecCtrlClient_UIHandler_Test_CPS(int2str(0), v_execCtrlUI, v_scensClient));
v_clientsUI[1].start(f_EPTF_ExecCtrlClient_UIHandler_Test_CPS(int2str(1), v_execCtrlUI, v_scensClient));
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
}
[v_ready] T_alt.timeout{}
};
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,"");
t.start(60.0);
alt {
[] all component.done {
setverdict(pass);
}
[] t.timeout {
setverdict(fail);
}
}
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_Test_Pool() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp1", "scenario_0_declarator3", "TC0_declarator2", -1, {{4.0, 6.0}}}
}
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
// v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_pool("ExecCtrl_Test", 0, v_scens, 10.0));
//v_clients[0].start(f_EPTF_ExecCtrlClient_Test_CPS("ExecCtrlC_0", v_execCtrl, v_scens));
// v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create;
// v_clients[0].start(f_ExecCtrlClient_Test_behaviour2("TestPool0", v_execCtrl));
t.start(7.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_Test_LGenPool_checkBehaviorFnNameOfPool
//
// Purpose:
// This testcase checks if the function <f_EPTF_ExecCtrl_getLGenCompRefsOfPool> works correctly.
// It creates an LGen pool for two entity groups and calls the function with different parameters.
// The verdict of the test should be pass.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_Test_LGenPool_getLGenCompRefsOfPool() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
// Need to create a dummy component to be able to determine the correct component indexes in case of multiple TC-s are executed:
var ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT vl_dummyComp := ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT.create;
var integer vl_compRefOffset := f_EPTF_Base_upcast(vl_dummyComp);
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("LGenPool_getLGenCompRefsOfPool", true, vl_wndLayout);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList&
{{
name := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName&".2",
eType := c_EPTF_ExecCtrl_Test_defaultETypeName,
eCount := c_EPTF_ExecCtrl_DefaultScenarios_eGrpSize
}},
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators&{
{
name := c_EPTF_ExecCtrl_Test_defaultLGenPoolName&".2",
lgenPoolItems := {
{
hostname := "localhost",
num := 1,
createFunctionName := "EPTF_ExecCtrl_Test_Functions.f_ExecCtrl_Test_createDefaultLGen"
}
}
}
},
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List&{
{
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName&".2",
lgenPoolName := c_EPTF_ExecCtrl_Test_defaultLGenPoolName&".2"
}
},
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:={},
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:={},
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_loadModulepars := false,
pl_autoStart := true,
pl_dataSource_compRef := self);
timer T_guard, T_alt;
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
// check the LGens in the 1st Pool:
var EPTF_IntegerList vl_lgenIdxs;
f_EPTF_ExecCtrl_getLGenCompRefsOfPool(c_EPTF_ExecCtrl_Test_defaultLGenPoolName,vl_lgenIdxs);
if (sizeof(vl_lgenIdxs) != 2) {
setverdict(fail,%definitionId&": Wrong number of lgens in pool: ",sizeof(vl_lgenIdxs), " Expected: 2");
f_EPTF_Base_stop(none);
}
if (vl_lgenIdxs != {1+vl_compRefOffset,2+vl_compRefOffset} and vl_lgenIdxs != {2+vl_compRefOffset,1+vl_compRefOffset}) {
setverdict(fail,%definitionId&": Wrong lgens in pool: ",vl_lgenIdxs, " Expected: {",1+vl_compRefOffset,",",2+vl_compRefOffset,"}");
f_EPTF_Base_stop(none);
}
// check the 2nd pool
f_EPTF_ExecCtrl_getLGenCompRefsOfPool(c_EPTF_ExecCtrl_Test_defaultLGenPoolName&".2",vl_lgenIdxs);
if (vl_lgenIdxs != {3+vl_compRefOffset}) {
setverdict(fail,%definitionId&": Wrong lgens in pool: ",vl_lgenIdxs, " Expected: {",3+vl_compRefOffset,"}");
f_EPTF_Base_stop(none);
}
// check a non-existent pool
f_EPTF_ExecCtrl_getLGenCompRefsOfPool("NonExistentPool",vl_lgenIdxs);
if (vl_lgenIdxs != {}) {
setverdict(fail,%definitionId&": Wrong lgens in non-existent pool: ",vl_lgenIdxs, " Expected: {}");
f_EPTF_Base_stop(none);
}
setverdict(pass);
//f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_Test_LGenPool_checkCreatorFnNameOfPool
//
// Purpose:
// This testcase checks if the function <f_EPTF_ExecCtrl_checkCreatorFnNameOfPool> works correctly.
// It creates an LGen pool for two entity groups and calls the function with different parameters.
// The verdict of the test should be pass.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_Test_LGenPool_checkCreatorFnNameOfPool() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("LGenPool_getLGenCompRefsOfPool", true, vl_wndLayout);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList&
{{
name := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName&".2",
eType := c_EPTF_ExecCtrl_Test_defaultETypeName,
eCount := c_EPTF_ExecCtrl_DefaultScenarios_eGrpSize
}},
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators&{
{
name := c_EPTF_ExecCtrl_Test_defaultLGenPoolName&".2",
lgenPoolItems := {
{
hostname := "localhost",
num := 1,
createFunctionName := "EPTF_ExecCtrl_Test_Functions.f_ExecCtrl_Test_createDefaultLGen"
}
}
}
},
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List&{
{
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName&".2",
lgenPoolName := c_EPTF_ExecCtrl_Test_defaultLGenPoolName&".2"
}
},
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:={},
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:={},
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_init_CT(f_EPTF_Base_selfName(), 0, pl_dataSource_compRef := self);
timer T_guard, T_alt;
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
// check the function in the 1st Pool:
var integer vl_poolIdx;
var boolean vl_retVal;
// pool and fn exist:
vl_retVal := f_EPTF_ExecCtrl_checkCreatorFnNameOfPool(c_EPTF_ExecCtrl_Test_defaultLGenPoolName,"EPTF_ExecCtrl_Test_Functions.f_ExecCtrl_Test_createDefaultLGen",vl_poolIdx);
if (vl_retVal == false) {
setverdict(fail,%definitionId&": Existent pool not found: ",c_EPTF_ExecCtrl_Test_defaultLGenPoolName);
f_EPTF_Base_stop(none);
}
if (vl_poolIdx != 0) {
setverdict(fail,%definitionId&": Wrong pool index: ",vl_poolIdx, " Expected: 0");
f_EPTF_Base_stop(none);
}
// pool exist, but fn not:
vl_retVal := f_EPTF_ExecCtrl_checkCreatorFnNameOfPool(c_EPTF_ExecCtrl_Test_defaultLGenPoolName,"nonexistentFn",vl_poolIdx);
if (vl_retVal == true) {
setverdict(fail,%definitionId&": Non-existent fn found in pool ",c_EPTF_ExecCtrl_Test_defaultLGenPoolName, ": nonexistentFn");
f_EPTF_Base_stop(none);
}
if (vl_poolIdx != 0) {
setverdict(fail,%definitionId&": Wrong pool index for non-existent fn: ",vl_poolIdx, " Expected: 0");
f_EPTF_Base_stop(none);
}
// check the 2nd pool
// pool and fn exist:
vl_retVal := f_EPTF_ExecCtrl_checkCreatorFnNameOfPool(c_EPTF_ExecCtrl_Test_defaultLGenPoolName&".2","EPTF_ExecCtrl_Test_Functions.f_ExecCtrl_Test_createDefaultLGen",vl_poolIdx);
if (vl_retVal == false) {
setverdict(fail,%definitionId&": Existent pool not found: ",c_EPTF_ExecCtrl_Test_defaultLGenPoolName&".2");
f_EPTF_Base_stop(none);
}
if (vl_poolIdx != 1) {
setverdict(fail,%definitionId&": Wrong pool index: ",vl_poolIdx, " Expected: 1");
f_EPTF_Base_stop(none);
}
// pool exist, but fn not:
vl_retVal := f_EPTF_ExecCtrl_checkCreatorFnNameOfPool(c_EPTF_ExecCtrl_Test_defaultLGenPoolName&".2","nonexistentFn",vl_poolIdx);
if (vl_retVal == true) {
setverdict(fail,%definitionId&": Non-existent fn found in pool ",c_EPTF_ExecCtrl_Test_defaultLGenPoolName&".2", ": nonexistentFn");
f_EPTF_Base_stop(none);
}
if (vl_poolIdx != 1) {
setverdict(fail,%definitionId&": Wrong pool index for non-existent fn: ",vl_poolIdx, " Expected: 1");
f_EPTF_Base_stop(none);
}
// check a non-existent pool
vl_retVal := f_EPTF_ExecCtrl_checkCreatorFnNameOfPool("NonExistentPool","EPTF_ExecCtrl_Test_Functions.f_ExecCtrl_Test_createDefaultLGen",vl_poolIdx);
if (vl_retVal == true) {
setverdict(fail,%definitionId&": Non-existent pool found: NonExistentPool");
f_EPTF_Base_stop(none);
}
if (vl_poolIdx != -1) {
setverdict(fail,%definitionId&": Wrong pool index for non-existent pool: ",vl_poolIdx, " Expected: -1");
f_EPTF_Base_stop(none);
}
setverdict(pass);
//f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_Test_TrafficDistribution() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{eGrpName:="grp1", scenName:="scenario_0_declarator3", tcName:="TC0_declarator2", state:=-1, timeProfile:={{20.0, 6.0}}},
{"grp2", "SC_PH_0", "TC1_declarator2", -1, {{20.0, 6.0}}}
}
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_clients[1] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_1");
v_clients[2] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_2");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_TrafficDistribution("ExecCtrl_Test", 3, v_scens, 4.0));
v_clients[0].start(f_EPTF_ExecCtrlClient_Test_TrafficDistribution("ExecCtrlC_0", v_execCtrl, v_scens,1));
v_clients[1].start(f_EPTF_ExecCtrlClient_Test_TrafficDistribution("ExecCtrlC_1", v_execCtrl, v_scens,3));
v_clients[2].start(f_EPTF_ExecCtrlClient_Test_TrafficDistribution("ExecCtrlC_2", v_execCtrl, v_scens,22));
t.start(22.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_Test_phaseRegulation()
runs on myMTC
{
f_EPTF_Base_init_CT("MTC");
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
var EPTF_ExecCtrlClient_TestPhaseRegulation_CT vl_client := EPTF_ExecCtrlClient_TestPhaseRegulation_CT.create("ExecCtrlClient");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_phaseRegulation("ExecCtrl", 1));
vl_client.start(f_EPTF_ExecCtrlClient_Test_phaseRegulation("ExecCtrlClient", v_execCtrl, true));
var PhaseRegulator_CTList vl_phaseRegs := {};
for(var integer i:=0; i<sizeof(tsp_ExecCtrl_Test_phaseRegulationConfig.phaseRegulators); i:=i+1) {
vl_phaseRegs[i] := PhaseRegulator_CT.create(tsp_ExecCtrl_Test_phaseRegulationConfig.phaseRegulators[i].regulatorName);
vl_phaseRegs[i].start(
f_EPTF_ExecCtrl_Test_PhaseRegulator_behavior(
tsp_ExecCtrl_Test_phaseRegulationConfig.phaseRegulators[i].regulatorName,
v_execCtrl,
tsp_ExecCtrl_Test_phaseRegulationConfig.phaseRegulators[i].targetValue
) );
}
// f_EPTF_Base_wait4Shutdown();
t.start(600.0);
t.timeout;
f_EPTF_Base_cleanup_CT();
}
// HL20955: setting CPS to zero and then back to anything: no Call is generated
testcase tc_EPTF_ExecCtrl_Test_HL20955() runs on myMTC_UI
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("ExecCtrl_UIHandler_Test", true, vl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
v_execCtrlUI := EPTF_ExecCtrl_UIHandler_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlClient");
v_execCtrlUI.start(f_EPTF_ExecCtrl_Test_HL20955("ExecCtrl", 1, self,tsp_ExecCtrl_Test_HL20955Config,v_clients[0]));
v_clients[0].start(f_EPTF_ExecCtrlClient_Test_HL20955("ExecCtrlClient", v_execCtrlUI));
f_EPTF_ExecCtrl_Test_waitForGUIDone();
t.start(40.0);
alt {
[] t.timeout {
setverdict(fail);
}
}
f_EPTF_Base_cleanup_CT();
}
// test if the execTime condition is fulfilled too early
testcase tc_EPTF_ExecCtrl_Test_ExecTimeForSmallCPS() runs on myMTC_UI
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("ExecCtrl_UIHandler_Test", true, vl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
v_execCtrlUI := EPTF_ExecCtrl_UIHandler_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlClient");
v_execCtrlUI.start(f_EPTF_ExecCtrl_Test_ExecTimeForSmallCPS("ExecCtrl", 1, self,tsp_ExecCtrl_Test_ExecTimeForSmallCPSConfig,v_clients[0]));
v_clients[0].start(f_EPTF_ExecCtrlClient_Test_ExecTimeForSmallCPS("ExecCtrlClient", v_execCtrlUI));
f_EPTF_ExecCtrl_Test_waitForGUIDone();
t.start(40.0);
alt {
[] t.timeout {
action("ExecTime condition not fired at all! Test FAILED!");
setverdict(fail); // execTime not fired at all
}
}
f_EPTF_Base_cleanup_CT();
}
// test if the execTime condition is fulfilled too early
testcase tc_EPTF_ExecCtrl_Test_ExecTimeForZeroCPS() runs on myMTC_UI
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("ExecCtrl_UIHandler_Test", true, vl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
v_execCtrlUI := EPTF_ExecCtrl_UIHandler_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlClient");
v_execCtrlUI.start(f_EPTF_ExecCtrl_Test_ExecTimeForSmallCPS("ExecCtrl", 1, self,tsp_ExecCtrl_Test_ExecTimeForZeroCPSConfig,v_clients[0]));
v_clients[0].start(f_EPTF_ExecCtrlClient_Test_ExecTimeForSmallCPS("ExecCtrlClient", v_execCtrlUI));
f_EPTF_ExecCtrl_Test_waitForGUIDone();
t.start(40.0);
alt {
[] t.timeout {
action("ExecTime condition not fired at all! Test FAILED!");
setverdict(fail); // execTime not fired at all
}
}
f_EPTF_Base_cleanup_CT();
}
group HL45980 {
type component myMTC_UI_HL45980 extends myMTC_UI {
timer t_subscribe := 2.0;
const charstring c_EPTF_ExecCtrl_Test_HL45980_simple_startsVarName :=
""&c_EPTF_ExecCtrl_statisticsRoot&".EG."&"grpSimpleFSM"&".SC."&"SC1"&".TC."&"TC_post" &"."&c_EPTF_ExecCtrl_tcStatNames[c_EPTF_ExecCtrl_tcStatId_Success];
}
altstep as_EPTF_ExecCtrl_Test_HL45980_simple_checkResult() runs on myMTC_UI_HL45980 {
[] t_subscribe.timeout {
var integer vl_idx := f_EPTF_Var_getId(c_EPTF_ExecCtrl_Test_HL45980_simple_startsVarName);
if (vl_idx != -1) {
var integer vl_success := f_EPTF_Var_getIntValue(vl_idx);
if (vl_success == 500) {
action("Test PASSED: Traffic cases started in scenario group and calls were generated successfully.");
f_EPTF_Base_stopAll(pass);
}
}
t_subscribe.start;
repeat;
}
}
// test if the execTime condition is fulfilled too early
testcase tc_EPTF_ExecCtrl_Test_HL45980_simple() runs on myMTC_UI_HL45980
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("ExecCtrl_UIHandler_Test", true, vl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
v_execCtrlUI := EPTF_ExecCtrl_UIHandler_Test_CT.create("ExecCtrl");
v_execCtrlUI.start(f_EPTF_ExecCtrl_Test_HL45980_ExecCtrlBehaviour("ExecCtrl"));
timer T_guard, T_alt;
T_guard.start( 30.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config[tc_EPTF_ExecCtrl_Test_HL45980_simple:v_ready]");
}
[v_ready] T_alt.timeout{}
};
var integer vl_idx;
f_EPTF_Var_subscribeRemote(
pl_remoteCompRef := v_execCtrlUI,
pl_remoteProviderVarName := c_EPTF_ExecCtrl_Test_HL45980_simple_startsVarName,
pl_subscriptionMode := realtime,
pl_idx := vl_idx,
pl_localName := c_EPTF_ExecCtrl_Test_HL45980_simple_startsVarName);
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,"");
t_subscribe.start;
var default def := activate(as_EPTF_ExecCtrl_Test_HL45980_simple_checkResult());
t.start(60.0);
alt {
[] t.timeout {
action("Test FAILED: Traffic was not generated in the scenario");
setverdict(fail); // execTime not fired at all
}
}
setverdict(pass);
f_EPTF_Base_cleanup_CT();
}
} // group HL45980
/**********************************************************************/
group Action {
modulepar EPTF_ExecCtrl_Test_HL20955Config tsp_ExecCtrl_Test_Action_Config := {
eGroups := {
{name := "eGrpHL20955", eType := "Entity_A", eCount := 100}
},
sc2eGroups := {
{eGrpName:="eGrpHL20955", scenarioNames:={"ScHL20955", "WScHL20955"}}
},
tcTypes := {
{name := "TcTypeHL20955", fsmName := "DUMMY_FSM", entityType := "Entity_A", customEntitySucc := ""}
},
scTypes := {
{
name := "ScHL20955",
tcList := {
{
tcName := "Tc1",
tcParamsList := {
{tcTypeName := "TcTypeHL20955"},
{target := { cpsToReach := 5.0 }},
{enableEntitiesAtStart := true},
{enabledAtStart := true},
{trafficStartFinish := {}},
{trafficFinishedActions := {}}
}
}
},
scParamsList := {
}
},
{
name := "WScHL20955",
tcList := {
{
tcName := "Tc1",
tcParamsList := {
{tcTypeName := "TcTypeHL20955"},
{target := { trafficWeight := 1.0 }},
{enableEntitiesAtStart := true},
{enabledAtStart := true},
{trafficStartFinish := {}},
{trafficFinishedActions := {}}
}
}
},
scParamsList := {
{weightedScData := {
cpsToReach := 4.0,
lockCPS := false,
deterministicMix := true,
scheduler := omit
}
}
}
}
},
timeProfileDescrList := {},
timeProfileList := {},
timeProfile2TcList := {}
};
/**********************************************************************/
//======================================================
//f_EPTF_ExecCtrl_Test_initItselfAndGui
//======================================================
function f_EPTF_ExecCtrl_Test_initItselfAndGui() runs on myMTC_UI
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("ExecCtrl_UIHandler_Test", true, vl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
}
//======================================================
//f_EPTF_ExecCtrl_Test_startsExecCtrlAndExecCtrlClients
//======================================================
function f_EPTF_ExecCtrl_Test_startsExecCtrlAndExecCtrlClients(
in EPTF_ExecCtrl_Test_HL20955Config pl_cfg,
in integer pl_nofClients,
in boolean pl_stop4FirstAction:=true,
in integer pl_expectedValue:=-1 //the number of Successess, Fails etc, default:sizeof(pl_cfg.scTypes);
)
runs on myMTC_UI
{
var integer i:=-1;
v_execCtrlUI := EPTF_ExecCtrl_UIHandler_Test_CT.create("ExecCtrl");
for(i:=0;i<pl_nofClients;i:=i+1) {
v_clients[i] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlClient"&int2str(i));
}
if(pl_stop4FirstAction) {
v_execCtrlUI.start(f_EPTF_ExecCtrl_Test_Action_stop4FirstAction("ExecCtrl", pl_nofClients, self, pl_cfg, v_clients));
} else {
v_execCtrlUI.start(f_EPTF_ExecCtrl_Test_Action_stop4Condition("ExecCtrl", pl_nofClients, self, pl_cfg, v_clients,pl_expectedValue));
}
for(i:=0;i<pl_nofClients;i:=i+1) {
v_clients[i].start(f_EPTF_ExecCtrlClient_Test_Action("ExecCtrlClient"&int2str(i), v_execCtrlUI));
}
// start the guard timer when the GUIDone led turns green:
f_EPTF_ExecCtrl_Test_waitForGUIDone();
t.start(40.0);
alt {
[] all component.done {}
[] t.timeout {
setverdict(fail, "Timeout occured");
}
}
f_EPTF_Base_cleanup_CT();
}
const integer c_EPTF_ExecCtrl_Test_trafficStartFinishIdx:=4;
const integer c_EPTF_ExecCtrl_Test_trafficFinishedActionsIdx:=5;
const integer c_EPTF_ExecCtrl_Test_entityFinishConditionIdx:=6;
// Based on tc_EPTF_ExecCtrl_Test_HL20955 HL20955: setting CPS to zero and then back to anything: no Call is generated
//======================================================
// tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_execTime
// Passed if twice (=number of execCtrlClients) called the action function after nrOfSuccess==100 / trafficStartFinish
// Status:Passed, HL56376 fixed
//======================================================
testcase tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_execTime() runs on myMTC_UI
{
f_EPTF_ExecCtrl_Test_initItselfAndGui();
//==== Configuration=====
var EPTF_ExecCtrl_Test_HL20955Config vl_cfg:= tsp_ExecCtrl_Test_Action_Config;
for(var integer i:=0;i<sizeof(vl_cfg.scTypes);i:=i+1) {
vl_cfg.scTypes[i].tcList[0].tcParamsList[c_EPTF_ExecCtrl_Test_trafficStartFinishIdx].trafficStartFinish:= {
{execTime := {time := 20.0,actions := {
{customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_pass"}
}}}
};
}//for
f_EPTF_ExecCtrl_Test_startsExecCtrlAndExecCtrlClients(vl_cfg, 2, pl_stop4FirstAction:=false); //<===just apply if want check!
}
//======================================================
// tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_nrOfExecStart
// Passed if twice (=number of execCtrlClients) called the action function after nrOfSuccess==100 / trafficStartFinish
// Status:Passed, HL56376 fixed
//======================================================
testcase tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_nrOfExecStart() runs on myMTC_UI
{
f_EPTF_ExecCtrl_Test_initItselfAndGui();
//==== Configuration=====
var EPTF_ExecCtrl_Test_HL20955Config vl_cfg:= tsp_ExecCtrl_Test_Action_Config;
for(var integer i:=0;i<sizeof(vl_cfg.scTypes);i:=i+1) {
vl_cfg.scTypes[i].tcList[0].tcParamsList[c_EPTF_ExecCtrl_Test_trafficStartFinishIdx].trafficStartFinish:= {
{ nrOfExecStart := {count := 1, actions := { {customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_pass"}}}},
{ execTime := {time := 120.0, actions := { /*{customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_fail"}*/}}}
}
}//for
f_EPTF_ExecCtrl_Test_startsExecCtrlAndExecCtrlClients(vl_cfg, 2, pl_stop4FirstAction:=false);
}
//======================================================
// tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_nrOfSuccesses
// Passed if twice (=number of execCtrlClients) called the action function after nrOfSuccess==100 / trafficStartFinish
// Status:Passed, HL56376 fixed
//======================================================
testcase tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_nrOfSuccesses() runs on myMTC_UI
{
f_EPTF_ExecCtrl_Test_initItselfAndGui();
//==== Configuration=====
var EPTF_ExecCtrl_Test_HL20955Config vl_cfg:= tsp_ExecCtrl_Test_Action_Config;
for(var integer i:=0;i<sizeof(vl_cfg.scTypes);i:=i+1) {
vl_cfg.scTypes[i].tcList[0].tcParamsList[c_EPTF_ExecCtrl_Test_trafficStartFinishIdx].trafficStartFinish:= {
{nrOfSuccesses := {
count := 100,
actions := {{customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_pass"}}}},
{execTime := {
time := 120.0,
actions := {/*{customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_fail"} */}}}
};
}//for
f_EPTF_ExecCtrl_Test_startsExecCtrlAndExecCtrlClients(vl_cfg, 2, pl_stop4FirstAction:=false);
}
//======================================================
// tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_nrOfFails
// Passed if twice (=number of execCtrlClients) called the action function after nrOfFails==0 / trafficStartFinish
// Status:Passed, HL56376 fixed
//======================================================
testcase tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_nrOfFails() runs on myMTC_UI
{
f_EPTF_ExecCtrl_Test_initItselfAndGui();
//==== Configuration=====
var EPTF_ExecCtrl_Test_HL20955Config vl_cfg:= tsp_ExecCtrl_Test_Action_Config;
for(var integer i:=0;i<sizeof(vl_cfg.scTypes);i:=i+1) {
vl_cfg.scTypes[i].tcList[0].tcParamsList[c_EPTF_ExecCtrl_Test_trafficStartFinishIdx].trafficStartFinish:= {
{nrOfFails := {
count := 0,
actions := {{customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_pass"}}}},
{execTime := {
time := 120.0,
actions := {/*{customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_fail"}*/}}}
};
}//for
f_EPTF_ExecCtrl_Test_startsExecCtrlAndExecCtrlClients(vl_cfg, 2, pl_stop4FirstAction:=false);
}
//======================================================
// tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_nrOfRangeLoop
// Passed if twice (=number of execCtrlClients) called the action function after nrOfFails==0 / trafficStartFinish
// Status:Passed, HL56376 fixed
//======================================================
testcase tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_nrOfRangeLoop() runs on myMTC_UI
{
f_EPTF_ExecCtrl_Test_initItselfAndGui();
//==== Configuration=====
var EPTF_ExecCtrl_Test_HL20955Config vl_cfg:= tsp_ExecCtrl_Test_Action_Config;
for(var integer i:=0;i<sizeof(vl_cfg.scTypes);i:=i+1) {
vl_cfg.scTypes[i].tcList[0].tcParamsList[c_EPTF_ExecCtrl_Test_trafficStartFinishIdx].trafficStartFinish:= {
{nrOfRangeLoop := {
count := 0,
actions := {{customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_pass"}}}},
{execTime := {
time := 120.0,
actions := {{customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_fail"}}}}
};
}//for
f_EPTF_ExecCtrl_Test_startsExecCtrlAndExecCtrlClients(vl_cfg, 2, pl_stop4FirstAction:=false);
}
//======================================================
// tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_nrOfErrors
// Passed if twice (=number of execCtrlClients) called the action function after nrOfFails==0 / trafficStartFinish
// Status:Passed, HL56376 fixed
//======================================================
testcase tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_nrOfErrors() runs on myMTC_UI
{
f_EPTF_ExecCtrl_Test_initItselfAndGui();
//==== Configuration=====
var EPTF_ExecCtrl_Test_HL20955Config vl_cfg:= tsp_ExecCtrl_Test_Action_Config;
for(var integer i:=0;i<sizeof(vl_cfg.scTypes);i:=i+1) {
vl_cfg.scTypes[i].tcList[0].tcParamsList[c_EPTF_ExecCtrl_Test_trafficStartFinishIdx].trafficStartFinish:= {
{nrOfErrors := {
count := 0,
actions := {{customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_pass"}}}},
{execTime := {
time := 120.0,
actions := {{customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_fail"}}}}
};
}//for
f_EPTF_ExecCtrl_Test_startsExecCtrlAndExecCtrlClients(vl_cfg, 2, pl_stop4FirstAction:=false);
}
//======================================================
// tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_nrOfTimeouts
// Passed if twice (=number of execCtrlClients) called the action function after nrOfTimeouts==0 / trafficStartFinish
// Status:Passed, HL56376 fixed
//======================================================
testcase tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_nrOfTimeouts() runs on myMTC_UI
{
f_EPTF_ExecCtrl_Test_initItselfAndGui();
//==== Configuration=====
var EPTF_ExecCtrl_Test_HL20955Config vl_cfg:= tsp_ExecCtrl_Test_Action_Config;
for(var integer i:=0;i<sizeof(vl_cfg.scTypes);i:=i+1) {
vl_cfg.scTypes[i].tcList[0].tcParamsList[c_EPTF_ExecCtrl_Test_trafficStartFinishIdx].trafficStartFinish:= {
{nrOfTimeouts := {
count := 0,
actions := {{customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_pass"}}}},
{execTime := {
time := 120.0,
actions := {{customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_fail"}}}}
}
}//for
f_EPTF_ExecCtrl_Test_startsExecCtrlAndExecCtrlClients(vl_cfg, 2, pl_stop4FirstAction:=false);
}
//======================================================
// tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_entitiesFinished
// Passed if twice (=number of execCtrlClients) called the action function after entitiesFinished / trafficStartFinish
// Status:Passed, HL56376 fixed
//======================================================
testcase tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_entitiesFinished() runs on myMTC_UI
{
f_EPTF_ExecCtrl_Test_initItselfAndGui();
//==== Configuration=====
var EPTF_ExecCtrl_Test_HL20955Config vl_cfg:= tsp_ExecCtrl_Test_Action_Config;
for(var integer i:=0;i<sizeof(vl_cfg.scTypes);i:=i+1) {
vl_cfg.scTypes[i].tcList[0].tcParamsList[c_EPTF_ExecCtrl_Test_entityFinishConditionIdx].entityFinishConditions:= { {nrOfExecStart := 1} }
vl_cfg.scTypes[i].tcList[0].tcParamsList[c_EPTF_ExecCtrl_Test_trafficStartFinishIdx].trafficStartFinish:= {
{
entitiesFinished := {
actions := {{customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_pass"}}}
},
{
execTime := {
time := 120.0,
actions := {{customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_fail"}}
}
}
};
}//for
f_EPTF_ExecCtrl_Test_startsExecCtrlAndExecCtrlClients(vl_cfg, 2, pl_stop4FirstAction:=false);
}
//======================================================
// tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_availableEntitiesFinished
// Passed if twice (=number of execCtrlClients) called the action function after availableEntitiesFinished/ trafficStartFinish
// Status:Passed, HL56376 fixed
//======================================================
testcase tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_availableEntitiesFinished() runs on myMTC_UI
{
f_EPTF_ExecCtrl_Test_initItselfAndGui();
//==== Configuration=====
var EPTF_ExecCtrl_Test_HL20955Config vl_cfg:= tsp_ExecCtrl_Test_Action_Config;
for(var integer i:=0;i<sizeof(vl_cfg.scTypes);i:=i+1) {
vl_cfg.scTypes[i].tcList[0].tcParamsList[c_EPTF_ExecCtrl_Test_entityFinishConditionIdx].entityFinishConditions:= { {nrOfExecStart := 1}};
vl_cfg.scTypes[i].tcList[0].tcParamsList[c_EPTF_ExecCtrl_Test_trafficStartFinishIdx].trafficStartFinish:= {
{availableEntitiesFinished := {
actions := {{customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_pass"}}}},
{execTime := {
time := 120.0,
actions := {{customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_fail"}}}}
};
}//for
f_EPTF_ExecCtrl_Test_startsExecCtrlAndExecCtrlClients(vl_cfg, 2, pl_stop4FirstAction:=false);
}
//======================================================
// tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_anythingFinished
// Passed if twice (=number of execCtrlClients) called the action function after nrOfSuccess==100 / trafficStartFinish
// Status: Passed
//======================================================
testcase tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_anythingFinished() runs on myMTC_UI
{
f_EPTF_ExecCtrl_Test_initItselfAndGui();
//==== Configuration=====
var EPTF_ExecCtrl_Test_HL20955Config vl_cfg:= tsp_ExecCtrl_Test_Action_Config;
for(var integer i:=0;i<sizeof(vl_cfg.scTypes);i:=i+1) {
vl_cfg.scTypes[i].tcList[0].tcParamsList[c_EPTF_ExecCtrl_Test_trafficStartFinishIdx].trafficStartFinish:= {
{ anythingFinished := {
actions:= { {customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_pass"}}}},
{ execTime := {
time := 30.0,
actions:= { /*{customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_fail"}*/}}}
};
//vl_cfg.scTypes[i].tcList[0].tcParamsList[c_EPTF_ExecCtrl_Test_trafficFinishedActionsIdx].trafficFinishedActions:={ {testFinished:={}} };
}//for
f_EPTF_ExecCtrl_Test_startsExecCtrlAndExecCtrlClients(vl_cfg, 2, pl_stop4FirstAction:=false);
}
//======================================================
// tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_customFinish
// Passed if customFinish condition is fulfilled
// Status: Passed
//======================================================
testcase tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_customFinish() runs on myMTC_UI
{
f_EPTF_ExecCtrl_Test_initItselfAndGui();
//==== Configuration=====
var EPTF_ExecCtrl_Test_HL20955Config vl_cfg:= tsp_ExecCtrl_Test_Action_Config;
for(var integer i:=0;i<sizeof(vl_cfg.scTypes);i:=i+1) {
vl_cfg.scTypes[i].tcList[0].tcParamsList[c_EPTF_ExecCtrl_Test_trafficStartFinishIdx].trafficStartFinish:= {
{ customFinish := {
functionName := "f_EPTF_ExecCtrlClient_Test_Action_customFinishCondition", actions:= { {customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_pass"}}}},
{ execTime := {
time := 30.0,
actions:= { {customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_fail"}}}}
};
//vl_cfg.scTypes[i].tcList[0].tcParamsList[c_EPTF_ExecCtrl_Test_trafficFinishedActionsIdx].trafficFinishedActions:={ {testFinished:={}} };
}//for
f_EPTF_ExecCtrl_Test_startsExecCtrlAndExecCtrlClients(vl_cfg, 2, pl_stop4FirstAction:=false/*,pl_expectedValue := 100*/);
}
//======================================================
// tc_EPTF_ExecCtrl_Test_Action_trafficFinishedActions_customFinishFunction
// Status: Passed
//======================================================
testcase tc_EPTF_ExecCtrl_Test_Action_trafficFinishedActions_customFinishFunction() runs on myMTC_UI
{
f_EPTF_ExecCtrl_Test_initItselfAndGui();
//==== Configuration=====
var EPTF_ExecCtrl_Test_HL20955Config vl_cfg:= tsp_ExecCtrl_Test_Action_Config;
for(var integer i:=0;i<sizeof(vl_cfg.scTypes);i:=i+1) {
vl_cfg.scTypes[i].tcList[0].tcParamsList[c_EPTF_ExecCtrl_Test_trafficStartFinishIdx].trafficStartFinish:= {
{
nrOfSuccesses := {
count := 100,
actions := {/*{customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_pass"}*/}
}
}
};
vl_cfg.scTypes[i].tcList[0].tcParamsList[c_EPTF_ExecCtrl_Test_trafficFinishedActionsIdx].trafficFinishedActions:= {
{customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_pass"}
};
}//for
//log(">>> cfg: ",vl_cfg);
f_EPTF_ExecCtrl_Test_startsExecCtrlAndExecCtrlClients(vl_cfg,2, pl_stop4FirstAction:=false);
}
//======================================================
// tc_EPTF_ExecCtrl_Test_Action_trafficFinishedActions_testFinished
// Status: Passed
//======================================================
testcase tc_EPTF_ExecCtrl_Test_Action_trafficFinishedActions_testFinished() runs on myMTC_UI
{
f_EPTF_ExecCtrl_Test_initItselfAndGui();
//==== Configuration=====
var EPTF_ExecCtrl_Test_HL20955Config vl_cfg:= tsp_ExecCtrl_Test_Action_Config;
for(var integer i:=0;i<sizeof(vl_cfg.scTypes);i:=i+1) {
vl_cfg.scTypes[i].tcList[0].tcParamsList[c_EPTF_ExecCtrl_Test_trafficStartFinishIdx].trafficStartFinish:= {
{
nrOfSuccesses := {
count := 100,
actions := {}
}
}
};
vl_cfg.scTypes[i].tcList[0].tcParamsList[c_EPTF_ExecCtrl_Test_trafficFinishedActionsIdx].trafficFinishedActions:= {
{testFinished := { }},
{customFinishFunction := "f_EPTF_ExecCtrlClient_Test_Action_pass"}
};
}//for
f_EPTF_ExecCtrl_Test_startsExecCtrlAndExecCtrlClients(vl_cfg,2, pl_stop4FirstAction:=false);
}
}//group Action
group HL65581{
//Error message in case of invalid scenario in scenario group declaration of the config
const charstring c_EPTF_ExecCtrl_HL65581Test_behaviorName := "ExectrTesterBehavior"
const charstring c_EPTF_ExecCtrl_HL65581Test_eTypeName := "ExectrTesterEType"
const EPTF_LGenBase_FsmTableDeclarator c_EPTF_ExecCtrl_HL65581Test_simpleResponseFSM :=
{
name := "simpleResponseFSM",
fsmParams := {
{stateList := {"idle"}}
},
table := {
classicTable := {
{ eventToListen := {c_EPTF_LGenBase_behavior,c_EPTF_LGenBase_inputName_testMgmt_startTC,fsm},
cellRow := {{{
{c_EPTF_LGenBase_stepName_trafficSuccess, omit}
}, omit, omit}}
},
{ eventToListen := {c_EPTF_LGenBase_behavior,c_EPTF_LGenBase_inputName_testMgmt_stopTC,fsm},
cellRow := {{{
{c_EPTF_LGenBase_stepName_entityStopped, omit}
}, omit, omit}}
},
{ eventToListen := {c_EPTF_LGenBase_behavior,c_EPTF_LGenBase_inputName_testMgmt_abortTC,fsm},
cellRow := {{{
{c_EPTF_LGenBase_stepName_entityAborted, omit}
}, omit, omit}}
}
}
}
}
const charstring c_EPTF_ExecCtrl_HL65581Test_eGrpName := "eg0"
const charstring c_EPTF_ExecCtrl_HL65581Test_scNameNormal := "normalScenario"
const charstring c_EPTF_ExecCtrl_HL65581Test_scNameWeighted := "weightedScenario"
const charstring c_EPTF_ExecCtrl_HL65581Test_tcNameTc1 := "tcII"
const charstring c_EPTF_ExecCtrl_HL65581Test_tcNameTc2 := "tcI"
const charstring c_EPTF_ExecCtrl_HL65581Test_tcNorm1Name := c_EPTF_ExecCtrl_HL65581Test_eGrpName&"."&c_EPTF_ExecCtrl_HL65581Test_scNameNormal&"."&c_EPTF_ExecCtrl_HL65581Test_tcNameTc1
const charstring c_EPTF_ExecCtrl_HL65581Test_tcNorm2Name := c_EPTF_ExecCtrl_HL65581Test_eGrpName&"."&c_EPTF_ExecCtrl_HL65581Test_scNameNormal&"."&c_EPTF_ExecCtrl_HL65581Test_tcNameTc2
const charstring c_EPTF_ExecCtrl_HL65581Test_tcWeighted1Name := c_EPTF_ExecCtrl_HL65581Test_eGrpName&"."&c_EPTF_ExecCtrl_HL65581Test_scNameWeighted&"."&c_EPTF_ExecCtrl_HL65581Test_tcNameTc1
const charstring c_EPTF_ExecCtrl_HL65581Test_tcWeighted2Name := c_EPTF_ExecCtrl_HL65581Test_eGrpName&"."&c_EPTF_ExecCtrl_HL65581Test_scNameWeighted&"."&c_EPTF_ExecCtrl_HL65581Test_tcNameTc2
const EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList c_EPTF_ExecCtrl_HL65581Test_ExectrTesterEGrp :={{
name := c_EPTF_ExecCtrl_HL65581Test_eGrpName,
eType := c_EPTF_ExecCtrl_HL65581Test_eTypeName,
eCount := 100
}}
const EPTF_LGenBase_TcMgmt_Scenarios2GrpList c_EPTF_ExecCtrl_HL65581Test_Scenarios2GrpList := {
{
eGrpName := c_EPTF_ExecCtrl_HL65581Test_eGrpName,
scenarioNames := {
c_EPTF_ExecCtrl_HL65581Test_scNameNormal
}
},
{
eGrpName := c_EPTF_ExecCtrl_HL65581Test_eGrpName,
scenarioNames := {
c_EPTF_ExecCtrl_HL65581Test_scNameWeighted
}
}
}
const EPTF_ExecCtrl_ScenarioInstanceTypeList c_EPTF_ExecCtrl_HL65581Test_ScenarioInstanceTypeList := {
{c_EPTF_ExecCtrl_HL65581Test_scNameNormal, c_EPTF_ExecCtrl_HL65581Test_eGrpName, c_EPTF_ExecCtrl_HL65581Test_scNameNormal},
{c_EPTF_ExecCtrl_HL65581Test_scNameWeighted, c_EPTF_ExecCtrl_HL65581Test_eGrpName, c_EPTF_ExecCtrl_HL65581Test_scNameWeighted}
}
const EPTF_LGenBase_TcMgmt_tcTypeDeclarator2 c_EPTF_ExecCtrl_HL65581Test_simpleResponseTCType := {
name := "simpleResponseTCType",
fsmName := "simpleResponseFSM",
entityType := c_EPTF_ExecCtrl_HL65581Test_eTypeName,
customEntitySucc := ""
}
const EPTF_LGenBase_ScenarioTypeDeclarator c_EPTF_ExecCtrl_HL65581Test_normalScenario := {
name := c_EPTF_ExecCtrl_HL65581Test_scNameNormal,
tcList := {
{
tcName := c_EPTF_ExecCtrl_HL65581Test_tcNameTc1,
tcParamsList := {
{tcTypeName := "simpleResponseTCType"},
{enableEntitiesAtStart := true},
{enabledAtStart := true},
{target := {cpsToReach := 10.0} }
}
},
{
tcName := c_EPTF_ExecCtrl_HL65581Test_tcNameTc2,
tcParamsList := {
{tcTypeName := "simpleResponseTCType"},
{enableEntitiesAtStart := true},
{enabledAtStart := true},
{target := {cpsToReach := 10.0} }
}
}
},
scParamsList := {
{enabled := true}
}
}
const charstring c_EPTF_ExecCtrl_HL65581Test_PhaseListName := "phl1"
const EPTF_LGenBase_PhaseList_Declarators c_EPTF_ExecCtrl_HL65581Test_PhaseLists := {
{c_EPTF_ExecCtrl_HL65581Test_PhaseListName, {{"load",true}}}
}
const EPTF_LGenBase_ScenarioTypeDeclarator c_EPTF_ExecCtrl_HL65581Test_weightedScenario := {
name := c_EPTF_ExecCtrl_HL65581Test_scNameWeighted,
tcList := {
{
tcName := c_EPTF_ExecCtrl_HL65581Test_tcNameTc1,
tcParamsList := {
{tcTypeName := "simpleResponseTCType"},
{enableEntitiesAtStart := true},
{enabledAtStart := true},
{target := {trafficWeight := 25.0} }
}
},
{
tcName := c_EPTF_ExecCtrl_HL65581Test_tcNameTc2,
tcParamsList := {
{tcTypeName := "simpleResponseTCType"},
{enableEntitiesAtStart := true},
{enabledAtStart := true},
{target := {trafficWeight := 75.0} }
}
}
},
scParamsList := {
{weightedScData := {
cpsToReach := 10.0,
lockCPS := false,
deterministicMix := false,
scheduler := omit
}
},
{enabled := true}
}
}
const EPTF_LGenBase_ScenarioTypeParamsList c_EPTF_ExecCtrl_HL65581Test_scPhaseParams := {
{phaseListName := c_EPTF_ExecCtrl_HL65581Test_PhaseListName},
{phaseFinishConditions := {}},
{phaseStateChangeActions := {
{
phase := "load",
state := RUNNING,
actions := {
{startScenario := c_EPTF_ExecCtrl_HL65581Test_scNameNormal},
{startScenario := c_EPTF_ExecCtrl_HL65581Test_scNameWeighted}
}
},
{
phase := "load",
state := STOPPING,
actions := {
{stopScenario := c_EPTF_ExecCtrl_HL65581Test_scNameNormal},
{stopScenario := c_EPTF_ExecCtrl_HL65581Test_scNameWeighted}
}
}
}
}
}
const EPTF_ExecCtrl_ScenarioGroup_Declarators c_EPTF_ExecCtrl_HL65581Test_scGrps:={
{
name := "SCG0",
execMode := MANUAL,
scenarioNames := {c_EPTF_ExecCtrl_HL65581Test_scNameNormal, c_EPTF_ExecCtrl_HL65581Test_scNameWeighted&"bubu"},
phaseListName := c_EPTF_ExecCtrl_HL65581Test_PhaseListName
}
}
type component EPTF_ExecCtrl_HL65581Test_CT extends EPTF_ExecCtrl_CT{
}
testcase tc_ExecCtrl_HL65581Test() runs on EPTF_ExecCtrl_CT{
f_EPTF_Base_init_CT("HL65581Test")
f_EPTF_Base_setExpectedErrorMsg("Error: EPTF_ExecCtrl: f_EPTF_ExecCtrl_Phase_createScenarioGroups: Couldn't create scenario group instance: ? name := \"SCG0\", execMode := MANUAL ?1?, scenarioNames := ? \"normalScenario\", \"weightedScenariobubu\" ?, phaseListName := \"phl1\" ? at declarator index: 0 : One or more scenarios in the scenarioNames does not exist.")
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_HL65581Test_ExectrTesterEGrp,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_HL65581Test_Scenarios2GrpList,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_HL65581Test_simpleResponseTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {c_EPTF_ExecCtrl_HL65581Test_normalScenario,c_EPTF_ExecCtrl_HL65581Test_weightedScenario},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:={},
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:={},
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_HL65581Test_PhaseLists,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_HL65581Test_scGrps,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={})
f_EPTF_ExecCtrl_setManualControl(true)
f_EPTF_ExecCtrl_init_CT("HL65581Test", 1, false)
f_EPTF_Base_cleanup_CT()
}
}
group HL59515 {
type component ExecCtrl_Regulator_Test_AddSameRegulatedItem_Main_CT extends EPTF_UIHandler_CLI_CT, EPTF_ExecCtrl_UIHandler_CT {
}
const EPTF_ExecCtrl_RegulatedItems c_EPTF_ExecCtrl_RegulatedItems_AddSameRegulatedItem := {
{
idName := {
cps_TC := {
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
scName := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal,
tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc1
}
},
weight := 1.0,
enabled := true,
regulatorName := "Regulator1"
},
{
idName := {
cps_TC := {
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
scName := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal,
tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc1
}
},
weight := 1.0,
enabled := true,
regulatorName := "Regulator1"
},
{
idName := {
cps_SC := {
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
scName := c_EPTF_ExecCtrl_DefaultScenarios_scNameWeighted
}
},
weight := 1.0,
enabled := true,
regulatorName := "Regulator2"
}
}
testcase tc_ExecCtrl_Regulator_Test_AddSameRegulatedItem() runs on ExecCtrl_Regulator_Test_AddSameRegulatedItem_Main_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("AddSameRegulatedItem", true, vl_wndLayout);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:={},
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:={},
pl_EPTF_ExecCtrl_RegulatorNames:={"Regulator1","Regulator2"},
pl_EPTF_ExecCtrl_RegulatedItems:=c_EPTF_ExecCtrl_RegulatedItems_AddSameRegulatedItem
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_init_CT(f_EPTF_Base_selfName(), 0, pl_dataSource_compRef := self);
// start the regulators:
var EPTF_LoadRegulator_CT vl_regulator1 := EPTF_LoadRegulator_CT.create;
vl_regulator1.start(f_ExecCtrl_Regulator_Test_RegulatorBehaviour("Regulator1",self,10.0));
var EPTF_LoadRegulator_CT vl_regulator2 := EPTF_LoadRegulator_CT.create;
vl_regulator2.start(f_ExecCtrl_Regulator_Test_RegulatorBehaviour("Regulator2",self,10.0));
timer T_guard, T_alt;
T_guard.start( 100.0 );
T_alt.start( 10.0 );
T_alt.timeout; // to wait for the regulators to start up
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
setverdict(pass);
//f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
const EPTF_ExecCtrl_RegulatedItems c_EPTF_ExecCtrl_RegulatedItems_AddSameRegulatedItem2 := {
{
idName := {
cps_TC := {
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
scName := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal,
tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc1
}
},
weight := 1.0,
enabled := true,
regulatorName := "Regulator1"
},
{
idName := {
cps_TC := {
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
scName := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal,
tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc1
}
},
weight := 1.0,
enabled := true,
regulatorName := "Regulator2"
},
{
idName := {
cps_SC := {
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
scName := c_EPTF_ExecCtrl_DefaultScenarios_scNameWeighted
}
},
weight := 1.0,
enabled := true,
regulatorName := "Regulator2"
}
}
testcase tc_ExecCtrl_Regulator_Test_AddSameRegulatedItem2() runs on ExecCtrl_Regulator_Test_AddSameRegulatedItem_Main_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("AddSameRegulatedItem", true, vl_wndLayout);
f_EPTF_Base_setExpectedErrorMsg("*f_EPTF_ExecCtrl_Regulator_registerItem: Cannot set regulator name*");
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:={},
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:={},
pl_EPTF_ExecCtrl_RegulatorNames:={"Regulator1","Regulator2"},
pl_EPTF_ExecCtrl_RegulatedItems:=c_EPTF_ExecCtrl_RegulatedItems_AddSameRegulatedItem2
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_init_CT(f_EPTF_Base_selfName(), 0, pl_dataSource_compRef := self);
// start the regulators:
var EPTF_LoadRegulator_CT vl_regulator1 := EPTF_LoadRegulator_CT.create;
vl_regulator1.start(f_ExecCtrl_Regulator_Test_RegulatorBehaviour("Regulator1",self,10.0));
var EPTF_LoadRegulator_CT vl_regulator2 := EPTF_LoadRegulator_CT.create;
vl_regulator2.start(f_ExecCtrl_Regulator_Test_RegulatorBehaviour("Regulator2",self,10.0));
timer T_guard, T_alt;
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
setverdict(pass);
//f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
} // ~group HL59515
group HL58678 {
testcase tc_ExecCtrl_HL58678_Test_StopScGroup() runs on ExecCtrl_Regulator_Test_AddSameRegulatedItem_Main_CT
{
f_EPTF_CLI_init_CT("StopScGroup");
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_CLI_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_CLI_compRef := self,
pl_loadModulepars := false,
pl_autoStart := true,
pl_dataSource_compRef := self);
timer T_guard, T_alt;
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config:checkReadyToRun");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
f_EPTF_CLI_executeCommand("startExec scGroup DefaultScGroup");
var integer vl_scGrpStateIdx := f_EPTF_Var_getId("EPTF_ExecCtrl.Statistics.EG.DefaultEGrp.SC.DefaultWScInScGrp.SCGrp.GroupStatusLED");
const charstring cl_scGroupStateVarName := "Var.Execution_Control.PhaseLists.tabbox.DefaultPhases.tab.DefaultScGroup.GroupStatus";
if (vl_scGrpStateIdx==-1){
vl_scGrpStateIdx := f_EPTF_Var_getId(cl_scGroupStateVarName);
}
if (vl_scGrpStateIdx==-1) {
setverdict(fail,"Error in test: The scenario group status var not found!");
f_EPTF_Base_stopAll();
}
action("tc_ExecCtrl_HL58678_Test_StopScGroup: getStatusLEDValue[",vl_scGrpStateIdx,"]:",f_EPTF_Var_getStatusLEDValue(vl_scGrpStateIdx));
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during start scGroup");
f_EPTF_Base_stopAll();
}
[f_EPTF_Var_getStatusLEDValue(vl_scGrpStateIdx) == { color := led_green, text := "phase2 - RUNNING" }] T_alt.timeout{}
};
f_EPTF_CLI_executeCommand("stopExec scGroup DefaultScGroup");
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during stop scGroup");
f_EPTF_Base_stopAll();
}
[f_EPTF_Var_getStatusLEDValue(vl_scGrpStateIdx) == { color := led_red, text := "phase2 - STOPPING" }] T_alt.timeout{}
};
// check if CPS goes down to 0
T_guard.start( 20.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"The CPS of the scenario in the group is not zero after stop!");
f_EPTF_Base_stopAll();
}
[str2float(regexp(f_EPTF_CLI_executeCommand("getcurrentcps sc DefaultEGrp.DefaultWScInScGrp"),"*: (*)",0)) != 0.0] T_alt.timeout{}
};
setverdict(pass);
//f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_HL58678_Test_TerminateScGroup() runs on ExecCtrl_Regulator_Test_AddSameRegulatedItem_Main_CT
{
f_EPTF_CLI_init_CT("TerminateScGroup");
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_CLI_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_CLI_compRef := self,
pl_loadModulepars := false,
pl_autoStart := true,
pl_dataSource_compRef := self);
timer T_guard, T_alt;
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
f_EPTF_CLI_executeCommand("startExec scGroup DefaultScGroup");
var integer vl_scGrpStateIdx := f_EPTF_Var_getId("EPTF_ExecCtrl.Statistics.EG.DefaultEGrp.SC.DefaultWScInScGrp.SCGrp.DefaultScGroup.GroupStatusLED");
if (vl_scGrpStateIdx==-1) {
setverdict(fail,"Error in test: The scenario group status var not found!");
f_EPTF_Base_stopAll();
}
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during start scGroup");
f_EPTF_Base_stopAll();
}
[f_EPTF_Var_getStatusLEDValue(vl_scGrpStateIdx) == { color := led_green, text := "phase2 - RUNNING" }] T_alt.timeout{}
};
f_EPTF_CLI_executeCommand("terminateExec scGroup DefaultScGroup");
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during stop scGroup");
f_EPTF_Base_stopAll();
}
[f_EPTF_Var_getStatusLEDValue(vl_scGrpStateIdx) == { color := led_blue, text := "phase2 - IDLE" }] T_alt.timeout{}
};
// check if CPS goes down to 0
T_guard.start( 20.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"The CPS of the scenario in the group is not zero after stop!");
f_EPTF_Base_stopAll();
}
[str2float(regexp(f_EPTF_CLI_executeCommand("getcurrentcps sc DefaultEGrp.DefaultWScInScGrp"),"*: (*)",0)) != 0.0] T_alt.timeout{}
};
setverdict(pass);
//f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_HL58678_Test_StopAll() runs on ExecCtrl_Regulator_Test_AddSameRegulatedItem_Main_CT
{
f_EPTF_CLI_init_CT("StopAll");
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_CLI_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_CLI_compRef := self,
pl_loadModulepars := false,
pl_autoStart := true,
pl_dataSource_compRef := self);
timer T_guard, T_alt;
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config:checkReadyToRun");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
action("startExec all->{",f_EPTF_CLI_executeCommand("startExec all"));
//f_EPTF_CLI_executeCommand("startExec all");
action("} startExec all");
var integer vl_scGrpStateIdx := f_EPTF_Var_getId("EPTF_ExecCtrl.Statistics.EG.DefaultEGrp.SC.DefaultWScInScGrp.SCGrp.GroupStatusLED");
const charstring cl_scGroupStateVarName := "Var.Execution_Control.PhaseLists.tabbox.DefaultPhases.tab.DefaultScGroup.GroupStatus";
if (vl_scGrpStateIdx==-1){
vl_scGrpStateIdx := f_EPTF_Var_getId(cl_scGroupStateVarName);
}
if (vl_scGrpStateIdx==-1) {
setverdict(fail,"Error in test: The scenario group status var not found!");
f_EPTF_Base_stopAll();
}
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during start scGroup");
f_EPTF_Base_stopAll();
}
[f_EPTF_Var_getStatusLEDValue(vl_scGrpStateIdx) == { color := led_green, text := "phase2 - RUNNING" }] T_alt.timeout{}
};
f_EPTF_CLI_executeCommand("stopExec all");
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during stop scGroup");
f_EPTF_Base_stopAll();
}
[f_EPTF_Var_getStatusLEDValue(vl_scGrpStateIdx) == { color := led_red, text := "phase2 - STOPPING" }] T_alt.timeout{}
};
// check if CPS goes down to 0
T_guard.start( 20.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"The CPS of the scenario in the group is not zero after stop!");
f_EPTF_Base_stopAll();
}
[str2float(regexp(f_EPTF_CLI_executeCommand("getcurrentcps sc DefaultEGrp.DefaultWScInScGrp"),"*: (*)",0)) != 0.0] T_alt.timeout{}
};
setverdict(pass);
//f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_HL58678_Test_TerminateAll() runs on ExecCtrl_Regulator_Test_AddSameRegulatedItem_Main_CT
{
f_EPTF_CLI_init_CT("TerminateAll");
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_CLI_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_CLI_compRef := self,
pl_loadModulepars := false,
pl_autoStart := true,
pl_dataSource_compRef := self);
timer T_guard, T_alt;
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
f_EPTF_CLI_executeCommand("startExec all");
var integer vl_scGrpStateIdx := f_EPTF_Var_getId("EPTF_ExecCtrl.Statistics.EG.DefaultEGrp.SC.DefaultWScInScGrp.SCGrp.DefaultScGroup.GroupStatusLED");
if (vl_scGrpStateIdx==-1) {
setverdict(fail,"Error in test: The scenario group status var not found!");
f_EPTF_Base_stopAll();
}
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during start scGroup");
f_EPTF_Base_stopAll();
}
[f_EPTF_Var_getStatusLEDValue(vl_scGrpStateIdx) == { color := led_green, text := "phase2 - RUNNING" }] T_alt.timeout{}
};
f_EPTF_CLI_executeCommand("terminateExec all");
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during stop scGroup");
f_EPTF_Base_stopAll();
}
[f_EPTF_Var_getStatusLEDValue(vl_scGrpStateIdx) == { color := led_blue, text := "phase2 - IDLE" }] T_alt.timeout{}
};
// check if CPS goes down to 0
T_guard.start( 20.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"The CPS of the scenario in the group is not zero after stop!");
f_EPTF_Base_stopAll();
}
[str2float(regexp(f_EPTF_CLI_executeCommand("getcurrentcps sc DefaultEGrp.DefaultWScInScGrp"),"*: (*)",0)) != 0.0] T_alt.timeout{}
};
setverdict(pass);
//f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
} //~group HL58678
group HL79051 {
const charstring c_EPTF_ExecCtrl_Test_HL79051LGenPoolName := "HL79051LGenPool";
const EPTF_ExecCtrl_LGenPool_Declarators c_EPTF_ExecCtrl_Test_HL79051_Declarators := {
{
name := c_EPTF_ExecCtrl_Test_HL79051LGenPoolName,
lgenPoolItems := {
{
hostname := "localhost",
num := 2,
createFunctionName := "EPTF_ExecCtrl_Test_Functions.f_ExecCtrl_Test_createHL79051LGen"
}
}
}
}
const EPTF_ExecCtrl_EntityGroup2LGenPool_List c_EPTF_ExecCtrl_HL79051Scenarios_EntityGroup2LGenPool_List := {
{
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
lgenPoolName := c_EPTF_ExecCtrl_Test_HL79051LGenPoolName
}
}
const EPTF_ExecCtrl_RegulatedItems c_EPTF_ExecCtrl_RegulatedItems_HL79051 := {
{
idName := {
cps_TC := {
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
scName := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal,
tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc2
}
},
weight := 1.0,
enabled := true,
regulatorName := "RegulatorHL79051"
},
{
idName := {
cps_SC := {
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
scName := c_EPTF_ExecCtrl_DefaultScenarios_scNameWeighted
}
},
weight := 1.0,
enabled := true,
regulatorName := "RegulatorHL79051"
}
}
// test if when regulator is disabled and CPS is changed on an LGen, the CPS will be overwritten
// by mistake by the execCtrl without the regulator target value was updated
testcase tc_ExecCtrl_Regulator_Test_HL79051() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("HL79051", true, vl_wndLayout);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_HL79051_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_HL79051Scenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createHL79051LGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={"RegulatorHL79051"},
pl_EPTF_ExecCtrl_RegulatedItems:=c_EPTF_ExecCtrl_RegulatedItems_HL79051
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_init_CT(f_EPTF_Base_selfName(), 0, pl_dataSource_compRef := self);
f_EPTF_ExecCtrl_waitForCondition(refers(f_EPTF_ExecCtrl_checkReadyToRun));
timer T_guard, T_alt;
setverdict(pass);
f_EPTF_ExecCtrl_startAllScenarios();
T_alt.start( 40.0 );
T_alt.timeout; // stop the test after 20 secs
//f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
} //~group HL79051
group CR_TR00017030 {
// do not load modulepars automatically
function f_ExecCtrl_Test_CR_TR00017030_loadConfig(in boolean pl_loadModulepars) runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT {
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_HL79051_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_HL79051Scenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createHL79051LGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={"RegulatorHL79051"},
pl_EPTF_ExecCtrl_RegulatedItems:=c_EPTF_ExecCtrl_RegulatedItems_HL79051
);
f_EPTF_ExecCtrl_setManualControl(true);
}
testcase tc_ExecCtrl_Test_CR_TR00017030_DoNotLoadModulepars() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("DoNotLoadModulepars", true, vl_wndLayout);
f_ExecCtrl_Test_CR_TR00017030_loadConfig(
pl_loadModulepars := false
);
f_EPTF_ExecCtrl_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_loadModulepars := false,
pl_autoStart := true,
pl_dataSource_compRef := self);
timer T_guard, T_alt;
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config:checkReadyToRun");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
//f_EPTF_ExecCtrl_startAllScenarios();
// check if modulepars are not loaded:
action("tc_ExecCtrl_Test_CR_TR00017030_DoNotLoadModulepars:",f_EPTF_Var_getId("EPTF_ExecCtrl.Statistics.EG.grp1.SC.scenario_0.TC.TC0.CurrentCPS"));
if (-1!=f_EPTF_Var_getId("EPTF_ExecCtrl.Statistics.EG.grp1.SC.scenario_0.TC.TC0.CurrentCPS")) {
setverdict(fail,"ExecCtrl module parameters were loaded when loading was disabled.");
} else {
setverdict(pass);
}
//f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_Test_CR_TR00017030_LoadModulepars() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("DoNotLoadModulepars", true, vl_wndLayout);
f_ExecCtrl_Test_CR_TR00017030_loadConfig(
pl_loadModulepars := true
);
f_EPTF_ExecCtrl_init_CT(f_EPTF_Base_selfName(), 0, pl_dataSource_compRef := self);
timer T_guard, T_alt;
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
//f_EPTF_ExecCtrl_startAllScenarios();
// check if modulepars are loaded:
if (-1==f_EPTF_Var_getId("EPTF_ExecCtrl.Statistics.EG.grp1.SC.scenario_0.TC.TC0.CurrentCPS")) {
setverdict(fail,"ExecCtrl module parameters were not loaded properly.");
} else {
setverdict(pass);
}
//f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
} //~group CR_TR00017030
group CR_TR00017092 {
const EPTF_ExecCtrl_EntityGroupDistributionTypeList c_EPTF_ExecCtrl_EntityGroupDistributionTypeList := {
{
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
lgenWeights := {
{
lgenName := "LGen0.LGenDefaultPool.localhost",
weight := 1.0
},
{
lgenName := "LGen1.LGenDefaultPool.localhost",
weight := 2.0
},
{
lgenName := "LGen2.LGenDefaultPool.localhost",
weight := 3.0
},
{
lgenName := "LGen3.LGenDefaultPool.localhost",
weight := 4.0
}
}
}
}
const EPTF_ExecCtrl_LGenPool_Declarators c_EPTF_ExecCtrl_LGenWithLimitedEntitiesLGenPool_Declarators := {
{
name := c_EPTF_ExecCtrl_Test_defaultLGenPoolName,
lgenPoolItems := {
{
hostname := "localhost",
num := 2,
createFunctionName := "EPTF_ExecCtrl_Test_Functions.f_ExecCtrl_Test_createLGenWithLimitedEntities"
},
{
hostname := "localhost",
num := 2,
createFunctionName := "EPTF_ExecCtrl_Test_Functions.f_EPTF_ExecCtrl_LGenWithUnLimitedEntitiesBehaviour"
}
}
}
}
// tests if the entities are distributed according to the configured entityDistribution setting
testcase tc_ExecCtrl_Test_WeightedEntityGroup() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("SetTargetCPSInAutoOff", true, vl_wndLayout);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_LGenWithLimitedEntitiesLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={
{
name := omit,
fn := refers(f_EPTF_ExecCtrl_LGenWithUnLimitedEntitiesBehaviour)
},
{
name := omit,
fn := refers(f_ExecCtrl_Test_createLGenWithLimitedEntities)
}
},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={},
pl_EPTF_ExecCtrl_EntityGroupDistributionTypeList := c_EPTF_ExecCtrl_EntityGroupDistributionTypeList
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_init_CT(f_EPTF_Base_selfName(), 0, pl_dataSource_compRef := self);
timer T_guard, T_alt;
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
// check if the allocated entities on the LGens are correct:
var integer vl_eGrpIdx := f_EPTF_ExecCtrl_getEntityGroupIdx(c_EPTF_ExecCtrl_DefaultScenarios_eGrpName);
var EPTF_ExecCtrl_EntityGroupDistributionList vl_lgenList := f_EPTF_ExecCtrl_eGrp_lgenList(vl_eGrpIdx);
for(var integer lgenIdx:=0; lgenIdx<sizeof(vl_lgenList); lgenIdx:=lgenIdx+1) {
var integer vl_lgenIdx := vl_lgenList[lgenIdx].lgenIdx;
var charstring vl_lgenName := f_EPTF_ExecCtrl_getLGenName(vl_lgenIdx);
var float vl_sumWeight := 0.0;
var float vl_lgenWeight := 0.0;
for(var integer i:=0; i<sizeof(c_EPTF_ExecCtrl_EntityGroupDistributionTypeList); i:=i+1) {
if (c_EPTF_ExecCtrl_EntityGroupDistributionTypeList[i].eGrpName != c_EPTF_ExecCtrl_DefaultScenarios_eGrpName) {
continue; // not for the given entity group
}
for(var integer j:=0; j<sizeof(c_EPTF_ExecCtrl_EntityGroupDistributionTypeList[i].lgenWeights); j:=j+1) {
if (c_EPTF_ExecCtrl_EntityGroupDistributionTypeList[i].lgenWeights[j].lgenName==vl_lgenName) {
vl_lgenWeight := c_EPTF_ExecCtrl_EntityGroupDistributionTypeList[i].lgenWeights[j].weight;
}
vl_sumWeight := vl_sumWeight + c_EPTF_ExecCtrl_EntityGroupDistributionTypeList[i].lgenWeights[j].weight;
}
}
if (vl_sumWeight!=0.0) {
vl_lgenWeight := vl_lgenWeight/vl_sumWeight;
}
var integer vl_expectedEntityNum := float2int(vl_lgenWeight*int2float(c_EPTF_ExecCtrl_DefaultScenarios_eGrpSize));
var integer vl_allocatedEntityNum := vl_lgenList[lgenIdx].eCount;
if (vl_expectedEntityNum != vl_allocatedEntityNum) {
setverdict(fail, "Entity number allocated on LGen "&vl_lgenName&" is incorrect. Expecting "&int2str(vl_expectedEntityNum)&" but got "&
int2str(vl_allocatedEntityNum));
f_EPTF_Base_cleanup_CT();
stop; // This line is never reached
}
}
setverdict(pass);
//f_EPTF_ExecCtrl_startAllScenarios();
//f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
} //~group CR_TR00017092
group LoadConfigAfterInit {
function f_ExecCtrl_Test_LoadConfigAfterInit_loadConfig() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT {
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={c_EPTF_ExecCtrl_DefaultRegulatorName},
pl_EPTF_ExecCtrl_RegulatedItems:=c_EPTF_ExecCtrl_DefaultRegulatedItems
);
f_EPTF_ExecCtrl_setManualControl(true);
}
// tests if config can be loaded after ExecCtrl init
testcase tc_ExecCtrl_Test_LoadConfigAfterInit() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("LoadConfigAfterInit", true, vl_wndLayout);
f_ExecCtrl_Test_LoadConfigAfterInit_loadConfig();
f_EPTF_ExecCtrl_init_CT(f_EPTF_Base_selfName(), 0, pl_dataSource_compRef := self);
timer T_guard, T_alt;
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config[checkReadyToRun]");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
// start after loadconfig
// 2013.04.08. f_EPTF_ExecCtrl_start(pl_createLGenPools := true);
f_EPTF_ExecCtrl_startAllScenarios();
// check if modulepars are loaded:
var integer vl_idx := f_EPTF_Var_getId("EPTF_ExecCtrl.Statistics.EG.DefaultEGrp.SC.DefaultSc.TC.DefaultTC2.CurrentCPS");
if (-1==vl_idx) {
action("tc_ExecCtrl_Test_LoadConfigAfterInit[",vl_idx,"]");
setverdict(fail,"ExecCtrl module parameters were not loaded.");
f_EPTF_Base_stopAll();
} else {
action("tc_ExecCtrl_Test_LoadConfigAfterInit[",vl_idx,"]=",f_EPTF_Var_getFloatValue(vl_idx));
T_guard.start( 30.0 );
T_alt.start( 0.0 );
alt {
[10.0-f_EPTF_Var_getFloatValue(vl_idx)<0.01] T_alt.timeout {
setverdict(pass);
}
[] T_guard.timeout {
setverdict(fail,"Timeout after start: target CPS is not reached in time");
f_EPTF_Base_stopAll();
}
}
}
//f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
} //~group LoadConfigAfterInit
group LoadConfigFromClient {
function f_ExecCtrl_Test_LoadConfigFromClient_loadConfig( in charstring pl_selfName, in EPTF_DataSource_CT pl_dataSource, EPTF_CLI_CT pl_compRef) runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT {
f_ExecCtrl_Test_createDefaultLGen("host","comp");
f_EPTF_ExecCtrl_loadConfig(
// pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
// pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
// c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
// pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
// pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
// pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
// pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
// pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
// pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
// pl_EPTF_ExecCtrl_TimeProfileList:={},
// pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
// pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
// c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
// c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp
// },
// pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
// pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators,
// pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGen)
}}//,
// pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
// pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
// pl_EPTF_ExecCtrl_RegulatorNames:={c_EPTF_ExecCtrl_DefaultRegulatorName},
// pl_EPTF_ExecCtrl_RegulatedItems:=c_EPTF_ExecCtrl_DefaultRegulatedItems
);
f_EPTF_ExecCtrl_setManualControl(true);
var EPTF_ExecCtrlClient_CT vl_clientComp := EPTF_ExecCtrlClient_CT.create;
vl_clientComp.start( f_EPTF_ExecCtrl_LoadConfigFromClient_behaviour("LGen_LoadCfg_"&log2str(vl_clientComp),self) );
}
// tests if config can be loaded after ExecCtrl init (CR_TR00017275)
testcase tc_ExecCtrl_Test_LoadConfigFromClient() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("LoadConfigFromClient", true, vl_wndLayout);
f_EPTF_ExecCtrl_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 2,
pl_createLGenPools := true,
pl_loadModulepars := false,
pl_autoStart := false,
pl_dataSource_compRef := self);
f_ExecCtrl_Test_LoadConfigFromClient_loadConfig("LoadConfigFromClient", self, self);
timer T_guard, T_alt;
T_alt.start(10.0); T_alt.timeout; // just to wait if ExecCtrlUIHandler creates an error and to let time for client loadconfigs to arrive
// start after loadconfig
f_EPTF_ExecCtrl_start(pl_createLGenPools := true);
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config:checkReadyToRun");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
f_EPTF_ExecCtrl_startAllScenarios();
// check if modulepars are loaded:
var integer vl_idx := f_EPTF_Var_getId("EPTF_ExecCtrl.Statistics.EG.DefaultEGrp.SC.DefaultSc.TC.DefaultTC2.CurrentCPS");
var integer vl_idx2 := f_EPTF_Var_getId("EPTF_ExecCtrl.Statistics.EG.LoadedGroup.SC.DefaultSc.TC.DefaultTC2.CurrentCPS");
if (-1==vl_idx or -1==vl_idx2) {
setverdict(fail,"ExecCtrl module parameters were not loaded.");
// f_EPTF_Base_stopAll();
} else {
T_guard.start( 30.0 );
T_alt.start( 0.0 );
alt {
[10.0-f_EPTF_Var_getFloatValue(vl_idx)<0.01 and 10.0-f_EPTF_Var_getFloatValue(vl_idx2)<0.01] T_alt.timeout {
setverdict(pass);
}
[] T_guard.timeout {
setverdict(fail,"Timeout after start: target CPS is not reached in time");
// f_EPTF_Base_stopAll();
}
}
}
//f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
// tests if configuration loaded after start or from LGen pools generates a warning
testcase tc_ExecCtrl_Test_Manual_LoadConfigFromClient_Warnings() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("LoadConfigFromClient_Warnings", true, vl_wndLayout);
f_EPTF_ExecCtrl_init_CT(f_EPTF_Base_selfName(), 0, pl_dataSource_compRef := self);
f_ExecCtrl_Test_LoadConfigFromClient_loadConfig(f_EPTF_Base_selfName(), self, self);
// load an LGen pool in which loadconfig will be called (to generate warning)
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_ExecCtrl_LGenPool_Declarators:={
{
name := "LoadConfigInPool",
lgenPoolItems := {
{
hostname := "localhost",
num := 1,
createFunctionName := "EPTF_ExecCtrl_Test_Functions.f_ExecCtrl_Test_createLoadConfigLGen"
}
}
}
},
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createLoadConfigLGen)
}}
);
// create an LGen in which config is loaded after readyTostart:
var EPTF_ExecCtrlClient_CT vl_clientComp := EPTF_ExecCtrlClient_CT.create;
vl_clientComp.start( f_EPTF_ExecCtrl_LoadConfigFromClientAfterStart_behaviour("LGen_LoadCfgAfterStart_"&log2str(vl_clientComp),self) );
timer T_guard, T_alt;
T_alt.start(10.0); T_alt.timeout; // just to wait if ExecCtrlUIHandler creates an error and to let time for client loadconfigs to arrive
// start after loadconfig
f_EPTF_ExecCtrl_start(pl_createLGenPools := true);
// LGen loads config properly, but LGen created after start: LGen was started too late => warning is generated:
vl_clientComp := EPTF_ExecCtrlClient_CT.create;
vl_clientComp.start( f_EPTF_ExecCtrl_LoadConfigFromClient_behaviour("LGen_LoadCfgTooLate_"&log2str(vl_clientComp),self) );
// this should generate a warning
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := {{
name := "EGrpLoadedAfterStart",
eType := c_EPTF_ExecCtrl_Test_defaultETypeName,
eCount := c_EPTF_ExecCtrl_DefaultScenarios_eGrpSize
}}
);
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
f_EPTF_ExecCtrl_startAllScenarios();
// check if modulepars are loaded:
var integer vl_idx := f_EPTF_Var_getId("EPTF_ExecCtrl.Statistics.EG.DefaultEGrp.SC.DefaultSc.TC.DefaultTC2.CurrentCPS");
var integer vl_idx2 := f_EPTF_Var_getId("EPTF_ExecCtrl.Statistics.EG.LoadedGroup.SC.DefaultSc.TC.DefaultTC2.CurrentCPS");
if (-1==vl_idx or -1==vl_idx2) {
setverdict(fail,"ExecCtrl module parameters were not loaded.");
} else {
T_guard.start( 30.0 );
T_alt.start( 0.0 );
alt {
[10.0-f_EPTF_Var_getFloatValue(vl_idx)<0.01 and 10.0-f_EPTF_Var_getFloatValue(vl_idx2)<0.01] T_alt.timeout {
setverdict(pass);
}
[] T_guard.timeout {
setverdict(fail,"Timeout after start: target CPS is not reached in time");
f_EPTF_Base_stopAll();
}
}
}
//f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
} //~group LoadConfigFromClient
testcase tc_ExecCtrl_Test_wrongTimeProfileName() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT{
f_EPTF_ExecCtrl_loadConfig(pl_EPTF_ExecCtrl_TimeProfile2TcList := {{
tcId := {
eGrpName := "grp0",
scName := "scenario_0_declarator2",
tcName := "TC0_declarator2"},
timeProfileName := "HP34137"}});
f_EPTF_ExecCtrl_init_CT("Test_for_HP34137", 0, false, true, false);
f_EPTF_Base_setExpectedErrorMsg("*Unable to find the time profile*");
f_EPTF_ExecCtrl_start(true);
f_EPTF_Base_stopAll(fail);
}
modulepar integer tsp_ExecCtrl_PerfTest_CustomGuiRefresh_TCPerSCFactor := 1; //Warning : value bigger than 3 causes too long execution time!
type float floatDone with {extension "done"};
testcase tc_ExecCtrl_PerfTest_CustomGuiRefresh() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT{
var floatDone vl_ret1, vl_ret2, vl_ret3;
var ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT vl_comp1,vl_comp2,vl_comp3;
vl_comp1 :=ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT.create;
vl_comp1.start(f_ExecCtrl_PerfTest_CustomGuiRefresh(10));
vl_comp1.done(floatDone : ?) -> value vl_ret1;
//action("vl_ret1: ",vl_ret1);
vl_comp2 :=ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT.create;
vl_comp2.start(f_ExecCtrl_PerfTest_CustomGuiRefresh(0));
vl_comp2.done(floatDone : ?) -> value vl_ret2;
//action("vl_ret2: ",vl_ret2);
vl_comp3 :=ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT.create;
vl_comp3.start(f_ExecCtrl_PerfTest_CustomGuiRefresh(1000));
vl_comp3.done(floatDone : ?) -> value vl_ret3;
//action("vl_ret3: ",vl_ret3);
if(vl_ret1 < vl_ret2){ setverdict(fail,"It got even slower, when using slower refresh rate : ",vl_ret1, " vs ", vl_ret2 )}
if(vl_ret2 < vl_ret3){ setverdict(fail,"It got even slower, when using slower refresh rate : ",vl_ret1, " vs ", vl_ret2 )}
action("------ Test Results: -------");
action(" Refresh Rate CPU Load");
action(" 10 ",vl_ret1);
action(" 0 (default) ",vl_ret2);
action(" 1000 ",vl_ret3);
}
function f_ExecCtrl_PerfTest_CustomGuiRefresh(in integer pl_refreshTime := 0) runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
return floatDone
{
timer T_guard, T_alt;
T_guard.start( 100.0 );
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("SetTargetCPSInAutoOff", true, vl_wndLayout);
var EPTF_LGenBase_TcMgmt_Scenarios2GrpList vl_scenNames := {};
var EPTF_LGenBase_ScenarioTypeDeclarator vl_scenDcl;
var EPTF_LGenBase_ScenarioTypeDeclaratorList vl_scenDcList := {};
var EPTF_ExecCtrl_ScenarioGroup_Declarators vl_scGroups := {
{
name := c_EPTF_ExecCtrl_DefaultScenarios_scGrpName,
execMode := AUTOMATIC,
scenarioNames := { },
phaseListName := "DefaultPhases"
}
}
for(var integer vl_i := 0; vl_i <15 ; vl_i := vl_i + 1){
vl_scGroups[0].scenarioNames := vl_scGroups[0].scenarioNames & {c_EPTF_ExecCtrl_DefaultScenarios_eGrpName&"."&c_EPTF_ExecCtrl_DefaultScenarios_scInScGrpNameNormal & int2str(vl_i) };
vl_scenDcl := { name := c_EPTF_ExecCtrl_DefaultScenarios_scInScGrpNameNormal & int2str(vl_i),
tcList := {},
scParamsList := {
{enabled := true}
}
};
for(var integer vl_j := 0; vl_j <= tsp_ExecCtrl_PerfTest_CustomGuiRefresh_TCPerSCFactor*vl_i ; vl_j := vl_j + 1){
vl_scenDcl.tcList := vl_scenDcl.tcList & {{
tcName := "DefaultTC" & int2str(vl_j) ,
tcParamsList := {
{tcTypeName := c_EPTF_ExecCtrl_DefaultScenarios_tcTypeName},
{enableEntitiesAtStart := true},
{enabledAtStart := true},
{target := {cpsToReach := 10.0} }
}}
};
}
vl_scenDcList := vl_scenDcList & {vl_scenDcl};
vl_scenNames := vl_scenNames & {{
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
scenarioNames := {
c_EPTF_ExecCtrl_DefaultScenarios_scInScGrpNameNormal & int2str(vl_i)
}
}};
}
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := vl_scenNames,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= vl_scenDcList,
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:={},//vl_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_init_CT(f_EPTF_Base_selfName(), 0, pl_dataSource_compRef := self);
f_EPTF_ExecCtrl_UIHandler_setRefreshRates(pl_refreshRate_TCStats := pl_refreshTime);
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
f_EPTF_ExecCtrl_startAllScenarios();
//f_EPTF_Base_wait4Shutdown();
T_alt.start( 3.0 );
var float vl_procuse := 0.0;
var integer vl_procusedb := 0;
alt{
[] T_alt.timeout {
vl_procuse := vl_procuse * 0.7 + 0.3*f_EPTF_runTop();
// vl_procuse := ((vl_procuse * int2float(vl_procusedb)) + f_EPTF_runTop()) / int2float(vl_procusedb + 1);
vl_procusedb := vl_procusedb + 1;
if( vl_procusedb < 30){
T_alt.start(3.0);
repeat;}
}
};
action("TCStats == ", pl_refreshTime ,", Avg: ", vl_procuse);
setverdict(pass);
f_EPTF_Base_cleanup_CT();
return vl_procuse;
}
group TerminateClientBeforeStart {
function f_ExecCtrl_Test_TerminateClientBeforeStart_loadConfig(in boolean pl_stopAll := true) runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT {
f_ExecCtrl_Test_createDefaultLGen("host","comp");
f_EPTF_ExecCtrl_loadConfig(
// pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
// pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
// c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
// pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
// pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
// pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
// pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
// pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
// pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
// pl_EPTF_ExecCtrl_TimeProfileList:={},
// pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
// pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
// c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
// c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp
// },
// pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
// pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators,
// pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGen)
}}//,
// pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
// pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
// pl_EPTF_ExecCtrl_RegulatorNames:={c_EPTF_ExecCtrl_DefaultRegulatorName},
// pl_EPTF_ExecCtrl_RegulatedItems:=c_EPTF_ExecCtrl_DefaultRegulatedItems
);
f_EPTF_ExecCtrl_setManualControl(true);
var EPTF_ExecCtrlClient_CT vl_clientComp := EPTF_ExecCtrlClient_CT.create;
vl_clientComp.start( f_EPTF_ExecCtrl_TerminateClientBeforeStart_behaviour("LGen_LoadCfg_"&log2str(vl_clientComp),self,pl_stopAll) );
}
// tests if client exits (with stop all) before f_EPTF_ExecCtrl_start is called (CR_TR00017275)
testcase tc_ExecCtrl_Test_TerminateClientBeforeStart_stopAll() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("TerminateClientBeforeStart_stopAll", true, vl_wndLayout);
f_EPTF_ExecCtrl_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 2,
pl_createLGenPools := true, // this will generate a warning
pl_loadModulepars := false,
pl_autoStart := false,
pl_dataSource_compRef := self);
f_ExecCtrl_Test_TerminateClientBeforeStart_loadConfig();
timer T_guard, T_alt;
T_guard.start( 20.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"StopAll in client was not finished in time");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
// f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
// tests if client exits (with stop) before f_EPTF_ExecCtrl_start is called (CR_TR00017275)
testcase tc_ExecCtrl_Test_TerminateClientBeforeStart_stop() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("TerminateClientBeforeStart_stop", true, vl_wndLayout);
f_EPTF_ExecCtrl_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 2,
pl_createLGenPools := true, // this will generate a warning
pl_loadModulepars := false,
pl_autoStart := false,
pl_dataSource_compRef := self);
f_ExecCtrl_Test_TerminateClientBeforeStart_loadConfig(pl_stopAll := false);
timer T_guard, T_alt;
T_guard.start( 20.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(pass,"Client has terminated successfully");
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
// f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
} // group TerminateClientBeforeStart
group ScenarioWithFSM_HN12034 {
// Tests if the FSM is given in the Scenario, not using TcTypeDeclarator
// TR: HN12034
testcase tc_ExecCtrl_Test_no_tcTypeDeclaratorList() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("no_tcTypeDeclaratorList", true, vl_wndLayout);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
// TCType is not declared, FSM is given in the Scenario declarator/TCParams/fsmList:
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {/*c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType*/},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioWithFSM,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioWithFSM,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrpWithFSM,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrpWithFSM
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={c_EPTF_ExecCtrl_DefaultRegulatorName},
pl_EPTF_ExecCtrl_RegulatedItems:=c_EPTF_ExecCtrl_DefaultRegulatedItems
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_init_CT(f_EPTF_Base_selfName(), 0, pl_dataSource_compRef := self);
timer T_guard, T_alt;
// start after loadconfig
// 2013.04.08. f_EPTF_ExecCtrl_start(pl_createLGenPools := true);
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
f_EPTF_ExecCtrl_startAllScenarios();
// check if modulepars are loaded:
var integer vl_idx := f_EPTF_Var_getId("EPTF_ExecCtrl.Statistics.EG.DefaultEGrp.SC.DefaultSc.TC.DefaultTC2.CurrentCPS");
if (-1==vl_idx) {
setverdict(fail,"ExecCtrl module parameters were not loaded.");
f_EPTF_Base_stopAll();
} else {
T_guard.start( 30.0 );
T_alt.start( 0.0 );
alt {
[10.0-f_EPTF_Var_getFloatValue(vl_idx)<0.01] T_alt.timeout {
setverdict(pass);
}
[] T_guard.timeout {
setverdict(fail,"Timeout after start: target CPS is not reached in time");
f_EPTF_Base_stopAll();
}
}
}
//f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
} // group ScenarioWithFSM_HN12034
group HN29644{
const EPTF_LGenBase_ScenarioTypeDeclarator c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario_HN29644 := {
name := c_EPTF_ExecCtrl_DefaultScenarios_scNameWeighted,
tcList := {
{
tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc1,
tcParamsList := {
{tcTypeName := c_EPTF_ExecCtrl_DefaultScenarios_tcTypeName},
{enableEntitiesAtStart := true},
{enabledAtStart := true},
{target := {trafficWeight := 1.0} }
}
},
{
tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc2,
tcParamsList := {
{tcTypeName := c_EPTF_ExecCtrl_DefaultScenarios_tcTypeName},
{enableEntitiesAtStart := true},
{enabledAtStart := true},
{target := {trafficWeight := 1.0} }
}
}
},
scParamsList := {
{weightedScData := {
cpsToReach := 10.0,
lockCPS := false,
deterministicMix := false,
scheduler := omit
}
},
{enabled := true}
}
}
const EPTF_LGenBase_ScenarioTypeDeclarator c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp_HN29644 := {
name := c_EPTF_ExecCtrl_DefaultScenarios_scInScGrpNameWeighted,
tcList := {
{
tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc1,
tcParamsList := {
{tcTypeName := c_EPTF_ExecCtrl_DefaultScenarios_tcTypeName},
{enableEntitiesAtStart := true},
{enabledAtStart := true},
{target := {trafficWeight := 1.0} },
{trafficStartFinish := {
{nrOfExecStart := {count := 10000,actions := {}}}
}
}
}
},
{
tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc2,
tcParamsList := {
{tcTypeName := c_EPTF_ExecCtrl_DefaultScenarios_tcTypeName},
{enableEntitiesAtStart := true},
{enabledAtStart := true},
{target := {trafficWeight := 1.0} },
{trafficStartFinish := {
{nrOfExecStart := {count := 10000,actions := {}}}
}
}
}
}
},
scParamsList := {
{weightedScData := {
cpsToReach := 10.0,
lockCPS := false,
deterministicMix := false,
scheduler := omit
}
},
{enabled := true},
{phaseListName := "DefaultPhases"},
{phaseFinishConditions := {
{
phase := "phase1",
conditions := {
{ tcFinished := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc2 }
}
},
{
phase := "phase2",
conditions := {
//{ scenarioFinished := "" }
{ tcFinished := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc1 }
}
},
{
phase := "phase3",
conditions := {
//{ scenarioFinished := "" }
{ tcFinished := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc1 }
}
}
}
},
{phaseStateChangeActions := {
{
phase := "phase1",
state := RUNNING,
actions := {
{ startScenario:="Sc" }
}
},
{
phase := "phase2",
state := RUNNING,
actions := {
//{ startScenario:="Sc" }
//{ stopTc := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc1 },
//{ startTc := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc2 }
}
},
{
phase := "phase3",
state := RUNNING,
actions := {
//{ startScenario:="Sc" }
{ startTc := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc1 }
}
},
{
phase := "phase1",
state := STOPPING,
actions := {
{ stopScenario:="Sc" }
}
},
{
phase := "phase2",
state := STOPPING,
actions := {
{ stopScenario:="Sc" }
}
},
{
phase := "phase3",
state := STOPPING,
actions := {
{ stopScenario:="Sc" }
}
}
}
}
}
}
testcase tc_ExecCtrl_Test_WeightedEntityGroupWithoutWeightGiven1() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
f_ExecCtrl_Test_WeightedEntityGroupWith0Weight( pl_EPTF_ExecCtrl_HN29644_eGrpSize := 20,
pl_resultList := {5, 5, 5, 5});
}
testcase tc_ExecCtrl_Test_WeightedEntityGroupWithoutWeightGiven2() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
f_ExecCtrl_Test_WeightedEntityGroupWith0Weight( pl_EPTF_ExecCtrl_HN29644_eGrpSize := 21,
pl_resultList := {6, 5, 5, 5},
pl_checkByLGenId := true);
}
testcase tc_ExecCtrl_Test_WeightedEntityGroupWithoutWeightGiven3() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
f_ExecCtrl_Test_WeightedEntityGroupWith0Weight( pl_EPTF_ExecCtrl_HN29644_eGrpSize := 100,
pl_resultList := {20, 20, 30, 30} );
}
testcase tc_ExecCtrl_Test_WeightedEntityGroupWith0Weight1() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
f_ExecCtrl_Test_WeightedEntityGroupWith0Weight( pl_EPTF_ExecCtrl_HN29644_eGrpSize := 20,
pl_resultList := {0, 12, 8, 0},
pl_weightList := {0.0, 0.6, 0.4, 0.0 });
}
testcase tc_ExecCtrl_Test_WeightedEntityGroupWith0Weight2() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
f_ExecCtrl_Test_WeightedEntityGroupWith0Weight( pl_EPTF_ExecCtrl_HN29644_eGrpSize := 100,
pl_resultList := {0, 20, 80, 0},
pl_weightList := {0.0, 0.6, 0.4, 0.0 },
pl_warning := true,
pl_warning2 := false);
}
testcase tc_ExecCtrl_Test_WeightedEntityGroupWith0Weight3() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
f_ExecCtrl_Test_WeightedEntityGroupWith0Weight( pl_EPTF_ExecCtrl_HN29644_eGrpSize := 100,
pl_resultList := {20, 20, 0, 0},
pl_weightList := {0.5, 0.6, 0.0, 0.0 },
pl_warning := false,
pl_warning2 := true);
}
testcase tc_ExecCtrl_Test_WeightedEntityGroupWith0Weight101() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
f_ExecCtrl_Test_WeightedEntityGroupWith0Weight( pl_EPTF_ExecCtrl_HN29644_eGrpSize := 40,
pl_resultList := {20, 20, 0, 0},
pl_weightList := {19.0, 20.0, 0.0, 0.0 },
pl_warning := false,
pl_warning2 := true);
}
function f_EPTF_NoAvailableEntity_Warning_Test( in charstring pl_message
) runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT {
if (pl_message == "EPTF_ExecCtrl:Warning: Not enough available entity on the LGen LGen1.LGenDefaultPool.localhost to allocate 60 number of entities according to the given weight: 0.600000. All available entities allocated: 20"){
setverdict(pass);
}
}
function f_EPTF_NoAvailableEntity_Warning_Test2( in charstring pl_message
) runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT {
if (pl_message == "EPTF_ExecCtrl:Warning: Entities cannot be successfully distributed according to the weight ratios. Number of entities remaining : 1"){
setverdict(pass);
}
}
// tests if the entities are distributed according to the parameters
public function f_ExecCtrl_Test_WeightedEntityGroupWith0Weight(in integer pl_EPTF_ExecCtrl_HN29644_eGrpSize := c_EPTF_ExecCtrl_DefaultScenarios_eGrpSize,
in EPTF_IntegerList pl_resultList,
in EPTF_FloatList pl_weightList := {0.0, 0.0, 0.0, 0.0},
in boolean pl_warning := false,
in boolean pl_warning2 := false,
in boolean pl_checkByLGenId := false
) runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
f_EPTF_Logging_init_CT("ExecCtrl_Test");
if( pl_warning2 == true ){
f_EPTF_Logging_registerPreambleFn(refers(f_EPTF_NoAvailableEntity_Warning_Test2));
} else if( pl_warning == true ){
f_EPTF_Logging_registerPreambleFn(refers(f_EPTF_NoAvailableEntity_Warning_Test));
}
var EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList vl_EPTF_ExecCtrl_HN29644_EGrpList :={{
name := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
eType := c_EPTF_ExecCtrl_Test_defaultETypeName,
eCount := pl_EPTF_ExecCtrl_HN29644_eGrpSize
}}
var EPTF_ExecCtrl_EntityGroupDistributionTypeList vl_EPTF_ExecCtrl_HN29644_EntityGroupDistributionTypeList := {
{
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
lgenWeights := {
{
lgenName := "LGen0.LGenDefaultPool.localhost",
weight := pl_weightList[0]
},
{
lgenName := "LGen1.LGenDefaultPool.localhost",
weight := pl_weightList[1]
},
{
lgenName := "LGen2.LGenDefaultPool.localhost",
weight := pl_weightList[2]
},
{
lgenName := "LGen3.LGenDefaultPool.localhost",
weight := pl_weightList[3]
}
}
}
}
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("SetTargetCPSInAutoOff", true, vl_wndLayout);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := vl_EPTF_ExecCtrl_HN29644_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario_HN29644,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp_HN29644
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_LGenWithLimitedEntitiesLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={
{
name := omit,
fn := refers(f_EPTF_ExecCtrl_LGenWithUnLimitedEntitiesBehaviour)
},
{
name := omit,
fn := refers(f_ExecCtrl_Test_createLGenWithLimitedEntities)
}
},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={},
pl_EPTF_ExecCtrl_EntityGroupDistributionTypeList := vl_EPTF_ExecCtrl_HN29644_EntityGroupDistributionTypeList
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_init_CT(f_EPTF_Base_selfName(), 0, pl_dataSource_compRef := self);
timer T_guard, T_alt;
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(inconc,"Timeout during config");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
// check if the allocated entities on the LGens are correct:
var integer vl_eGrpIdx := f_EPTF_ExecCtrl_getEntityGroupIdx(c_EPTF_ExecCtrl_DefaultScenarios_eGrpName);
var EPTF_ExecCtrl_EntityGroupDistributionList vl_lgenList := f_EPTF_ExecCtrl_eGrp_lgenList(vl_eGrpIdx);
for(var integer lgenIdx:=0; lgenIdx<sizeof(vl_lgenList); lgenIdx:=lgenIdx+1) {
var integer vl_lgenIdx := vl_lgenList[lgenIdx].lgenIdx
var charstring vl_lgenName := f_EPTF_ExecCtrl_getLGenName(vl_lgenIdx);
var integer vl_allocatedEntityNum := vl_lgenList[lgenIdx].eCount;
if (pl_checkByLGenId) {
if (pl_resultList[lgenIdx] != vl_allocatedEntityNum) {
setverdict(fail, "Entity number allocated on LGen "&vl_lgenName&" is incorrect. Expecting "&int2str(pl_resultList[lgenIdx])&" but got "&
int2str(vl_allocatedEntityNum));
}
} else {
for(var integer i:=0; i<sizeof(vl_lgenList); i:=i+1) {
if(vl_lgenName == "LGen" & int2str(i) & ".LGenDefaultPool.localhost"){
if (pl_resultList[i] != vl_allocatedEntityNum) {
setverdict(fail, "Entity number allocated on LGen "&vl_lgenName&" is incorrect. Expecting "&int2str(pl_resultList[i])&" but got "&
int2str(vl_allocatedEntityNum));
}
}
}
}
}
if( pl_warning != true ){
setverdict(pass);
} else {
if( none == getverdict){
setverdict(fail);
}
}
f_EPTF_Base_cleanup_CT();
}
}
group EPTF_ExecCtrl_GUIVars_Test {
// this is a manual test
// scenarios are autoStarted after gui is ready
// A button is created after GUI is ready (even if the GUI was not created!!)
// The GUI is not created at start.
// Pressing the button the ExecCtrl GUI will be created.
// Pressing the button again will remove the ExecCtrl GUI
testcase tc_ExecCtrl_Test_GUIVars_Manual() runs on EPTF_ExecCtrl_GUIVars_Test_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("SetTargetCPSInAutoOff", true, vl_wndLayout);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_init_CT(f_EPTF_Base_selfName(), 0, pl_dataSource_compRef := self);
// start the regulators:
var PhaseRegulator_CT vl_regulator1 := PhaseRegulator_CT.create;
vl_regulator1.start(f_EPTF_ExecCtrl_Test_PhaseRegulator_behavior("Regulator 1",self,1.0));
var EPTF_LoadRegulator_CT vl_regulator2 := EPTF_LoadRegulator_CT.create;
vl_regulator2.start(f_ExecCtrl_Regulator_Test_RegulatorBehaviour("Regulator 3",self,1.0));
timer T_guard, T_alt;
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{
// add GUI add/remove button:
//f_ExecCtrl_Test_GUIVars_createAddRemoveButton();//FIXME: uses deprecated creategui function
}
};
f_EPTF_ExecCtrl_startAllScenarios();
f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
} // group EPTF_ExecCtrl_GUIVars_Test
group ExecCtrlDataSourceClientFunctions{
// checks if the iterators, externalData and conditions in execCtrl return correct values
testcase tc_ExecCtrl_DS_CheckIteratorsAndExternalDataAndConditions() runs on ExecCtrlDSClient_Test_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("EXECCTRL_DSClient", true, vl_wndLayout);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPoolWithSpecId_DeclaratorsWithFSMStats,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGenWithSpecIdWithFSMStats)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_loadModulepars := true,
pl_autoStart := true,
pl_dataSource_compRef := self);
timer T_guard, T_alt;
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config:checkReadyToRun");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
// start the regulators:
var PhaseRegulator_CT vl_regulator1 := PhaseRegulator_CT.create;
vl_regulator1.start(f_EPTF_ExecCtrl_Test_PhaseRegulator_behavior("Regulator 1",self,1.0));
var EPTF_LoadRegulator_CT vl_regulator2 := EPTF_LoadRegulator_CT.create;
vl_regulator2.start(f_ExecCtrl_Regulator_Test_RegulatorBehaviour("Regulator 3",self,1.0));
f_EPTF_ExecCtrl_startAllScenarios();
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_iteratorEntityGroups,{"DefaultEGrp", "grp0","grp1","grp2"});
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_iteratorLGens,{"ExecCtrl_DefaultLGen_0","ExecCtrl_DefaultLGen_1"});
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_iteratorPhases,
{"phase1","phase2","phase3"}
);
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_iteratorScenarios,
{"DefaultSc", "DefaultWSc", "DefaultScInScGrp", "DefaultWScInScGrp"},
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}}
);
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_iteratorScenarios,
{"DefaultSc", "DefaultWSc", "DefaultScInScGrp", "DefaultWScInScGrp"},
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}, {c_ExecCtrl_paramNameTrafficType, "originating"}}
);
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_iteratorScenarios,
{},
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}, {c_ExecCtrl_paramNameTrafficType, "terminating"}}
);
// f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_iteratorRegulators,{"Regulator 1","Regulator 2", "Regulator 3"});
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_iteratorTrafficCases,
{"DefaultTC1","DefaultTC2"},
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"} }
);
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_iteratorScenarioGroups,{"DefaultScGroup"});
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_iteratorScenarios,
{ "DefaultEGrp.DefaultScInScGrp", "DefaultEGrp.DefaultWScInScGrp"},
{ {c_ExecCtrl_paramNameScenarioGroup, "DefaultScGroup"}}
);
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_iteratorPhases,
{"phase1","phase2","phase3"},
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"} }
);
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_iteratorLGens,
{"ExecCtrl_DefaultLGen_0","ExecCtrl_DefaultLGen_1"},
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}}
);
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_iteratorEntityGroups,
{"DefaultEGrp"},
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"}}
);
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_iteratorEntityTypesForLGen,
{"ExecCtrTestDefaultETypeName"},
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"}}
);
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_iteratorRegulatedItems,
{ "grp0.scenario_1_declarator2.TC0_declarator2",
"grp1.scenario_0_declarator3",
"DefaultEGrp.DefaultSc.DefaultTC1",
"DefaultEGrp.DefaultSc.DefaultTC2",
"DefaultEGrp.DefaultWSc",
"DefaultEGrp.DefaultScInScGrp.DefaultTC1@phase1",
"DefaultEGrp.DefaultScInScGrp.DefaultTC1@phase2",
"DefaultEGrp.DefaultScInScGrp.DefaultTC1@phase3",
"DefaultEGrp.DefaultScInScGrp.DefaultTC2@phase1",
"DefaultEGrp.DefaultScInScGrp.DefaultTC2@phase2",
"DefaultEGrp.DefaultScInScGrp.DefaultTC2@phase3",
"DefaultEGrp.DefaultWScInScGrp@phase1",
"DefaultEGrp.DefaultWScInScGrp@phase2",
"DefaultEGrp.DefaultWScInScGrp@phase3",
"grp0.scenario_0_declarator2.TC0_declarator2",
"grp0.scenario_1_declarator2.TC1_declarator2",
"grp1.scenario_0.TC0",
"grp1.scenario_0.TC1",
"grp2.SC_0.TC0_declarator2",
"grp2.SC_0.TC1_declarator2",
"grp2.SC_0.TC2_declarator2" });
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_iteratorTcStats,
c_EPTF_ExecCtrl_tcStatNames );
var EPTF_CharstringList vl_FSMStatNames := {
"MaxBusyTime",
"MeanFreeTime",
"AvrgFreeTime",
"Percentile95FreeTime",
"densityFreeTime",
"NofBusy",
"NofStarts"
}
var EPTF_CharstringList vl_FSMStatValues := {
log2str(0.0),
log2str(0.0),
log2str(0.0),
log2str(0.0),
log2str(EPTF_IntegerList:{0,0,0,0,0,0,0,0,0,0}),
"0",
"0"
}
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_iteratorFSMStats,
vl_FSMStatNames ,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultSc"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"}
} );
//dataElements
// determine the first LGen among ExecCtrl_DefaultLGen_0 and ExecCtrl_DefaultLGen_1:
var charstring vl_firstLGen := "ExecCtrl_DefaultLGen_0";
if (f_EPTF_ExecCtrl_getLGenIdx("ExecCtrl_DefaultLGen_1")<f_EPTF_ExecCtrl_getLGenIdx("ExecCtrl_DefaultLGen_0")) {
vl_firstLGen := "ExecCtrl_DefaultLGen_1";
}
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementProgressbar, { }, {}, true, "100.0"); // in case of Done it is 100.0
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementProgressbarText, { }, {}, true, "Done"); // last phase before Done: "Creating Phase Lists variables"
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementGlobalProgressbar, { }, {}, true, "100.0");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementExit, { }, {}, true, "0");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementEndOfConfig, { }, {}, true, "{ color := led_green (3), text := \"EndOfConfig\" }");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementReadyToRun, { }, {}, true, "{ color := led_green (3), text := \"ReadyToRun\" }");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementGUIDone, { }, {}, true, "{ color := led_blue (0), text := \"GUIDone\" }");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementEndOfTest, { }, {}, true, "{ color := led_blue (0), text := \"EndOfTest\" }");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementTimeElapsed, { }, {}, true, "Time elapsed since Test was started: 00:00:00");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementStart, { }, {}, true, "0");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementStop, { }, {}, true, "0");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementTerminate, { }, {}, true, "0");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementSnapshot, { }, {}, true, "0");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementEGrpType, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}}, true, "ExecCtrTestDefaultETypeName");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementEGrpSize, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}}, true, "100");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementNofMaxAvailEntitiesForLGen, { }, {{c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"}, {c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} }, true, "-1");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementNofCurrentAvailEntitiesForLGen, { }, {{c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"}, {c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} }, true, "-1");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementEGrpSizeForLGen, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"}}, true, "50");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementEGrpOffsetForLGen, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameLGen, vl_firstLGen}}, true, "0");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScStatusForLGen, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},{c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"}}, true, "{ color := led_blue (0), text := \"Idle\" }");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScIsWeighted, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}}, true, "Decl");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScStatus, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}}, true, "{ color := led_blue (0), text := \"Idle\" }");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScStart, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}}, true, "false");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScStop, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}}, true, "false");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScCPS, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultWSc"}}, true, "10.000000");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementTcStart, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"}}, true, "false");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementTcStop, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"}}, true, "false");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementTcStartDelay, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultSc"},{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"}}, true, "0.000000");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementTcTargetCPSOrWeight, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultSc"},{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"}}, true, "10.000000");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementTcTimeProfile, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultSc"},{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"}}, true, "");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementTcRegulator, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultSc"},{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"}}, true, "");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementRegulatedItemType, { }, {{c_ExecCtrl_paramNameRegulatedItemId, "grp0.scenario_1_declarator2.TC0_declarator2"}}, true, "TrafficCase CPS");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementRegulatedItemName, { }, {{c_ExecCtrl_paramNameRegulatedItemId, "grp0.scenario_1_declarator2.TC0_declarator2"}}, true, "grp0.scenario_1_declarator2.TC0_declarator2");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementRegulatorName, { }, {{c_ExecCtrl_paramNameRegulatedItemId, "grp0.scenario_1_declarator2.TC0_declarator2"}}, true, "Regulator 1");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementRegulatedItemWeight, { }, {{c_ExecCtrl_paramNameRegulatedItemId, "grp0.scenario_1_declarator2.TC0_declarator2"}}, true, "0.500000");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementRegulatedItemEnabled, { }, {{c_ExecCtrl_paramNameRegulatedItemId, "grp0.scenario_1_declarator2.TC0_declarator2"}}, true, "true");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementRegulatorTotalValue, { }, {{c_ExecCtrl_paramNameRegulatorName, "Regulator 2"}}, true, "0.000000");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementRegulatorTargetLoad, { }, {{c_ExecCtrl_paramNameRegulatorName, "Regulator 2"}}, true, "0.000000");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementRegulatorCurrentLoad, { }, {{c_ExecCtrl_paramNameRegulatorName, "Regulator 2"}}, true, "0.000000");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementRegulatorStatus, { }, {{c_ExecCtrl_paramNameRegulatorName, "Regulator 2"}}, true, "{ color := led_red (4), text := \"Disconnected\" }");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementNofDeployedLGens, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}}, true, "2");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementNofDeployedLGens, { }, {{c_ExecCtrl_paramNameScenarioInstance, "DefaultEGrp.DefaultWSc"}}, true, "2");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementNofActiveEntities, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}}, true, "100");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScTargetCPS, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultWSc"}}, true, "10.000000");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScRegulatorName, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultWSc"}}, true, "");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScGrpCurrentPhase, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}}, true, "phase1");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScGrpMode, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}}, true, "AUTOMATIC");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScGrpStatus, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}}, true, "{ color := led_blue (0), text := \"phase1 - IDLE\" }");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScGrpStart, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}}, true, "false");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScGrpTerminate, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}}, true, "false");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScGrpReset, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}}, true, "false");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScGrpScStatus, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultWScInScGrp"}}, true, "{ color := led_blue (0), text := \"phase1 - IDLE\" }");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScStartButton, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}}, true, "0");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScStopButton, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}}, true, "0");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScReset, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}}, true, "0");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementTcGroupFinishStatus, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"}}, true, "{ color := led_blue (0), text := \"None fired\" }");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementTcStatus, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"}}, true, "{ color := led_blue (0), text := \"Idle\" }");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementTcGrpFinishStatus, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},{c_ExecCtrl_paramNameCondition, "Starts"}}, true, "{ color := led_blue (0), text := \"200\" }");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementTcExecTime, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"}}, true, "0.000000");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementTcSingleShotEntityIdx, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"}}, true, "-1");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementTcSingleShotEnableLog, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"}}, true, "false");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementTcSingleShotStart, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"}}, true, "0");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScGrpEnablePhase, { }, {{c_ExecCtrl_paramNameScenarioGroup,"DefaultScGroup"},{c_ExecCtrl_paramNamePhase ,"phase2"}}, true, "true");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScGrpScEnablePhase, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},{c_ExecCtrl_paramNamePhase ,"phase2"}}, true, "true");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScGrpScEnablePhase, { }, {{c_ExecCtrl_paramNameScenarioInstance, "DefaultEGrp.DefaultScInScGrp"},{c_ExecCtrl_paramNamePhase ,"phase2"}}, true, "true");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementEGrpOffset, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}}, true, "0");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementEGrpLGenPool, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}}, true, "LGenDefaultPool");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScInstanceName, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}}, true, "DefaultEGrp.DefaultScInScGrp");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScPhaseListName, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}}, true, "DefaultPhases");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScScGrpName, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}}, true, "DefaultScGroup");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementTcStat, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},{c_ExecCtrl_paramNameStatistic, "CurrentCPS"}}, true, "0.000000");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementCurrentCPS, { }, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultWSc"}}, true, "0.000000");
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_dataElementScGroupOfSc, { }, {{c_ExecCtrl_paramNameEntityGroup,
"DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}}, true, "DefaultScGroup");
// get the value of each FSMstat:
for(var integer i:=0; i<sizeof(vl_FSMStatNames); i:=i+1) {
f_EPTF_ExecCtrl_Test_requestDataAndCheck(
c_ExecCtrl_dataElementFSMStat,
{ vl_FSMStatValues[i] },
{
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultSc"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameStatistic, vl_FSMStatNames[i]}
},
true,
vl_FSMStatValues[i]
);
}
// check conditions
f_EPTF_ExecCtrl_Test_requestConditionAndCheck( c_ExecCtrl_conditionIsWeightedSc, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultSc"}}, false);
f_EPTF_ExecCtrl_Test_requestConditionAndCheck( c_ExecCtrl_conditionIsWeightedSc, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultWSc"}}, true);
f_EPTF_ExecCtrl_Test_requestConditionAndCheck( c_ExecCtrl_conditionIsWeightedSc, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}}, false);
f_EPTF_ExecCtrl_Test_requestConditionAndCheck( c_ExecCtrl_conditionIsWeightedSc, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultWScInScGrp"}}, true);
f_EPTF_ExecCtrl_Test_requestConditionAndCheck( c_ExecCtrl_conditionIsInScGroup, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultSc"}}, false);
f_EPTF_ExecCtrl_Test_requestConditionAndCheck( c_ExecCtrl_conditionIsInScGroup, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultWSc"}}, false);
f_EPTF_ExecCtrl_Test_requestConditionAndCheck( c_ExecCtrl_conditionIsInScGroup, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}}, true);
f_EPTF_ExecCtrl_Test_requestConditionAndCheck( c_ExecCtrl_conditionIsInScGroup, {{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},{c_ExecCtrl_paramNameScenario, "DefaultWScInScGrp"}}, true);
timer T_g2;
T_g2.start( 2.0 );
T_g2.timeout;
f_EPTF_Base_cleanup_CT();
setverdict(pass);
}
function f_EPTF_ExecCtrl_Test_requestDataAndCheck(
in charstring pl_elementName,
in EPTF_CharstringList pl_result,
in EPTF_DataSource_Params pl_params := {},
in boolean pl_dataElement := false,
in charstring pl_dataElementResult := ""
) runs on ExecCtrlDSClient_Test_CT {
var charstring vl_varName;
var charstring vl_dataProviderName := c_ExecCtrl_DataSource_sourceId;
var integer vl_retCode := 0;
vl_retCode :=f_EPTF_DataSource_getData(
pl_dataVarName := vl_varName,
pl_source := vl_dataProviderName,
pl_ptcName := "EXECCTRL_DSClient",
pl_element := pl_elementName,
pl_params := pl_params
);
if (pl_dataElement == false){
if (0!=vl_retCode) {
setverdict(fail,"Cannot get iterator for dataSource := "&vl_dataProviderName&", ptcName :=", f_EPTF_Base_selfName() & ", element := " & pl_elementName);
return;
};
var integer vl_varIdx := f_EPTF_Var_getId(vl_varName);
var EPTF_CharstringList vl_iList := f_EPTF_Var_getCharstringlistValue(vl_varIdx);
if (sizeof(vl_iList) != sizeof(pl_result)){
action("f_EPTF_ExecCtrl_Test_requestDataAndCheck - ",pl_elementName, ": ", pl_result," != ",vl_iList);
setverdict(fail, pl_elementName & ": Result size is: " & log2str(pl_result) & " instead of "& log2str(vl_iList));
return;
}
var integer vl_bool := 0;
for(var integer i := 0; i < sizeof(vl_iList); i := i + 1){
vl_bool := 0;
for(var integer j := 0; j < sizeof(pl_result); j := j + 1){
if (vl_iList[i] == pl_result[j]){
vl_bool := vl_bool + 1;
continue;
}
}
if(vl_bool != 1){
for(var integer k := 0; k < sizeof(vl_iList); k := k + 1){
if(vl_iList[i] == vl_iList[k]){ vl_bool := vl_bool - 1;}
}
if(vl_bool != 0){
action("f_EPTF_ExecCtrl_Test_requestDataAndCheck - "& pl_elementName & ": Result is not equal: "& log2str(vl_iList) & " instead of "& log2str(pl_result));
setverdict(fail,pl_elementName & ": Result is not equal: " & log2str(vl_iList) & " instead of "& log2str(pl_result));
return;
}
}
}
} else {
if (0!=vl_retCode) {
setverdict(fail,"Cannot get dataElement for dataSource := "&vl_dataProviderName&", ptcName :=", f_EPTF_Base_selfName() & ", element := " & pl_elementName);
return;
};
var integer vl_varIdx := f_EPTF_Var_getId(vl_varName);
var EPTF_Var_DirectContent vl_content;
f_EPTF_Var_getContent(vl_varIdx, vl_content)
if(ischosen(vl_content.floatVal)){
if(pl_dataElementResult != log2str(vl_content.floatVal)){
action("f_EPTF_ExecCtrl_Test_requestDataAndCheck - "& pl_elementName & ": Result is [floatVal]l: "& log2str(vl_content.floatVal) & " instead of "& pl_dataElementResult);
setverdict(fail,pl_elementName & ": Result is [floatVal]: " & log2str(vl_content.floatVal) & " instead of "& pl_dataElementResult);
return;
}
}
if(ischosen(vl_content.charstringVal)){
if(pl_dataElementResult != vl_content.charstringVal){
action("f_EPTF_ExecCtrl_Test_requestDataAndCheck - "& pl_elementName & ": Result is [charstringVal]: "& vl_content.charstringVal & " instead of "& pl_dataElementResult);
setverdict(fail,pl_elementName & ": Result is [charstringVal]: " & vl_content.charstringVal & " instead of "& pl_dataElementResult);
return;
}
}
if(ischosen(vl_content.intVal)){
if(pl_dataElementResult != log2str(vl_content.intVal)){
action("f_EPTF_ExecCtrl_Test_requestDataAndCheck - "& pl_elementName & ": Result is [intVal]: "& log2str(vl_content.intVal) & " instead of "& pl_dataElementResult);
setverdict(fail,pl_elementName & ": Result is [intVal]: " & log2str(vl_content.intVal) & " instead of "& pl_dataElementResult);
return;
}
}
if(ischosen(vl_content.boolVal)){
if(pl_dataElementResult != log2str(vl_content.boolVal)){
action("f_EPTF_ExecCtrl_Test_requestDataAndCheck - "& pl_elementName & ": Result is [intVal]: "& log2str(vl_content.boolVal) & " instead of "& pl_dataElementResult);
setverdict(fail,pl_elementName & ": Result is [boolVal]: " & log2str(vl_content.boolVal) & " instead of "& pl_dataElementResult);
return;
}
}
if(ischosen(vl_content.statusLEDVal)){
if(pl_dataElementResult != log2str(vl_content.statusLEDVal)){
action("f_EPTF_ExecCtrl_Test_requestDataAndCheck - "& pl_elementName & ": Result is [statusLEDVal]: "& log2str(vl_content.statusLEDVal) & " instead of "& pl_dataElementResult);
setverdict(fail,pl_elementName & ": Result is [statusLEDVal]: " & log2str(vl_content.statusLEDVal) & " instead of "& pl_dataElementResult);
return;
}
}
}
}
function f_EPTF_ExecCtrl_Test_requestConditionAndCheck( in charstring pl_method,
in EPTF_DataSource_Params pl_params := {},
in boolean pl_expectedResult
) runs on ExecCtrlDSClient_Test_CT {
var boolean vl_conditionResult;
var charstring vl_dataProviderName := c_ExecCtrl_DataSource_sourceId;
var integer vl_retCode := 0;
vl_retCode := f_EPTF_DataSource_getCondition(
pl_conditionValue := vl_conditionResult,
pl_source := vl_dataProviderName,
pl_ptcName := "EXECCTRL_DSClient",
pl_method := pl_method,
pl_params := pl_params
);
if (0!=vl_retCode) {
setverdict(fail,"Cannot get condition for dataSource := "&vl_dataProviderName&", ptcName :=", f_EPTF_Base_selfName() & ", method := " & pl_method);
return;
};
if(vl_conditionResult != pl_expectedResult){
setverdict(fail,pl_method & ": Result is: " & log2str(vl_conditionResult) & " instead of "& log2str(pl_expectedResult));
return;
}
}
// Test FSM/TC Stat Reset
testcase tc_ExecCtrl_Test_FSM_TC_StatReset() runs on ExecCtrlDSClient_Test_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("EXECCTRL_DSClient", true, vl_wndLayout);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPoolWithSpecId_DeclaratorsWithFSMStatsLive,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGenWithSpecIdWithFSMStatsLive)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_ExecCtrl_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_loadModulepars := true,
pl_autoStart := true,
pl_dataSource_compRef := self);
f_EPTF_ExecCtrl_CLI_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_CLI_compRef := self,
pl_loadModulepars := true,
pl_autoStart := true,
pl_dataSource_compRef := self
);
timer T_guard, T_alt;
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config:checkReadyToRun");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun() or v_ready] T_alt.timeout{}
};
// start the regulators:
var PhaseRegulator_CT vl_regulator1 := PhaseRegulator_CT.create;
vl_regulator1.start(f_EPTF_ExecCtrl_Test_PhaseRegulator_behavior("Regulator 1",self,1.0));
var EPTF_LoadRegulator_CT vl_regulator2 := EPTF_LoadRegulator_CT.create;
vl_regulator2.start(f_ExecCtrl_Regulator_Test_RegulatorBehaviour("Regulator 3",self,1.0));
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,""/*c_ExecCtrl_DS_customGUIHBox*/);
f_EPTF_ExecCtrl_startAllScenarios();
timer t_run:=5.0;
t_run.start;
// check FSM Stats:
var EPTF_CharstringList vl_FSMStatNames := {
"MaxBusyTime",
"MeanFreeTime",
"AvrgFreeTime",
"Percentile95FreeTime",
"densityFreeTime",
"NofBusy",
"NofStarts",
"MaxStarts",
"MeanStarts",
"MeanStarts_Mean",
"AvrgStarts",
"Percentile95Starts",
"densityStarts"
}
var EPTF_CharstringList vl_FSMStatValues := {
log2str(0.0),
log2str(0.0),
log2str(0.0),
log2str(0.0),
log2str(EPTF_IntegerList:{0,0,0,0,0,0,0,0,0,0}),
"0",
"0",
log2str(0.0),
log2str(0.0),
log2str(0.0),
log2str(0.0),
log2str(1.0),
log2str(EPTF_IntegerList:{0,0,0,0,0,0,0,0,0,0})
}
f_EPTF_ExecCtrl_Test_requestDataAndCheck( c_ExecCtrl_iteratorFSMStats,
vl_FSMStatNames ,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultSc"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC2"}
} );
//dataElements
t_run.timeout;
// stop traffic
f_EPTF_ExecCtrl_stopAllScenarios();
timer t_waitForSync := 5.0;
t_waitForSync.start;
t_waitForSync.timeout;
// reset FSM Stats:
var integer vl_retCode := 0;
var EPTF_Var_DirectContent vl_newValue := {intVal := 1};
vl_retCode :=f_EPTF_DataSource_setDataValue(
pl_dataValue := vl_newValue,
pl_source := "ExecCtrl",
pl_ptcName := "",
pl_element := "TcResetFSMStats",
pl_params := {
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultSc"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC2"}
}
);
// reset TC Stats:
vl_newValue := {intVal := 1};
vl_retCode :=f_EPTF_DataSource_setDataValue(
pl_dataValue := vl_newValue,
pl_source := "ExecCtrl",
pl_ptcName := "",
pl_element := "TcResetStats",
pl_params := {
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultSc"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC2"}
}
);
t_waitForSync.start(20.0);
t_waitForSync.timeout;
// check FSMStats:
// get the value of each FSMstat:
for(var integer i:=0; i<sizeof(vl_FSMStatNames); i:=i+1) {
f_EPTF_ExecCtrl_Test_requestDataAndCheck(
c_ExecCtrl_dataElementFSMStat,
{ vl_FSMStatValues[i] },
{
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultSc"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC2"},
{c_ExecCtrl_paramNameStatistic, vl_FSMStatNames[i]}
},
true,
vl_FSMStatValues[i]
);
}
// check TCStats:
var EPTF_CharstringList vl_TCStatNames := {
c_EPTF_ExecCtrl_tcStatNames[c_EPTF_ExecCtrl_tcStatId_Starts],
c_EPTF_ExecCtrl_tcStatNames[c_EPTF_ExecCtrl_tcStatId_Success],
c_EPTF_ExecCtrl_tcStatNames[c_EPTF_ExecCtrl_tcStatId_Fail],
c_EPTF_ExecCtrl_tcStatNames[c_EPTF_ExecCtrl_tcStatId_Timeout],
c_EPTF_ExecCtrl_tcStatNames[c_EPTF_ExecCtrl_tcStatId_Error]
}
var EPTF_CharstringList vl_TCStatValues := {
"0",
"0",
"0",
"0",
"0"
}
// get the value of each TCstat:
for(var integer i:=0; i<sizeof(vl_TCStatNames); i:=i+1) {
f_EPTF_ExecCtrl_Test_requestDataAndCheck(
c_ExecCtrl_dataElementTcStat,
{},
{
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultSc"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC2"},
{c_ExecCtrl_paramNameStatistic, vl_TCStatNames[i]}
},
true,
vl_TCStatValues[i]
);
}
timer T_g2;
T_g2.start( 2.0 );
T_g2.timeout;
f_EPTF_Base_cleanup_CT();
setverdict(pass);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongEntityGroup
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorEntityGroups
// Params: wrong param name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongEntityGroup() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorEntityGroups,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \\nReceived: { """&c_ExecCtrl_paramNameEntityGroup&""" }\\nNeeded : { """&c_ExecCtrl_paramNameLGen&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongScenario1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorLGens
// Params: too many params
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongLGens() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorLGens,
{{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \\nReceived: { """&c_ExecCtrl_paramNameScenario&""" }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongPhases
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorPhases
// Params: too few parameters, one instead of two
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongPhases() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorPhases,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \\nReceived: { """&c_ExecCtrl_paramNameEntityGroup&""" }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameScenario&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongScenario1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorScenarios
// Params: wrong egrp
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongScenario1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorScenarios,
{{c_ExecCtrl_paramNameEntityGroup, "WrongEGrp"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group ""WrongEGrp"" does not exits. Available entity groups:{ * }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongScenario2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorScenarios
// Params: wrong paramtype
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongScenario2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorScenarios,
{{"bubu", "WrongEGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \\nReceived: { ""bubu"" }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongScenario3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorScenarios
// Params: to many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongScenario3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorScenarios,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{"WrongName", "WrongValue"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \\nReceived: { """&c_ExecCtrl_paramNameEntityGroup&""", ""WrongName"" }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongScenario4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorScenarios
// Params: to few parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongScenario4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorScenarios,
{},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \\nReceived: { }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongScenario4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorScenarios
// Params: wrong traffic type parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongScenario5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorScenarios,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameTrafficType, "WrongTrafficType"}},
"*It can be only originating or terminating*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongTrafficCase1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorTrafficCases
// Params: wrong egrp
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongTrafficCase1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorTrafficCases,
{ {c_ExecCtrl_paramNameEntityGroup, "WrongEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group ""WrongEGrp"" does not exits. Available entity groups:{ * }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongTrafficCase2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorTrafficCases
// Params: wrong scenario
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongTrafficCase2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorTrafficCases,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "WrongScInScGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario ""WrongScInScGrp"" does not exits in entity group ""DefaultEGrp"". Available scenarios:{ * }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongTrafficCase3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorTrafficCases
// Params: wrong first paramname
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongTrafficCase3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorTrafficCases,
{ {"wrongparam", "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "WrongScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \\nReceived: { """&c_ExecCtrl_paramNameScenario&""", ""wrongparam"" }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameScenario&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongTrafficCase4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorTrafficCases
// Params: wrong second paramname
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongTrafficCase4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorTrafficCases,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{"wrongparam", "WrongScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \\nReceived: { """&c_ExecCtrl_paramNameEntityGroup&""", ""wrongparam"" }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameScenario&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongTrafficCase5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorTrafficCases
// Params: wrong paramtype
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongTrafficCase5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorTrafficCases,
{ {c_ExecCtrl_paramNameEntityGroup, "EGrp1"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \\nReceived: { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameScenario&""" }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameScenario&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongTrafficCase6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorTrafficCases
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongTrafficCase6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorTrafficCases,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{"WrongName", "WrongValue"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \\nReceived: { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameScenario&""", ""WrongName"" }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameScenario&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongTrafficCase7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorTrafficCases
// Params: too few parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongTrafficCase7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorTrafficCases,
{},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \\nReceived: { }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameScenario&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongScenarioGroups
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorScenarioGroups
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongScenarioGroups() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorScenarioGroups,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*EPTF_ExecCtrl:Warning: f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct:*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongScenarios1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorScenarios
// Params: wrong scenariogroup parameter, does not exists
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongScenarios1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorScenarios,
{ {c_ExecCtrl_paramNameScenarioGroup, "WrongDefaultScGroup"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario group ""WrongDefaultScGroup"" does not exits. Available scenario groups:{ * }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongScenarios2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorScenarios
// Params: too many parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongScenarios2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorScenarios,
{ {c_ExecCtrl_paramNameScenarioGroup, "WrongDefaultScGroup"},
{"bubu", "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \\nReceived: { """&c_ExecCtrl_paramNameScenarioGroup&""", """&"bubu"&""" }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongScenarios3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorScenarios
// Params: too many parameter, but separately two valid ones.
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongScenarios3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorScenarios,
{ {c_ExecCtrl_paramNameScenarioGroup, "DefaultScGroup"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \\nReceived: { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameScenarioGroup&""" }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongPhases2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorPhases
// Params: wrong parameter type.
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongPhases2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorPhases,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenarioGroup, "DefaultScGroup"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \\nReceived: { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameScenarioGroup&""" }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameScenario&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongPhases3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorPhases
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongPhases3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorPhases,
{ {c_ExecCtrl_paramNameScenario, "DefaultScinScGroup"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{"bubu", "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \\nReceived: { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameScenario&""", """&"bubu"&""" }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameScenario&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongPhases4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorPhases
// Params: wrong entity group parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongPhases4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorPhases,
{ {c_ExecCtrl_paramNameScenario, "DefaultScinScGroup"},
{c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongPhases5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorPhases
// Params: wrong scenario parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongPhases5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorPhases,
{ {c_ExecCtrl_paramNameScenario, "WrongDefaultScinScGroup"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScinScGroup\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongPhases6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorPhases
// Params: scenario is not in scenario group
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongPhases6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorPhases,
{ {c_ExecCtrl_paramNameScenario, "DefaultSc"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter is wrong. Scenario is not in scenarioGroup: DefaultSc*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongLGens2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorLGens
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongLGens2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorLGens,
{ {c_ExecCtrl_paramNameScenarioGroup, "DefaultScGroup"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \\nReceived: { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameScenarioGroup&""" }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongLGens3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorLGens
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongLGens3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorLGens,
{ {c_ExecCtrl_paramNameScenarioGroup, "DefaultScGroup"},
{"bubu", "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \\nReceived: { """&c_ExecCtrl_paramNameScenarioGroup&""", """&"bubu"&""" }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongEntityGroup2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorEntityGroups
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongEntityGroup2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorEntityGroups,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"},
{"bubu", "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \\nReceived: { """&c_ExecCtrl_paramNameLGen&""", ""bubu"" }\\nNeeded : { """&c_ExecCtrl_paramNameLGen&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongEntityGroup3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorEntityGroups
// Params: wrong LGen parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongEntityGroup3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorEntityGroups,
{ {c_ExecCtrl_paramNameLGen, "wrongParameter"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: LGen with name ""wrongParameter"" does not exits. Available LGens:{ * }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongEntityTypes1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorEntityTypes
// Params: wrong parameter given
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongEntityTypes1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorEntityTypesForLGen,
{ {c_ExecCtrl_paramNameLGen, "wrongParameter"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: LGen with name ""wrongParameter"" does not exits. Available LGens:{ * }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongEntityTypes2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorEntityTypes
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongEntityTypes2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorEntityTypesForLGen,
{ {c_ExecCtrl_paramNameLGen, "wrongParameter"},
{"bubu", "wrongparam"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \\nReceived: { """&c_ExecCtrl_paramNameLGen&""", ""bubu"" }\\nNeeded : { """&c_ExecCtrl_paramNameLGen&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongRegulatedItems
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorRegulatedItems
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongRegulatedItems() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorRegulatedItems,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"} },
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter not needed.*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_WrongEntityTypes2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: iteratorTcStats
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_WrongTcStats() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_iteratorTcStats,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"} },
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter not needed.*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementProgressbar
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementProgressbar
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementProgressbar() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementProgressbar,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"} },
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter not needed.*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementProgressbarText
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementProgressbarText
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementProgressbarText() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementProgressbarText,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"} },
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter not needed.*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementGlobalProgressbar
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementGlobalProgressbar
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementGlobalProgressbar() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementGlobalProgressbar,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"} },
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter not needed.*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementExit
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementExit
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementExit() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementExit,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"} },
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter not needed.*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEndOfConfig
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEndOfConfig
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEndOfConfig() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEndOfConfig,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"} },
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter not needed.*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementReadyToRun
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementReadyToRun
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementReadyToRun() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementReadyToRun,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"} },
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter not needed.*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementGUIDone
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementGUIDone
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementGUIDone() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementGUIDone,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"} },
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter not needed.*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEndOfTest
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEndOfTest
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEndOfTest() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEndOfTest,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"} },
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter not needed.*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTimeElapsed
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTimeElapsed
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTimeElapsed() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTimeElapsed,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"} },
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter not needed.*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementStart
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementStart
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementStart() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementStart,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"} },
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter not needed.*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementStop
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementStop
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementStop() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementStop,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"} },
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter not needed.*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTerminate
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTerminate
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTerminate() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTerminate,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"} },
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter not needed.*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementSnapshot
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementSnapshot
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementSnapshot() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementSnapshot,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"} },
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter not needed.*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpType1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpType
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpType1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpType,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \\nReceived: { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameLGen&""" }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpType2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpType
// Params: too few parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpType2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpType,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \\nReceived: { }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpType3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpType
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpType3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpType,
{ {c_ExecCtrl_paramNameEntityGroup, "Wrong DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group ""Wrong DefaultEGrp"" does not exits. Available entity groups:{ * }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSize1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpSize
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSize1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpSize,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \\nReceived: { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameLGen&""" }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSize2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpSize
// Params: too few parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSize2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpSize,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \\nReceived: { }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSize3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpSize
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSize3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpSize,
{ {c_ExecCtrl_paramNameEntityGroup, "Wrong DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group ""Wrong DefaultEGrp"" does not exits. Available entity groups:{ * }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofMaxAvailEntitiesForLGen1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofMaxAvailEntitiesForLGen
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofMaxAvailEntitiesForLGen1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofMaxAvailEntitiesForLGen,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \\nReceived: { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameEntityType&""", """&c_ExecCtrl_paramNameLGen&""" }\\nNeeded : { """&c_ExecCtrl_paramNameLGen&""", """&c_ExecCtrl_paramNameEntityType&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofMaxAvailEntitiesForLGen2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofMaxAvailEntitiesForLGen
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofMaxAvailEntitiesForLGen2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofMaxAvailEntitiesForLGen,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName},
{c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \\nReceived: { """&c_ExecCtrl_paramNameEntityType&""", """&c_ExecCtrl_paramNameLGen&""", """&c_ExecCtrl_paramNameLGen&""" }\\nNeeded : { """&c_ExecCtrl_paramNameLGen&""", """&c_ExecCtrl_paramNameEntityType&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofMaxAvailEntitiesForLGen3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofMaxAvailEntitiesForLGen
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofMaxAvailEntitiesForLGen3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofMaxAvailEntitiesForLGen,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \\nReceived: { }\\nNeeded : { """&c_ExecCtrl_paramNameLGen&""", """&c_ExecCtrl_paramNameEntityType&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofMaxAvailEntitiesForLGen4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofMaxAvailEntitiesForLGen
// Params: too few parameters, only 1
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofMaxAvailEntitiesForLGen4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofMaxAvailEntitiesForLGen,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \\nReceived: { """&c_ExecCtrl_paramNameLGen&""" }\\nNeeded : { """&c_ExecCtrl_paramNameLGen&""", """&c_ExecCtrl_paramNameEntityType&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofMaxAvailEntitiesForLGen5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofMaxAvailEntitiesForLGen
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofMaxAvailEntitiesForLGen5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofMaxAvailEntitiesForLGen,
{ {c_ExecCtrl_paramNameLGen, "WrongExecCtrl_DefaultLGen_3"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: LGen with name ""WrongExecCtrl_DefaultLGen_3"" does not exits. Available LGens:{ * }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofMaxAvailEntitiesForLGen6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofMaxAvailEntitiesForLGen
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofMaxAvailEntitiesForLGen6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofMaxAvailEntitiesForLGen,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"},
{c_ExecCtrl_paramNameEntityType, "WrongEType"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity type name ""WrongEType"" does not exits on LGen ""ExecCtrl_DefaultLGen_0"". Available entity types:{ * }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofCurrentAvailEntitiesForLGen1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofCurrentAvailEntitiesForLGen
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofCurrentAvailEntitiesForLGen1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofCurrentAvailEntitiesForLGen,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \\nReceived: { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameEntityType&""", """&c_ExecCtrl_paramNameLGen&""" }\\nNeeded : { """&c_ExecCtrl_paramNameLGen&""", """&c_ExecCtrl_paramNameEntityType&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofCurrentAvailEntitiesForLGen2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofCurrentAvailEntitiesForLGen
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofCurrentAvailEntitiesForLGen2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofCurrentAvailEntitiesForLGen,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName},
{c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \\nReceived: { """&c_ExecCtrl_paramNameEntityType&""", """&c_ExecCtrl_paramNameLGen&""", """&c_ExecCtrl_paramNameLGen&""" }\\nNeeded : { """&c_ExecCtrl_paramNameLGen&""", """&c_ExecCtrl_paramNameEntityType&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofCurrentAvailEntitiesForLGen3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofCurrentAvailEntitiesForLGen
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofCurrentAvailEntitiesForLGen3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofCurrentAvailEntitiesForLGen,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \\nReceived: { }\\nNeeded : { """&c_ExecCtrl_paramNameLGen&""", """&c_ExecCtrl_paramNameEntityType&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofCurrentAvailEntitiesForLGen4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofCurrentAvailEntitiesForLGen
// Params: too few parameters, only 1
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofCurrentAvailEntitiesForLGen4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofCurrentAvailEntitiesForLGen,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \\nReceived: { """&c_ExecCtrl_paramNameLGen&""" }\\nNeeded : { """&c_ExecCtrl_paramNameLGen&""", """&c_ExecCtrl_paramNameEntityType&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofCurrentAvailEntitiesForLGen5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofCurrentAvailEntitiesForLGen
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofCurrentAvailEntitiesForLGen5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofCurrentAvailEntitiesForLGen,
{ {c_ExecCtrl_paramNameLGen, "WrongExecCtrl_DefaultLGen_3"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: LGen with name ""WrongExecCtrl_DefaultLGen_3"" does not exits. Available LGens:{ * }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofCurrentAvailEntitiesForLGen6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofCurrentAvailEntitiesForLGen
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofCurrentAvailEntitiesForLGen6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofCurrentAvailEntitiesForLGen,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"},
{c_ExecCtrl_paramNameEntityType, "WrongEType"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity type name ""WrongEType"" does not exits on LGen ""ExecCtrl_DefaultLGen_0"". Available entity types:{ * }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSizeForLGen1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpSizeForLGen
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSizeForLGen1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpSizeForLGen,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \\nReceived: { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameEntityType&""", """&c_ExecCtrl_paramNameLGen&""" }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameLGen&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSizeForLGen2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpSizeForLGen
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSizeForLGen2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpSizeForLGen,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \\nReceived: { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameLGen&""", """&c_ExecCtrl_paramNameLGen&""" }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameLGen&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSizeForLGen3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpSizeForLGen
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSizeForLGen3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpSizeForLGen,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \\nReceived: { }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameLGen&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSizeForLGen4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpSizeForLGen
// Params: too few parameters, only 1
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSizeForLGen4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpSizeForLGen,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \\nReceived: { """&c_ExecCtrl_paramNameLGen&""" }\\nNeeded : { """&c_ExecCtrl_paramNameEntityGroup&""", """&c_ExecCtrl_paramNameLGen&""" }*"
);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSizeForLGen5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpSizeForLGen
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSizeForLGen5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpSizeForLGen,
{ {c_ExecCtrl_paramNameLGen, "WrongExecCtrl_DefaultLGen_3"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: LGen with name \"WrongExecCtrl_DefaultLGen_3\" does not exits. Available LGens:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSizeForLGen6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpSizeForLGen
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSizeForLGen6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpSizeForLGen,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"},
{c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffsetForLGen1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpOffsetForLGen
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffsetForLGen1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpOffsetForLGen,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameLGen & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameLGen & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffsetForLGen2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpOffsetForLGen
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffsetForLGen2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpOffsetForLGen,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameLGen & "\", \"" & c_ExecCtrl_paramNameLGen & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameLGen & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffsetForLGen3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpOffsetForLGen
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffsetForLGen3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpOffsetForLGen,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameLGen & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffsetForLGen4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpOffsetForLGen
// Params: too few parameters, only 1
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffsetForLGen4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpOffsetForLGen,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameLGen & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameLGen & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffsetForLGen5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpOffsetForLGen
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffsetForLGen5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpOffsetForLGen,
{ {c_ExecCtrl_paramNameLGen, "WrongExecCtrl_DefaultLGen_3"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: LGen with name \"WrongExecCtrl_DefaultLGen_3\" does not exits. Available LGens:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffsetForLGen6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpOffsetForLGen
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffsetForLGen6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpOffsetForLGen,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"},
{c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStatusForLGen
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStatusForLGen,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameLGen & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameLGen & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStatusForLGen
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStatusForLGen,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameLGen & "\", \"" & c_ExecCtrl_paramNameLGen & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameLGen & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStatusForLGen
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStatusForLGen,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameLGen & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStatusForLGen
// Params: too few parameters, only 1
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStatusForLGen,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameLGen & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameLGen & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStatusForLGen
// Params: too few parameters, only 2
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStatusForLGen,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameLGen & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameLGen & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStatusForLGen
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStatusForLGen,
{ {c_ExecCtrl_paramNameLGen, "WrongExecCtrl_DefaultLGen_3"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: LGen with name \"WrongExecCtrl_DefaultLGen_3\" does not exits. Available LGens:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStatusForLGen
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStatusForLGen,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStatusForLGen
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStatusForLGen,
{ {c_ExecCtrl_paramNameLGen, "ExecCtrl_DefaultLGen_0"},
{c_ExecCtrl_paramNameScenario, "WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScIsWeighted1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScIsWeighted
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScIsWeighted1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScIsWeighted,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScIsWeighted2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScIsWeighted
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScIsWeighted2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScIsWeighted,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "ExecCtrl_DefaultLGen_1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScIsWeighted3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScIsWeighted
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScIsWeighted3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScIsWeighted,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScIsWeighted4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScIsWeighted
// Params: too few parameters, only 1
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScIsWeighted4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScIsWeighted,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScIsWeighted5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScIsWeighted
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScIsWeighted5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScIsWeighted,
{ {c_ExecCtrl_paramNameScenario, "WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScIsWeighted6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScIsWeighted
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScIsWeighted6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScIsWeighted,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatus1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStatus
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatus1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStatus,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatus2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStatus
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatus2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStatus,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "ExecCtrl_DefaultLGen_1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatus3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStatus
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatus3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStatus,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatus4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStatus
// Params: too few parameters, only 1
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatus4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStatus,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatus5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStatus
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatus5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStatus,
{ {c_ExecCtrl_paramNameScenario, "WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatus6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStatus
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatus6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStatus,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStartInTable1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStartInTable
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStartInTable1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStart,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStartInTable2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStartInTable
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStartInTable2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStart,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "ExecCtrl_DefaultLGen_1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStartInTable3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStartInTable
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStartInTable3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStart,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStartInTable4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStartInTable
// Params: too few parameters, only 1
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStartInTable4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStart,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStartInTable5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStartInTable
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStartInTable5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStart,
{ {c_ExecCtrl_paramNameScenario, "WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStartInTable6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStartInTable
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStartInTable6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStart,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStopInTable1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStopInTable
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStopInTable1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStop,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStopInTable2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStopInTable
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStopInTable2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStop,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "ExecCtrl_DefaultLGen_1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStopInTable3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStopInTable
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStopInTable3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStop,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStopInTable4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStopInTable
// Params: too few parameters, only 1
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStopInTable4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStop,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStopInTable5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStopInTable
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStopInTable5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStop,
{ {c_ExecCtrl_paramNameScenario, "WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStopInTable6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStopInTable
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStopInTable6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStop,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScCPS1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScCPS
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScCPS1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScCPS,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScCPS2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScCPS
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScCPS2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScCPS,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "ExecCtrl_DefaultLGen_1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScCPS3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScCPS
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScCPS3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScCPS,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScCPS4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScCPS
// Params: too few parameters, only 1
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScCPS4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScCPS,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScCPS5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScCPS
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScCPS5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScCPS,
{ {c_ExecCtrl_paramNameScenario, "WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScCPS6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScCPS
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScCPS6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScCPS,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStart
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStart,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStart
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStart,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC2"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStart
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStart,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStart
// Params: too few parameters, only 1
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStart,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStart
// Params: too few parameters, only 2
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStart,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStart
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStart,
{ {c_ExecCtrl_paramNameTrafficCase, "WrongDefaultTC1"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Traffic case \"WrongDefaultTC1\" does not exits in the scenario \"DefaultScInScGrp\" of entity group \"DefaultEGrp\". Available traffic cases:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStart
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStart,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStart
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStart,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameScenario, "WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStop
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStop,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStop
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStop,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC2"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStop
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStop,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStop
// Params: too few parameters, only 1
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStop,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStop
// Params: too few parameters, only 2
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStop,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStop
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStop,
{ {c_ExecCtrl_paramNameTrafficCase, "WrongDefaultTC1"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Traffic case \"WrongDefaultTC1\" does not exits in the scenario \"DefaultScInScGrp\" of entity group \"DefaultEGrp\". Available traffic cases:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStop
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStop,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStop
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStop,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameScenario, "WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStartDelay
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStartDelay,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStartDelay
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStartDelay,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC2"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStartDelay
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStartDelay,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStartDelay
// Params: too few parameters, only 1
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStartDelay,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStartDelay
// Params: too few parameters, only 2
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStartDelay,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStartDelay
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStartDelay,
{ {c_ExecCtrl_paramNameTrafficCase, "WrongDefaultTC1"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Traffic case \"WrongDefaultTC1\" does not exits in the scenario \"DefaultScInScGrp\" of entity group \"DefaultEGrp\". Available traffic cases:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStartDelay
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStartDelay,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStartDelay
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStartDelay,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameScenario, "WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcTargetCPSOrWeight
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcTargetCPSOrWeight,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcTargetCPSOrWeight
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcTargetCPSOrWeight,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC2"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcTargetCPSOrWeight
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcTargetCPSOrWeight,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcTargetCPSOrWeight
// Params: too few parameters, only 1
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcTargetCPSOrWeight,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcTargetCPSOrWeight
// Params: too few parameters, only 2
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcTargetCPSOrWeight,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcTargetCPSOrWeight
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcTargetCPSOrWeight,
{ {c_ExecCtrl_paramNameTrafficCase, "WrongDefaultTC1"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Traffic case \"WrongDefaultTC1\" does not exits in the scenario \"DefaultScInScGrp\" of entity group \"DefaultEGrp\". Available traffic cases:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcTargetCPSOrWeight
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcTargetCPSOrWeight,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcTargetCPSOrWeight
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcTargetCPSOrWeight,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameScenario, "WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcTimeProfile
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcTimeProfile,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcTimeProfile
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcTimeProfile,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC2"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcTimeProfile
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcTimeProfile,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcTimeProfile
// Params: too few parameters, only 1
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcTimeProfile,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcTimeProfile
// Params: too few parameters, only 2
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcTimeProfile,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcTimeProfile
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcTimeProfile,
{ {c_ExecCtrl_paramNameTrafficCase, "WrongDefaultTC1"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Traffic case \"WrongDefaultTC1\" does not exits in the scenario \"DefaultScInScGrp\" of entity group \"DefaultEGrp\". Available traffic cases:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcTimeProfile
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcTimeProfile,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcTimeProfile
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcTimeProfile,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameScenario, "WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcRegulator
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcRegulator,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcRegulator
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcRegulator,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC2"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcRegulator
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcRegulator,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcRegulator
// Params: too few parameters, only 1
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcRegulator,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcRegulator
// Params: too few parameters, only 2
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcRegulator,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcRegulator
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcRegulator,
{ {c_ExecCtrl_paramNameTrafficCase, "WrongDefaultTC1"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Traffic case \"WrongDefaultTC1\" does not exits in the scenario \"DefaultScInScGrp\" of entity group \"DefaultEGrp\". Available traffic cases:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcRegulator
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcRegulator,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcRegulator
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcRegulator,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameScenario, "WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator9
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcRegulator
// Params: wrong parameter - weigthed scenario
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator9() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcRegulator,
{ {c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DSProcessData: Scenario DefaultEGrp.DefaultWSc is weighted, it cannot have a TC regulator.*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemType1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatedItemType
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemType1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatedItemType,
{ {c_ExecCtrl_paramNameRegulatedItemId, "grp0.scenario_1_declarator2.TC0_declarator2"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemType2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatedItemType
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemType2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatedItemType,
{ {c_ExecCtrl_paramNameRegulatedItemId, "grp0.scenario_1_declarator2.TC0_declarator1"},
{c_ExecCtrl_paramNameRegulatedItemId, "grp0.scenario_1_declarator2.TC0_declarator2"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\", \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemType3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatedItemType
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemType3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatedItemType,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemType4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatedItemType
// Params: wrong parameter given
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemType4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatedItemType,
{ {c_ExecCtrl_paramNameRegulatedItemId, "Wrong_grp0.scenario_1_declarator2.TC0_declarator2"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Regulated item \"Wrong_grp0.scenario_1_declarator2.TC0_declarator2\" does not exits. Available regulated items:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemType5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatedItemType
// Params: wrong parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemType5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatedItemType,
{ {"bubu", "grp0.scenario_1_declarator2.TC0_declarator2"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"bubu\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemName1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatedItemName
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemName1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatedItemName,
{ {c_ExecCtrl_paramNameRegulatedItemId, "grp0.scenario_1_declarator2.TC0_declarator2"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemName2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatedItemName
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemName2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatedItemName,
{ {c_ExecCtrl_paramNameRegulatedItemId, "grp0.scenario_1_declarator2.TC0_declarator1"},
{c_ExecCtrl_paramNameRegulatedItemId, "grp0.scenario_1_declarator2.TC0_declarator2"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\", \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemName3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatedItemName
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemName3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatedItemName,
{ } ,
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemName4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatedItemName
// Params: wrong parameter given
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemName4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatedItemName,
{ {c_ExecCtrl_paramNameRegulatedItemId, "Wrong_grp0.scenario_1_declarator2.TC0_declarator2"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Regulated item \"Wrong_grp0.scenario_1_declarator2.TC0_declarator2\" does not exits. Available regulated items:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemName5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatedItemName
// Params: wrong parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemName5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatedItemName,
{ {"bubu", "grp0.scenario_1_declarator2.TC0_declarator2"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"bubu\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorName1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorName
// Params: wrong parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorName1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorName,
{ {c_ExecCtrl_paramNameRegulatedItemId, "ETHgrp0.scenario_1_declarator2.TC0_declarator2"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Regulated item \"ETHgrp0.scenario_1_declarator2.TC0_declarator2\" does not exits. Available regulated items:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorName2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorName
// Params: wrong parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorName2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorName,
{ {"ETH", "grp0.scenario_1_declarator2.TC0_declarator2"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorName3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorName
// Params: none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorName3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorName,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorName4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorName
// Params: too many parameters, same type
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorName4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorName,
{ {c_ExecCtrl_paramNameRegulatedItemId, "ETHgrp0.scenario_1_declarator2.TC0_declarator2"},
{c_ExecCtrl_paramNameRegulatedItemId, "ETHgrp0.scenario_1_declarator2.TC0_declarator3"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\", \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorName5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorName
// Params: too many parameters, different type
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorName5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorName,
{ {c_ExecCtrl_paramNameRegulatorName, "Regulator 1"},
{c_ExecCtrl_paramNameRegulatedItemId, "ETHgrp0.scenario_1_declarator2.TC0_declarator3"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\", \"" & c_ExecCtrl_paramNameRegulatorName & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemWeight1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatedItemWeight
// Params: wrong parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemWeight1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatedItemWeight,
{{c_ExecCtrl_paramNameRegulatedItemId, "ETHgrp0.scenario_1_declarator2.TC0_declarator2"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Regulated item \"ETHgrp0.scenario_1_declarator2.TC0_declarator2\" does not exits. Available regulated items:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemWeight2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatedItemWeight
// Params: wrong parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemWeight2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatedItemWeight,
{{"ETH", "ETHgrp0.scenario_1_declarator2.TC0_declarator2"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemWeight3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatedItemWeight
// Params: none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemWeight3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatedItemWeight,
{},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemWeight4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatedItemWeight
// Params: too many parameters, same type
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemWeight4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatedItemWeight,
{{c_ExecCtrl_paramNameRegulatedItemId, "ETHgrp0.scenario_1_declarator2.TC0_declarator2"},
{c_ExecCtrl_paramNameRegulatedItemId, "ETHgrp0.scenario_1_declarator2.TC0_declarator3"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\", \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemWeight5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatedItemWeight
// Params: too many parameters, different type
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemWeight5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatedItemWeight,
{{c_ExecCtrl_paramNameRegulatorName, "Regulator 1"},
{c_ExecCtrl_paramNameRegulatedItemId, "ETHgrp0.scenario_1_declarator2.TC0_declarator2"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\", \"" & c_ExecCtrl_paramNameRegulatorName & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemEnabled1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatedItemEnabled
// Params: wrong parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemEnabled1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatedItemEnabled,
{{c_ExecCtrl_paramNameRegulatedItemId, "ETHgrp0.scenario_1_declarator2.TC0_declarator2"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Regulated item \"ETHgrp0.scenario_1_declarator2.TC0_declarator2\" does not exits. Available regulated items:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemEnabled2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatedItemEnabled
// Params: wrong parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemEnabled2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatedItemEnabled,
{{"ETH", "ETHgrp0.scenario_1_declarator2.TC0_declarator2"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemEnabled3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatedItemEnabled
// Params: none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemEnabled3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatedItemEnabled,
{},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemEnabled4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatedItemEnabled
// Params: too many parameters, same type
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemEnabled4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatedItemEnabled,
{{c_ExecCtrl_paramNameRegulatedItemId, "ETHgrp0.scenario_1_declarator2.TC0_declarator2"},
{c_ExecCtrl_paramNameRegulatedItemId, "ETHgrp0.scenario_1_declarator2.TC0_declarator3"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\", \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemEnabled5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatedItemEnabled
// Params: too many parameters, different type
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemEnabled5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatedItemEnabled,
{{c_ExecCtrl_paramNameRegulatorName, "Regulator 1"},
{c_ExecCtrl_paramNameRegulatedItemId, "ETHgrp0.scenario_1_declarator2.TC0_declarator2"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\", \"" & c_ExecCtrl_paramNameRegulatorName & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTotalValue1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorTotalValue
// Params: wrong parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTotalValue1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorTotalValue,
{{c_ExecCtrl_paramNameRegulatorName, "ETHRegulator 1"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Regulator with name \"ETHRegulator 1\" does not exits. Available regulator names:{ * }");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTotalValue2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorTotalValue
// Params: wrong parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTotalValue2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorTotalValue,
{{"ETH", "Regulator 1"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatorName & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTotalValue3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorTotalValue
// Params: none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTotalValue3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorTotalValue,
{},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatorName & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTotalValue4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorTotalValue
// Params: too many parameters, same type
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTotalValue4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorTotalValue,
{{c_ExecCtrl_paramNameRegulatorName, "Regulator 1"},
{c_ExecCtrl_paramNameRegulatorName, "Regulator 1"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameRegulatorName & "\", \"" & c_ExecCtrl_paramNameRegulatorName & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatorName & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTotalValue5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorTotalValue
// Params: too many parameters, different type
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTotalValue5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorTotalValue,
{{c_ExecCtrl_paramNameRegulatedItemId, "grp0.scenario_1_declarator2.TC0_declarator2"},
{c_ExecCtrl_paramNameRegulatorName, "Regulator 1"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameRegulatedItemId & "\", \"" & c_ExecCtrl_paramNameRegulatorName & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatorName & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTargetLoad1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorTargetLoad
// Params: wrong parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTargetLoad1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorTargetLoad,
{{c_ExecCtrl_paramNameRegulatorName, "ETHRegulator 1"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Regulator with name \"ETHRegulator 1\" does not exits. Available regulator names:{ * }");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTargetLoad2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorTargetLoad
// Params: wrong parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTargetLoad2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorTargetLoad,
{{"ETH", "Regulator 1"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatorName & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTargetLoad3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorTargetLoad
// Params: none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTargetLoad3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorTargetLoad,
{},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatorName & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTargetLoad4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorTargetLoad
// Params: too many parameters, same type
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTargetLoad4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorTargetLoad,
{{c_ExecCtrl_paramNameRegulatorName, "Regulator 1"},
{c_ExecCtrl_paramNameRegulatorName, "Regulator 2"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameRegulatorName & "\", \"" & c_ExecCtrl_paramNameRegulatorName & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatorName & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTargetLoad5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorTargetLoad
// Params: too many parameters, different type
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTargetLoad5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorTargetLoad,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameRegulatorName, "Regulator 1"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameRegulatorName & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatorName & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorCurrentLoad1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorCurrentLoad
// Params: wrong parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorCurrentLoad1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorCurrentLoad,
{{c_ExecCtrl_paramNameRegulatorName, "ETHRegulator 1"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Regulator with name \"ETHRegulator 1\" does not exits. Available regulator names:{ * }");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorCurrentLoad2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorCurrentLoad
// Params: wrong parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorCurrentLoad2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorCurrentLoad,
{{"ETH", "Regulator 1"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatorName & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorCurrentLoad3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorCurrentLoad
// Params: none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorCurrentLoad3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorCurrentLoad,
{},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatorName & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorCurrentLoad4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorCurrentLoad
// Params: too many parameters, same type
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorCurrentLoad4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorCurrentLoad,
{{c_ExecCtrl_paramNameRegulatorName, "ETHRegulator 1"},
{c_ExecCtrl_paramNameRegulatorName, "ETHRegulator 2"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameRegulatorName & "\", \"" & c_ExecCtrl_paramNameRegulatorName & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatorName & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorCurrentLoad5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorCurrentLoad
// Params: too many parameters, different type
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorCurrentLoad5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorCurrentLoad,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameRegulatorName, "ETHRegulator 1"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameRegulatorName & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatorName & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorStatus1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorStatus
// Params: wrong parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorStatus1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorStatus,
{{c_ExecCtrl_paramNameRegulatorName, "ETHRegulator 1"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Regulator with name \"ETHRegulator 1\" does not exits. Available regulator names:{ * }");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorStatus2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorStatus
// Params: wrong parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorStatus2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorStatus,
{{"ETH", "Regulator 1"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatorName & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorStatus3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorStatus
// Params: none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorStatus3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorStatus,
{},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatorName & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorStatus4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorStatus
// Params: too many parameters, same type
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorStatus4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorStatus,
{{c_ExecCtrl_paramNameRegulatorName, "Regulator 1"},
{c_ExecCtrl_paramNameRegulatorName, "Regulator 2"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameRegulatorName & "\", \"" & c_ExecCtrl_paramNameRegulatorName & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatorName & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorStatus5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementRegulatorStatus
// Params: too many parameters, different type
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorStatus5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementRegulatorStatus,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameRegulatorName, "Regulator 1"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameRegulatorName & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameRegulatorName & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofDeployedLGens1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofDeployedLGens
// Params: wrong parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofDeployedLGens1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofDeployedLGens,
{{c_ExecCtrl_paramNameEntityGroup, "ETHDefaultEGrp"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"ETHDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofDeployedLGens2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofDeployedLGens
// Params: wrong parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofDeployedLGens2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofDeployedLGens,
{{"ETH", "DefaultEGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\" }\nNeeded : { \"" & c_ExecCtrl_paramNameScenarioInstance & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofDeployedLGens3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofDeployedLGens
// Params: none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofDeployedLGens3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofDeployedLGens,
{},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameScenarioInstance & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofDeployedLGens4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofDeployedLGens
// Params: too many parameters, same type
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofDeployedLGens4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofDeployedLGens,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp2"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameScenarioInstance & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofDeployedLGens5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofDeployedLGens
// Params: too many parameters, different type
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofDeployedLGens5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofDeployedLGens,
{{c_ExecCtrl_paramNameScenario, "DefaultWSc"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameScenarioInstance & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofDeployedLGens6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofDeployedLGens
// Params: wrong parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofDeployedLGens6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofDeployedLGens,
{{c_ExecCtrl_paramNameScenarioInstance, "ETH_DefaultEGrp.DefaultWSc"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario instance \"ETH_DefaultEGrp.DefaultWSc\" does not exits. Available scenario instances:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofDeployedLGens7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofDeployedLGens
// Params: wrong parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofDeployedLGens7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofDeployedLGens,
{{c_ExecCtrl_paramNameScenarioInstance, "ETH_DefaultEGrp.DefaultWSc"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenarioInstance & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameScenarioInstance & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofActiveEntities1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofActiveEntities
// Params: wrong parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofActiveEntities1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofActiveEntities,
{{c_ExecCtrl_paramNameEntityGroup, "ETHDefaultEGrp"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"ETHDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofActiveEntities2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofActiveEntities
// Params: wrong parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofActiveEntities2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofActiveEntities,
{{"ETH", "DefaultEGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofActiveEntities3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofActiveEntities
// Params: none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofActiveEntities3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofActiveEntities,
{},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofActiveEntities4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofActiveEntities
// Params: too many parameters, same type
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofActiveEntities4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofActiveEntities,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp2"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementNofActiveEntities5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementNofActiveEntities
// Params: too many parameters, different type
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementNofActiveEntities5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementNofActiveEntities,
{{c_ExecCtrl_paramNameScenario, "DefaultWSc"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScTargetCPS
// Params: not weighted scenario in second parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScTargetCPS,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_DSProcessDataWarning: Scenario DefaultEGrp.DefaultScInScGrp is not weighted*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScTargetCPS
// Params: no first parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScTargetCPS,
{{c_ExecCtrl_paramNameScenario, "DefaultWSc"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScTargetCPS
// Params: no second parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScTargetCPS,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScTargetCPS
// Params: none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScTargetCPS,
{},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScTargetCPS
// Params: wrong first parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScTargetCPS,
{{c_ExecCtrl_paramNameEntityGroup, "ETHDefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"ETHDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScTargetCPS
// Params: wrong first parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScTargetCPS,
{{"ETH", "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScTargetCPS
// Params: wrong second parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScTargetCPS,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "ETHDefaultWSc"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"ETHDefaultWSc\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScTargetCPS
// Params: wrong second parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScTargetCPS,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{"ETH", "DefaultWSc"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\", \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS9
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScTargetCPS
// Params: too many parameters, frist 2 is proper
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS9() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScTargetCPS,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc2"}
},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS10
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScTargetCPS
// Params: too many parameters, frist 2 is inappropriate
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS10() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScTargetCPS,
{{c_ExecCtrl_paramNameScenario, "DefaultWSc2"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScRegulatorName
// Params: not weighted scenario in second parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScRegulatorName,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_DSProcessDataWarning: Scenario DefaultEGrp.DefaultScInScGrp is not weighted*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScRegulatorName
// Params: no first parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScRegulatorName,
{{c_ExecCtrl_paramNameScenario, "DefaultWSc"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScRegulatorName
// Params: no second parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScRegulatorName,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScRegulatorName
// Params: none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScRegulatorName,
{},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScRegulatorName
// Params: wrong first parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScRegulatorName,
{{c_ExecCtrl_paramNameEntityGroup, "ETHDefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"ETHDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScRegulatorName
// Params: wrong first parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScRegulatorName,
{{"ETH", "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScRegulatorName
// Params: wrong second parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScRegulatorName,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "ETHDefaultWSc"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"ETHDefaultWSc\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScRegulatorName
// Params: wrong second parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScRegulatorName,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{"ETH", "DefaultWSc"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\", \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName9
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScRegulatorName
// Params: too many parameters, frist 2 is proper
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName9() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScRegulatorName,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc2"}
},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName10
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScRegulatorName
// Params: too many parameters, frist 2 is inappropriate
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName10() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScRegulatorName,
{{c_ExecCtrl_paramNameScenario, "DefaultWSc2"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc"}
},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpCurrentPhase
// Params: weighted scenario in second parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpCurrentPhase,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc"}},
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter is wrong. Scenario should be in a group: DefaultWSc*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpCurrentPhase
// Params: no first parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpCurrentPhase,
{{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpCurrentPhase
// Params: no second parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpCurrentPhase,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpCurrentPhase
// Params: none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpCurrentPhase,
{},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpCurrentPhase
// Params: wrong first parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpCurrentPhase,
{{c_ExecCtrl_paramNameEntityGroup, "ETHDefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"ETHDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpCurrentPhase
// Params: wrong first parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpCurrentPhase,
{{"ETH", "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpCurrentPhase
// Params: wrong second parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpCurrentPhase,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "ETHDefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"ETHDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpCurrentPhase
// Params: wrong second parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpCurrentPhase,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{"ETH", "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\", \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase9
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpCurrentPhase
// Params: too many parameters, first 2 are proper
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase9() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpCurrentPhase,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp2"}
},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase10
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpCurrentPhase
// Params: too many parameters, first 2 are inappropriate
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase10() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpCurrentPhase,
{{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp2"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}
},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: ExecCtrl_dataElementScGrpMode
// Params: weighted scenario in second parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpMode,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc"}},
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter is wrong. Scenario should be in a group: DefaultWSc*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: ExecCtrl_dataElementScGrpMode
// Params: no first parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpMode,
{{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: ExecCtrl_dataElementScGrpMode
// Params: no second parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpMode,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: ExecCtrl_dataElementScGrpMode
// Params: none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpMode,
{},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: ExecCtrl_dataElementScGrpMode
// Params: wrong first parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpMode,
{{c_ExecCtrl_paramNameEntityGroup, "ETHDefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}
},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"ETHDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: ExecCtrl_dataElementScGrpMode
// Params: wrong first parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpMode,
{{"ETH", "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}
},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: ExecCtrl_dataElementScGrpMode
// Params: wrong second parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpMode,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "ETHDefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"ETHDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: ExecCtrl_dataElementScGrpMode
// Params: wrong second parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpMode,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{"ETH", "DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\", \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode9
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: ExecCtrl_dataElementScGrpMode
// Params: too many parameters, first 2 are proper
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode9() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpMode,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp2"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode10
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: ExecCtrl_dataElementScGrpMode
// Params: too many parameters, first 2 are inappropriate
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode10() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpMode,
{{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp2"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStatus
// Params: weighted scenario in second parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpStatus,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc"}},
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter is wrong. Scenario should be in a group: DefaultWSc*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStatus
// Params: no first parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpStatus,
{{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStatus
// Params: no second parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpStatus,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStatus
// Params: none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpStatus,
{},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStatus
// Params: wrong first parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpStatus,
{{c_ExecCtrl_paramNameEntityGroup, "ETHDefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"ETHDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStatus
// Params: wrong first parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpStatus,
{{"ETH", "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStatus
// Params: wrong second parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpStatus,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "ETHDefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"ETHDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStatus
// Params: wrong second parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpStatus,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{"ETH", "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\", \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus9
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStatus
// Params: too many parameters, first 2 are proper
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus9() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpStatus,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp2"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus10
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStatus
// Params: too many parameters, first 2 are inappropriate
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus10() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpStatus,
{{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp2"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStart
// Params: weighted scenario in second parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpStart,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc"}},
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter is wrong. Scenario should be in a group: DefaultWSc*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStart
// Params: no first parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpStart,
{{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStart
// Params: no second parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpStart,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStart
// Params: none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpStart,
{},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStart
// Params: wrong first parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpStart,
{{c_ExecCtrl_paramNameEntityGroup, "ETHDefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"ETHDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStart
// Params: wrong first parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpStart,
{{"ETH", "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStart
// Params: wrong second parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpStart,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "ETHDefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"ETHDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStart
// Params: wrong first parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpStart,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{"ETH", "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\", \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart9
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStart
// Params: too many parameters, first 2 are proper
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart9() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpStart,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp2"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart10
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStart
// Params: too many parameters, first 2 are inappropriate
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart10() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpStart,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp2"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStart
// Params: weighted scenario in second parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpTerminate,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc"}},
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter is wrong. Scenario should be in a group: DefaultWSc*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStart
// Params: no first parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpTerminate,
{{c_ExecCtrl_paramNameScenario, "DefaultWSc"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStart
// Params: no second parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpTerminate,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStart
// Params: none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpTerminate,
{},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStart
// Params: wrong first parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpTerminate,
{{c_ExecCtrl_paramNameEntityGroup, "ETHDefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"ETHDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStart
// Params: wrong first parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpTerminate,
{{"ETH", "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStart
// Params: wrong second parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpTerminate,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "ETHDefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"ETHDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStart
// Params: wrong second parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpTerminate,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{"ETH", "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\", \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate9
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStart
// Params: too many parameters, first 2 are proper
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate9() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpTerminate,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp2"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate10
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpStart
// Params: too many parameters, first 2 are inappropriate
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate10() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpTerminate,
{{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp2"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpReset
// Params: weighted scenario in second parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpReset,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc"}},
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter is wrong. Scenario should be in a group: DefaultWSc*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpReset
// Params: no first parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpReset,
{{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpReset
// Params: no second parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpReset,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpReset
// Params: none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpReset,
{},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpReset
// Params: wrong first parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpReset,
{{c_ExecCtrl_paramNameEntityGroup, "ETHDefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"ETHDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpReset
// Params: wrong first parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpReset,
{{"ETH", "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpReset
// Params: wrong second parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpReset,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "ETHDefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"ETHDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpReset
// Params: wrong second parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpReset,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{"ETH", "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"ETH\", \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset9
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpReset
// Params: too many parameters, first 2 are proper
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset9() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpReset,
{{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp2"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset10
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpReset
// Params: too many parameters, first 2 are inappropriate
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset10() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpReset,
{{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp2"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScStatus1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpScStatus
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScStatus1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpScStatus,
{ {c_ExecCtrl_paramNameScenario,"DefaultScGroup"},
{c_ExecCtrl_paramNameEntityGroup ,"DefaultEGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScStatus2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpScStatus
// Params: too many parameters- one is duplicate
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScStatus2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpScStatus,
{ {c_ExecCtrl_paramNameScenario,"DefaultScGroup"},
{c_ExecCtrl_paramNameEntityGroup ,"DefaultEGrp"},
{c_ExecCtrl_paramNameEntityGroup ,"egrp1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScStatus3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpScStatus
// Params: too few parameters- none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScStatus3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpScStatus,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScStatus4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpScStatus
// Params: too few parameters- only one
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScStatus4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpScStatus,
{ {c_ExecCtrl_paramNameScenario,"DefaultScGroup"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScStatus5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpScStatus
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScStatus5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpScStatus,
{ {c_ExecCtrl_paramNameScenario,"WrongDefaultScGroup"},
{c_ExecCtrl_paramNameEntityGroup ,"DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScGroup\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScStatus6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpScStatus
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScStatus6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpScStatus,
{ {c_ExecCtrl_paramNameScenario,"DefaultScGroup"},
{c_ExecCtrl_paramNameEntityGroup ,"WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStart1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStart
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStart1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStartButton,
{ {c_ExecCtrl_paramNameScenario,"DefaultScGroup"},
{c_ExecCtrl_paramNameEntityGroup ,"DefaultEGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStart2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStart
// Params: too many parameters- one is duplicate
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStart2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStartButton,
{ {c_ExecCtrl_paramNameScenario,"DefaultScGroup"},
{c_ExecCtrl_paramNameEntityGroup ,"DefaultEGrp"},
{c_ExecCtrl_paramNameEntityGroup ,"egrp1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStart3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStart
// Params: too few parameters- none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStart3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStartButton,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStart4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStart
// Params: too few parameters- only one
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStart4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStartButton,
{ {c_ExecCtrl_paramNameScenario,"DefaultScGroup"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStart5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStart
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStart5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStartButton,
{ {c_ExecCtrl_paramNameScenario,"WrongDefaultScGroup"},
{c_ExecCtrl_paramNameEntityGroup ,"DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScGroup\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStart6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStart
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStart6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStartButton,
{ {c_ExecCtrl_paramNameScenario,"DefaultScGroup"},
{c_ExecCtrl_paramNameEntityGroup ,"WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStop1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStop
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStop1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStopButton,
{ {c_ExecCtrl_paramNameScenario,"DefaultScGroup"},
{c_ExecCtrl_paramNameEntityGroup ,"DefaultEGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStop2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStop
// Params: too many parameters- one is duplicate
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStop2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStopButton,
{ {c_ExecCtrl_paramNameScenario,"DefaultScGroup"},
{c_ExecCtrl_paramNameEntityGroup ,"DefaultEGrp"},
{c_ExecCtrl_paramNameEntityGroup ,"egrp1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStop3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStop
// Params: too few parameters- none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStop3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStopButton,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStop4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStop
// Params: too few parameters- only one
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStop4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStopButton,
{ {c_ExecCtrl_paramNameScenario,"DefaultScGroup"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStop5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStop
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStop5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStopButton,
{ {c_ExecCtrl_paramNameScenario,"WrongDefaultScGroup"},
{c_ExecCtrl_paramNameEntityGroup ,"DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScGroup\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScStop6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScStop
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScStop6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScStopButton,
{ {c_ExecCtrl_paramNameScenario,"DefaultScGroup"},
{c_ExecCtrl_paramNameEntityGroup ,"WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScReset1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScReset
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScReset1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScReset,
{ {c_ExecCtrl_paramNameScenario,"DefaultScGroup"},
{c_ExecCtrl_paramNameEntityGroup ,"DefaultEGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScReset2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScReset
// Params: too many parameters- one is duplicate
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScReset2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScReset,
{ {c_ExecCtrl_paramNameScenario,"DefaultScGroup"},
{c_ExecCtrl_paramNameEntityGroup ,"DefaultEGrp"},
{c_ExecCtrl_paramNameEntityGroup ,"egrp1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScReset3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScReset
// Params: too few parameters- none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScReset3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScReset,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScReset4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScReset
// Params: too few parameters- only one
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScReset4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScReset,
{ {c_ExecCtrl_paramNameScenario,"DefaultScGroup"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScReset5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScReset
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScReset5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScReset,
{ {c_ExecCtrl_paramNameScenario,"WrongDefaultScGroup"},
{c_ExecCtrl_paramNameEntityGroup ,"DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScGroup\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScReset6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScReset
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScReset6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScReset,
{ {c_ExecCtrl_paramNameScenario,"DefaultScGroup"},
{c_ExecCtrl_paramNameEntityGroup ,"WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcGroupFinishStatus
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcGroupFinishStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcGroupFinishStatus
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcGroupFinishStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC2"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcGroupFinishStatus
// Params: too few parameters - none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcGroupFinishStatus,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcGroupFinishStatus
// Params: too few parameters- only one
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcGroupFinishStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcGroupFinishStatus
// Params: too few parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcGroupFinishStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcGroupFinishStatus
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcGroupFinishStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcGroupFinishStatus
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcGroupFinishStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcGroupFinishStatus
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcGroupFinishStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"WrongDefaultTC1"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Traffic case \"WrongDefaultTC1\" does not exits in the scenario \"DefaultScInScGrp\" of entity group \"DefaultEGrp\". Available traffic cases:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStatus
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStatus
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC2"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStatus
// Params: too few parameters - none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStatus,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStatus
// Params: too few parameters- only one
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStatus
// Params: too few parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStatus
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStatus
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStatus
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"WrongDefaultTC1"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Traffic case \"WrongDefaultTC1\" does not exits in the scenario \"DefaultScInScGrp\" of entity group \"DefaultEGrp\". Available traffic cases:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcGrpFinishStatus
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcGrpFinishStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"},
{c_ExecCtrl_paramNameCondition, "Starts"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameCondition & "\", \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameCondition & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcGrpFinishStatus
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcGrpFinishStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC2"},
{c_ExecCtrl_paramNameCondition, "Starts"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameCondition & "\", \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameCondition & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcGrpFinishStatus
// Params: too few parameters - none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcGrpFinishStatus,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameCondition & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcGrpFinishStatus
// Params: too few parameters- only one
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcGrpFinishStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameCondition & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcGrpFinishStatus
// Params: too few parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcGrpFinishStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameCondition & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcGrpFinishStatus
// Params: too few parameters - only 3
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcGrpFinishStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameCondition & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcGrpFinishStatus
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcGrpFinishStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"},
{c_ExecCtrl_paramNameCondition, "Starts"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcGrpFinishStatus
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcGrpFinishStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"},
{c_ExecCtrl_paramNameCondition, "Starts"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus9
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcGrpFinishStatus
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus9() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcGrpFinishStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"WrongDefaultTC1"},
{c_ExecCtrl_paramNameCondition, "Starts"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Traffic case \"WrongDefaultTC1\" does not exits in the scenario \"DefaultScInScGrp\" of entity group \"DefaultEGrp\". Available traffic cases:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus10
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcGrpFinishStatus
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus10() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcGrpFinishStatus,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"},
{c_ExecCtrl_paramNameCondition, "WrongStarts"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Group finish condition \"WrongStarts\" does not exits. Available grp finish conditions:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcExecTime
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcExecTime,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcExecTime
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcExecTime,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC2"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcExecTime
// Params: too few parameters - none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcExecTime,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcExecTime
// Params: too few parameters- only one
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcExecTime,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcExecTime
// Params: too few parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcExecTime,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcExecTime
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcExecTime,
{ {c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcExecTime
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcExecTime,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcExecTime
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcExecTime,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"WrongDefaultTC1"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Traffic case \"WrongDefaultTC1\" does not exits in the scenario \"DefaultScInScGrp\" of entity group \"DefaultEGrp\". Available traffic cases:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotEntityIdx
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotEntityIdx,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotEntityIdx
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotEntityIdx,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC2"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotEntityIdx
// Params: too few parameters - none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotEntityIdx,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotEntityIdx
// Params: too few parameters- only one
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotEntityIdx,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotEntityIdx
// Params: too few parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotEntityIdx,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotEntityIdx
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotEntityIdx,
{ {c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotEntityIdx
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotEntityIdx,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotEntityIdx
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotEntityIdx,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"WrongDefaultTC1"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Traffic case \"WrongDefaultTC1\" does not exits in the scenario \"DefaultScInScGrp\" of entity group \"DefaultEGrp\". Available traffic cases:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotEnableLog
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotEnableLog,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotEnableLog
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotEnableLog,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC2"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotEnableLog
// Params: too few parameters - none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotEnableLog,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotEnableLog
// Params: too few parameters- only one
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotEnableLog,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotEnableLog
// Params: too few parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotEnableLog,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotEnableLog
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotEnableLog,
{ {c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotEnableLog
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotEnableLog,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotEnableLog
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotEnableLog,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"WrongDefaultTC1"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Traffic case \"WrongDefaultTC1\" does not exits in the scenario \"DefaultScInScGrp\" of entity group \"DefaultEGrp\". Available traffic cases:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotStart
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotStart,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotStart
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotStart,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC2"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotStart
// Params: too few parameters - none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotStart,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotStart
// Params: too few parameters- only one
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotStart,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotStart
// Params: too few parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotStart,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotStart
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotStart,
{ {c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotStart
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotStart,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"DefaultTC1"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcSingleShotStart
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcSingleShotStart,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase ,"WrongDefaultTC1"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Traffic case \"WrongDefaultTC1\" does not exits in the scenario \"DefaultScInScGrp\" of entity group \"DefaultEGrp\". Available traffic cases:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpEnablePhase1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpEnablePhase
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpEnablePhase1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpEnablePhase,
{ {c_ExecCtrl_paramNameScenarioGroup,"DefaultScGroup"},
{c_ExecCtrl_paramNamePhase ,"phase2"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNamePhase & "\", \"" & c_ExecCtrl_paramNameScenarioGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameScenarioGroup & "\", \"" & c_ExecCtrl_paramNamePhase & "\" }");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpEnablePhase2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpEnablePhase
// Params: too many parameters- one is duplicate
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpEnablePhase2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpEnablePhase,
{ {c_ExecCtrl_paramNameScenarioGroup,"DefaultScGroup"},
{c_ExecCtrl_paramNamePhase ,"phase2"},
{c_ExecCtrl_paramNamePhase, "phase3"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNamePhase & "\", \"" & c_ExecCtrl_paramNamePhase & "\", \"" & c_ExecCtrl_paramNameScenarioGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameScenarioGroup & "\", \"" & c_ExecCtrl_paramNamePhase & "\" }");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpEnablePhase3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpEnablePhase
// Params: too few parameters- none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpEnablePhase3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpEnablePhase,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameScenarioGroup & "\", \"" & c_ExecCtrl_paramNamePhase & "\" }" );
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpEnablePhase4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpEnablePhase
// Params: too few parameters- only one
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpEnablePhase4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpEnablePhase,
{ {c_ExecCtrl_paramNameScenarioGroup,"DefaultScGroup"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenarioGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameScenarioGroup & "\", \"" & c_ExecCtrl_paramNamePhase & "\" }" );
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpEnablePhase5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpEnablePhase
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpEnablePhase5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpEnablePhase,
{ {c_ExecCtrl_paramNameScenarioGroup,"WrongDefaultScGroup"},
{c_ExecCtrl_paramNamePhase ,"phase2"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario group \"WrongDefaultScGroup\" does not exits. Available scenario groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpEnablePhase6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpEnablePhase
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpEnablePhase6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpEnablePhase,
{ {c_ExecCtrl_paramNameScenarioGroup,"DefaultScGroup"},
{c_ExecCtrl_paramNamePhase ,"Wrongphase2"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Phase \"Wrongphase2\" does not exits. Available phases:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpScEnablePhase
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpScEnablePhase,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNamePhase ,"phase2"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNamePhase & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameScenarioInstance & "\", \"" & c_ExecCtrl_paramNamePhase & "\" }*" );
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpScEnablePhase
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpScEnablePhase,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNamePhase ,"phase2"},
{c_ExecCtrl_paramNamePhase, "phase3"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNamePhase & "\", \"" & c_ExecCtrl_paramNamePhase & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameScenarioInstance & "\", \"" & c_ExecCtrl_paramNamePhase & "\" }*" );
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpScEnablePhase
// Params: too few parameters - none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpScEnablePhase,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameScenarioInstance & "\", \"" & c_ExecCtrl_paramNamePhase & "\" }" );
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpScEnablePhase
// Params: too few parameters- only one
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpScEnablePhase,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameScenarioInstance & "\", \"" & c_ExecCtrl_paramNamePhase & "\" }" );
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpScEnablePhase
// Params: too few parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpScEnablePhase,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameScenarioInstance & "\", \"" & c_ExecCtrl_paramNamePhase & "\" }" );
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpScEnablePhase
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpScEnablePhase,
{ {c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNamePhase ,"phase2"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpScEnablePhase
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpScEnablePhase,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNamePhase ,"phase2"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpScEnablePhase
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpScEnablePhase,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario,"DefaultScInScGrp"},
{c_ExecCtrl_paramNamePhase ,"Wrongphase2"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Phase \"Wrongphase2\" does not exits. Available phases:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase9
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpScEnablePhase
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase9() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpScEnablePhase,
{ {c_ExecCtrl_paramNameScenarioInstance,"DefaultEGrp.DefaultScInScGrp"},
{c_ExecCtrl_paramNamePhase ,"phase2"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNamePhase & "\", \"" & c_ExecCtrl_paramNameScenarioInstance & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNamePhase & "\" }");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase10
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpScEnablePhase
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase10() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpScEnablePhase,
{ {c_ExecCtrl_paramNameScenarioInstance,"DefaultEGrp.DefaultScInScGrp"},
{c_ExecCtrl_paramNamePhase ,"phase2"},
{c_ExecCtrl_paramNamePhase, "phase3"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"" & c_ExecCtrl_paramNamePhase & "\", \"" & c_ExecCtrl_paramNamePhase & "\", \"" & c_ExecCtrl_paramNameScenarioInstance & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNamePhase & "\" }");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase11
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpScEnablePhase
// Params: too few parameters- only one
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase11() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpScEnablePhase,
{ {c_ExecCtrl_paramNameScenarioInstance, "DefaultEGrp.DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \""& c_ExecCtrl_paramNameScenarioInstance & "\" }\nNeeded : { \""& c_ExecCtrl_paramNameScenarioInstance & "\", \"Phase\" }");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase12
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpScEnablePhase
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase12() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpScEnablePhase,
{ {c_ExecCtrl_paramNameScenarioInstance,"WrongDefaultEGrp.DefaultScInScGrp"},
{c_ExecCtrl_paramNamePhase ,"phase2"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario instance \"WrongDefaultEGrp.DefaultScInScGrp\" does not exits. Available scenario instances:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase13
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGrpScEnablePhase
// Params: wrong parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase13() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGrpScEnablePhase,
{ {c_ExecCtrl_paramNameScenarioInstance,"WrongDefaultEGrp.DefaultScInScGrp"},
{c_ExecCtrl_paramNamePhase ,"Wrongphase2"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario instance \"WrongDefaultEGrp.DefaultScInScGrp\" does not exits. Available scenario instances:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffset1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpOffset
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffset1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpOffset,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffset2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpOffset
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffset2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpOffset,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameEntityGroup, "egrp1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffset3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpOffset
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffset3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpOffset,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffset4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpOffset
// Params: wrong parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffset4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpOffset,
{ {c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffset5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpOffset
// Params: wrong parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffset5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpOffset,
{ {"bubu", "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"bubu\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpLGenPool1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpLGenPool
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpLGenPool1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpLGenPool,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpLGenPool2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpLGenPool
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpLGenPool2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpLGenPool,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameEntityGroup, "egrp1"}},
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpLGenPool3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpLGenPool
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpLGenPool3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpLGenPool,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpLGenPool4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpLGenPool
// Params: wrong parameter value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpLGenPool4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpLGenPool,
{ {c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpLGenPool5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementEGrpLGenPool
// Params: wrong parameter name
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpLGenPool5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementEGrpLGenPool,
{ {"bubu", "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Parameters are not correct: \nReceived: { \"bubu\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScInstanceName1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScInstanceName
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScInstanceName1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScInstanceName,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScInstanceName2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScInstanceName
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScInstanceName2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScInstanceName,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "ExecCtrl_DefaultLGen_1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScInstanceName3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScInstanceName
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScInstanceName3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScInstanceName,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScInstanceName4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScInstanceName
// Params: too few parameters, only 1
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScInstanceName4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScInstanceName,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScInstanceName5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScInstanceName
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScInstanceName5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScInstanceName,
{ {c_ExecCtrl_paramNameScenario, "WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScInstanceName6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScInstanceName
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScInstanceName6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScInstanceName,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScPhaseListName1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScPhaseListName
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScPhaseListName1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScPhaseListName,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScPhaseListName2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScPhaseListName
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScPhaseListName2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScPhaseListName,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "ExecCtrl_DefaultLGen_1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScPhaseListName3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScPhaseListName
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScPhaseListName3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScPhaseListName,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScPhaseListName4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScPhaseListName
// Params: too few parameters, only 1
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScPhaseListName4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScPhaseListName,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScPhaseListName5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScPhaseListName
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScPhaseListName5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScPhaseListName,
{ {c_ExecCtrl_paramNameScenario, "WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScPhaseListName6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScPhaseListName
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScPhaseListName6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScPhaseListName,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScScGrpName1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScScGrpName
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScScGrpName1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScScGrpName,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScScGrpName2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScScGrpName
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScScGrpName2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScScGrpName,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "ExecCtrl_DefaultLGen_1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScScGrpName3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScScGrpName
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScScGrpName3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScScGrpName,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScScGrpName4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScScGrpName
// Params: too few parameters, only 1
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScScGrpName4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScScGrpName,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScScGrpName5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScScGrpName
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScScGrpName5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScScGrpName,
{ {c_ExecCtrl_paramNameScenario, "WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScScGrpName6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScScGrpName
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScScGrpName6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScScGrpName,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStat
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStat,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameStatistic, "CurrentCPS"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameStatistic & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameStatistic & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStat
// Params: too many parameters -one is duplicate
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStat,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameStatistic, "CurrentCPS"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC2"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameStatistic & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameStatistic & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStat
// Params: too few parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStat,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameStatistic & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStat
// Params: too few parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStat,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameStatistic & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStat
// Params: too few parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStat,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameStatistic & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStat
// Params: too few parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStat,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameTrafficCase & "\", \"" & c_ExecCtrl_paramNameStatistic & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStat
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStat,
{ {c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameStatistic, "CurrentCPS"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat8
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStat
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat8() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStat,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameStatistic, "CurrentCPS"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat9
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStat
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat9() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStat,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase, "WrongDefaultTC1"},
{c_ExecCtrl_paramNameStatistic, "CurrentCPS"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Traffic case \"WrongDefaultTC1\" does not exits in the scenario \"DefaultScInScGrp\" of entity group \"DefaultEGrp\". Available traffic cases:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat10
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementTcStat
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat10() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementTcStat,
{ {c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"},
{c_ExecCtrl_paramNameStatistic, "WrongCurrentCPS"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Traffic case statistics \"WrongCurrentCPS\" does not exits. Available TC statNames:{*}*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementCurrentCPS1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementCurrentCPS
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementCurrentCPS1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementCurrentCPS,
{ {c_ExecCtrl_paramNameScenario, "DefaultWSc"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementCurrentCPS2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementCurrentCPS
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementCurrentCPS2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementCurrentCPS,
{ {c_ExecCtrl_paramNameScenario, "DefaultWSc"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "ExecCtrl_DefaultLGen_1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementCurrentCPS3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementCurrentCPS
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementCurrentCPS3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementCurrentCPS,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*" );
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementCurrentCPS4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementCurrentCPS
// Params: too few parameters, only 1
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementCurrentCPS4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementCurrentCPS,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementCurrentCPS5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementCurrentCPS
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementCurrentCPS5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementCurrentCPS,
{ {c_ExecCtrl_paramNameScenario, "WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementCurrentCPS6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementCurrentCPS
// Params: wrong parameter - Scenario should be a wegihted one
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementCurrentCPS6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementCurrentCPS,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter is wrong. Scenario should be weighted: DefaultScInScGrp*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementCurrentCPS7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementCurrentCPS
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementCurrentCPS7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementCurrentCPS,
{ {c_ExecCtrl_paramNameScenario, "DefaultWSc"},
{c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{ * }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGroupOfSc1
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGroupOfSc
// Params: too many parameters
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGroupOfSc1() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGroupOfSc,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameEntityType, c_EPTF_ExecCtrl_Test_defaultETypeName} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameEntityType & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGroupOfSc2
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGroupOfSc
// Params: too many parameters, one is the same kind but with different value
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGroupOfSc2() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGroupOfSc,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "ExecCtrl_DefaultLGen_1"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too many parameters are given: \nReceived: { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*");
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGroupOfSc3
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGroupOfSc
// Params: too few parameters, none
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGroupOfSc3() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGroupOfSc,
{ },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \nReceived: { }\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*" );
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGroupOfSc4
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGroupOfSc
// Params: too few parameters, only 1
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGroupOfSc4() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGroupOfSc,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"} },
"*f_EPTF_ExecCtrl_getParams: Invalid DataSource parameter: Too few parameters are given: \\nReceived: { \"" & c_ExecCtrl_paramNameScenario & "\" }\\nNeeded : { \"" & c_ExecCtrl_paramNameEntityGroup & "\", \"" & c_ExecCtrl_paramNameScenario & "\" }*" );
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGroupOfSc5
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGroupOfSc
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGroupOfSc5() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGroupOfSc,
{ {c_ExecCtrl_paramNameScenario, "WrongDefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Scenario \"WrongDefaultScInScGrp\" does not exits in entity group \"DefaultEGrp\". Available scenarios:{*}*" );
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGroupOfSc6
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGroupOfSc
// Params: wrong parameter
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGroupOfSc6() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGroupOfSc,
{ {c_ExecCtrl_paramNameScenario, "DefaultScInScGrp"},
{c_ExecCtrl_paramNameEntityGroup, "WrongDefaultEGrp"} },
"*f_EPTF_ExecCtrl_DScheckParams: Invalid DataSource parameter: Entity group \"WrongDefaultEGrp\" does not exits. Available entity groups:{*}*" );
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DS_Neg_Wrong_dataElementScGroupOfSc7
//
// Purpose:
// This is a fake negative test case.
// It tests the DataSourceClient function of ExecCtrl with this wrong request:
// Data Element: dataElementScGroupOfSc
// Params: wrong parameter - The Scenario does not belong to any ScenarioGroup
// A proper warning message should appear.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DS_Neg_Wrong_dataElementScGroupOfSc7() runs on ExecCtrlDSClient_Test_CT
{
f_EPTF_ExecCtrl_Test_wrongDataRequest(c_ExecCtrl_dataElementScGroupOfSc,
{ {c_ExecCtrl_paramNameScenario, "DefaultWSc"},
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"}},
"*f_EPTF_ExecCtrl_DSProcessData: Datasource Parameter is wrong. Scenario is not in scenarioGroup: DefaultWSc*" );
}
function f_EPTF_ExecCtrl_Test_wrongDataRequest(in charstring pl_elementName,
in EPTF_DataSource_Params pl_params := {},
in charstring pl_expectedWarning := ""
) runs on ExecCtrlDSClient_Test_CT {
action("f_EPTF_ExecCtrl_Test_wrongDataRequest(",pl_params, " | ",pl_expectedWarning,")");
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("EXECCTRL_DSClient", true, vl_wndLayout);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPoolWithSpecId_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGenWithSpecId)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_init_CT(f_EPTF_Base_selfName(), 0,pl_loadModulepars := true, pl_dataSource_compRef := self);
f_EPTF_ExecCtrl_Test_ExpectedWarning_setExpectedWarning(pl_expectedWarning);
// start the regulators:
var PhaseRegulator_CT vl_regulator1 := PhaseRegulator_CT.create;
vl_regulator1.start(f_EPTF_ExecCtrl_Test_PhaseRegulator_behavior("Regulator 1",self,1.0));
var EPTF_LoadRegulator_CT vl_regulator2 := EPTF_LoadRegulator_CT.create;
vl_regulator2.start(f_ExecCtrl_Regulator_Test_RegulatorBehaviour("Regulator 3",self,1.0));
timer T_guard, T_alt;
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
// wait for regulator start!!!
T_guard.start( 2.0 );
T_guard.timeout;
f_EPTF_ExecCtrl_startAllScenarios();
//Send wrong entitygroup name - kene olyan is, ahol maga a nev van elcseszve
var charstring vl_varName;
var charstring vl_dataProviderName := c_ExecCtrl_DataSource_sourceId;
var integer vl_retCode := 0;
vl_retCode :=f_EPTF_DataSource_getData(
pl_dataVarName := vl_varName,
pl_source := vl_dataProviderName,
pl_ptcName := "EXECCTRL_DSClient",
pl_element := pl_elementName,
pl_params := pl_params
);
if (0!=vl_retCode) {
setverdict(pass, "DataSource query failed as expected with wrong data, dataSource := "&vl_dataProviderName& ", element := " & pl_elementName);
} else {
setverdict(fail, "DataSource query was succesfull but it shouldn't have been with these values ,
dataSource := "&vl_dataProviderName& ", element := " & pl_elementName& ", params := "&log2str(pl_params));
}
timer T_g2;
T_g2.start( 2.0 );
T_g2.timeout;
f_EPTF_Base_cleanup_CT();
}
}
type component ExecCtrl_NewGUITest_CT extends myMTC_UI,ExecCtrlDSClient_Test_CT {
}
testcase tc_ExecCtrl_DS_UIFromXUL_Manual() runs on ExecCtrl_NewGUITest_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("EXECCTRL_DSClient", true, vl_wndLayout,self);
timer t_wait := 0.0, t_maxWait := 5.0;
var charstring vl_dataVarName;
t_maxWait.start;
t_wait.start;
alt {
[0==f_EPTF_DataSource_checkData(
pl_dataVarName := vl_dataVarName,
pl_source := "UIHandler",
pl_ptcName := "",
pl_element := "progressBar",
pl_params := {}
)] t_wait.timeout; // wait for UIHander DS registration
[] t_maxWait.timeout {
setverdict(fail,"Cannot display progress information, UIHandler DS registration timed out");
//f_EPTF_Base_stop(none);
}
}
// var boolean vl_widgetExists;
// f_EPTF_UIHandler_XSD_addElementToGui(
// pl_widgets := {
// hbox := {
// disabled := true,
// flex := omit,
// id := omit,
// orientation := horizontal,
// scrollable := omit,
// embeddedwidgets := {
// embeddedwidget_list := {
// {
// label_ := {
// disabled := omit,
// flex := omit,
// id := omit,
// style := omit,
// value_ := "Progress:",
// externaldata := omit
// }
// },
// {
// textbox := {
// disabled := omit,
// flex := omit,
// id := "ProgressBar",
// multiline := omit,
// readonly := omit,
// rows := omit,
// value_ := omit,
// widgetType := omit,
// wrap := omit,
// externaldata := {
// element := "progressBar",
// ptcname := "",
// source := "UIHandler",
// params := {
// dataparam_list := {}
// }
// }
// }
// }
// }
// }
// }
// },
// pl_parentWidgetID := "EPTF_Main_Window",
// pl_widgetExists := vl_widgetExists,
// pl_updatedb := true
// );
f_EPTF_UIHandler_createGUI("
<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>
<hbox flex='0.0' id='' orientation='horizontal'>
<label flex='0.0' value='Progress:' />
<spacer flex='0.0' />
<textbox id='ProgressBar' flex='1.0' readonly='true' value=''>
<externaldata element='progressBar' source='UIHandler'>
<params>
</params>
</externaldata>
</textbox>
</hbox>
</Widgets>",
"EPTF_Main_Window"
);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups&c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups_IMS,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp_IMS
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPoolWithSpecId_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGenWithSpecId)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups&c_EPTF_ExecCtrl_DefaultScenarios_scGroups_IMS,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
/*f_EPTF_ExecCtrl_UIHandler_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_uiHandler_compRef := self,
pl_EPTF_GUI_Main_Tabbox_WidgetId := c_EPTF_GUI_Main_Tabbox_WidgetId,
pl_createLGenPools := true
);*/
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_ExecCtrl_CLI_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_CLI_compRef := self,
pl_loadModulepars := true,
pl_autoStart := true,
pl_dataSource_compRef := self
);
/*f_EPTF_ExecCtrl_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_loadModulepars := true,
pl_autoStart := true,
pl_dataSource_compRef := self
);*/
// start the regulators:
var PhaseRegulator_CT vl_regulator1 := PhaseRegulator_CT.create;
vl_regulator1.start(f_EPTF_ExecCtrl_Test_PhaseRegulator_behavior("Regulator 1",self,1.0));
var EPTF_LoadRegulator_CT vl_regulator2 := EPTF_LoadRegulator_CT.create;
vl_regulator2.start(f_ExecCtrl_Regulator_Test_RegulatorBehaviour("Regulator 3",self,1.0));
const charstring c_ExecCtrl_DS_tabId := "CustomGUI.tab";
const Tabpage execCtrlTab_Tabs := {
customclass := omit,
disabledongui := omit,
id := c_ExecCtrl_DS_tabId,
label_ :="Custom GUI",
maxheight := omit,
orientation := omit,
tooltiptext := omit,
embeddedwidgets := {{}}
};
var boolean vl_dummyBool;
if(not f_EPTF_UIHandler_XSD_addElementToGui(
{tabpage := execCtrlTab_Tabs},
c_EPTF_GUI_Main_Tabbox_WidgetId,
vl_dummyBool)) {
log(log2str(%definitionId, ": cannot add custom GUI tabs: ", execCtrlTab_Tabs));
}
//const charstring c_ExecCtrl_DS_customGUITabPanelId := "CustomGUI.tabbox";
const charstring c_ExecCtrl_DS_customGUIHBox := "CustomGUI.hbox";
const Tabpage c_tabpage := {
customclass := omit,
disabledongui := omit,
id := "my_tabpage",
label_ := "my_manual_test",
maxheight := omit,
orientation := vertical,
tooltiptext := omit,
embeddedwidgets := {
embeddedwidget_list := {
{hbox := {
customclass := omit,
disabled := omit,
disabledongui := omit,
fixedposition := omit,
flex := omit,
id := c_ExecCtrl_DS_customGUIHBox,
orientation := omit,
scrollable := omit,
embeddedwidgets := {{}}
}
}
}
}
}
f_EPTF_UIHandler_XSD_addElementToGui({tabpage := c_tabpage}, c_EPTF_GUI_Main_Tabbox_WidgetId,vl_dummyBool);
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
// f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun() or v_ready] T_alt.timeout{}
};
// f_EPTF_ExecCtrl_startAllScenarios();
//log(%definitionId&"--bubu-----------------------------------"&f_EPTF_UIHandler_snapshot())
//f_EPTF_UIHandler_clearGUI(); //gui.xml contains window => should start with empty gui
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,""/*c_ExecCtrl_DS_customGUIHBox*/);
timer T_g2;
T_g2.start( 2.0 );
T_g2.timeout;
f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_stop(pass);
}
// this test is the same as the testcase tc_ExecCtrl_DS_UIFromXUL_Manual, but ExecCtrl uses an external StatHandler component
testcase tc_ExecCtrl_DS_UIFromXUL_With_ExternalStatHandler_Manual() runs on ExecCtrl_NewGUITest_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("EXECCTRL_DSClient", true, vl_wndLayout,self);
timer t_wait := 0.0, t_maxWait := 5.0;
var charstring vl_dataVarName;
t_maxWait.start;
t_wait.start;
alt {
[0==f_EPTF_DataSource_checkData(
pl_dataVarName := vl_dataVarName,
pl_source := "UIHandler",
pl_ptcName := "",
pl_element := "progressBar",
pl_params := {}
)] t_wait.timeout; // wait for UIHander DS registration
[] t_maxWait.timeout {
setverdict(fail,"Cannot display progress information, UIHandler DS registration timed out");
//f_EPTF_Base_stop(none);
}
}
// var boolean vl_widgetExists;
// f_EPTF_UIHandler_XSD_addElementToGui(
// pl_widgets := {
// hbox := {
// disabled := true,
// flex := omit,
// id := omit,
// orientation := horizontal,
// scrollable := omit,
// embeddedwidgets := {
// embeddedwidget_list := {
// {
// label_ := {
// disabled := omit,
// flex := omit,
// id := omit,
// style := omit,
// value_ := "Progress:",
// externaldata := omit
// }
// },
// {
// textbox := {
// disabled := omit,
// flex := omit,
// id := "ProgressBar",
// multiline := omit,
// readonly := omit,
// rows := omit,
// value_ := omit,
// widgetType := omit,
// wrap := omit,
// externaldata := {
// element := "progressBar",
// ptcname := "",
// source := "UIHandler",
// params := {
// dataparam_list := {}
// }
// }
// }
// }
// }
// }
// }
// },
// pl_parentWidgetID := "EPTF_Main_Window",
// pl_widgetExists := vl_widgetExists,
// pl_updatedb := true
// );
f_EPTF_UIHandler_createGUI("
<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>
<hbox flex='0.0' id='' orientation='horizontal'>
<label flex='0.0' value='Progress:' />
<spacer flex='0.0' />
<textbox id='ProgressBar' flex='1.0' readonly='true' value=''>
<externaldata element='progressBar' source='UIHandler'>
<params>
</params>
</externaldata>
</textbox>
</hbox>
</Widgets>",
"EPTF_Main_Window"
);
var EPTF_ExecCtrl_LGenPool_Declarators vl_EPTF_ExecCtrl_lgenPoolDeclarators := c_EPTF_ExecCtrl_Test_defaultLGenPoolWithSpecId_DeclaratorsWithFSMStatsLive;
vl_EPTF_ExecCtrl_lgenPoolDeclarators[0].lgenPoolItems[0].num := 8;
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=vl_EPTF_ExecCtrl_lgenPoolDeclarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGenWithSpecIdWithFSMStatsLive)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
/*f_EPTF_ExecCtrl_UIHandler_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_uiHandler_compRef := self,
pl_EPTF_GUI_Main_Tabbox_WidgetId := c_EPTF_GUI_Main_Tabbox_WidgetId,
pl_createLGenPools := true
);*/
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_ExecCtrl_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_loadModulepars := true,
pl_autoStart := true,
pl_dataSource_compRef := self,
pl_nofExternalStatHandlers := 4,
pl_usePullModeForStats := true
);
f_EPTF_ExecCtrl_CLI_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_CLI_compRef := self,
pl_loadModulepars := true,
pl_autoStart := true,
pl_dataSource_compRef := self
);
/*f_EPTF_ExecCtrl_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_loadModulepars := true,
pl_autoStart := true,
pl_dataSource_compRef := self
);*/
// start the regulators:
var PhaseRegulator_CT vl_regulator1 := PhaseRegulator_CT.create;
vl_regulator1.start(f_EPTF_ExecCtrl_Test_PhaseRegulator_behavior("Regulator 1",self,1.0));
var EPTF_LoadRegulator_CT vl_regulator2 := EPTF_LoadRegulator_CT.create;
vl_regulator2.start(f_ExecCtrl_Regulator_Test_RegulatorBehaviour("Regulator 3",self,1.0));
const charstring c_ExecCtrl_DS_tabId := "CustomGUI.tab";
const Tabpage execCtrlTab_Tabs := {
customclass := omit,
disabledongui := omit,
id := c_ExecCtrl_DS_tabId,
label_ :="Custom GUI",
maxheight := omit,
orientation := omit,
tooltiptext := omit,
embeddedwidgets := {{}}
};
var boolean vl_dummyBool;
if(not f_EPTF_UIHandler_XSD_addElementToGui(
{tabpage := execCtrlTab_Tabs},
c_EPTF_GUI_Main_Tabbox_WidgetId,
vl_dummyBool)) {
log(log2str(%definitionId, ": cannot add custom GUI tabs: ", execCtrlTab_Tabs));
}
//const charstring c_ExecCtrl_DS_customGUITabPanelId := "CustomGUI.tabbox";
const charstring c_ExecCtrl_DS_customGUIHBox := "CustomGUI.hbox";
const Tabpage c_tabpage := {
customclass := omit,
disabledongui := omit,
id := "my_tabpage",
label_ := "my_manual_test",
maxheight := omit,
orientation := vertical,
tooltiptext := omit,
embeddedwidgets := {
embeddedwidget_list := {
{hbox := {
customclass := omit,
disabled := omit,
disabledongui := omit,
fixedposition := omit,
flex := omit,
id := c_ExecCtrl_DS_customGUIHBox,
orientation := omit,
scrollable := omit,
embeddedwidgets := {{}}
}
}
}
}
}
f_EPTF_UIHandler_XSD_addElementToGui({tabpage := c_tabpage}, c_EPTF_GUI_Main_Tabbox_WidgetId,vl_dummyBool);
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
// f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun() or v_ready] T_alt.timeout{}
};
// f_EPTF_ExecCtrl_startAllScenarios();
//log(%definitionId&"--bubu-----------------------------------"&f_EPTF_UIHandler_snapshot())
//f_EPTF_UIHandler_clearGUI(); //gui.xml contains window => should start with empty gui
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,""/*c_ExecCtrl_DS_customGUIHBox*/);
timer T_g2;
T_g2.start( 2.0 );
T_g2.timeout;
f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_stop(pass);
}
function f_ExecCtrl_DS_UIFromXUL_With_ExternalStatHandler_LotOfEGrps_main() runs on ExecCtrl_NewGUITest_CT {
// create lot of egrps:
var EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList vl_EPTF_ExecCtrl_EGrpList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList;
// create lof of egrp->sc assignments:
var EPTF_LGenBase_TcMgmt_Scenarios2GrpList vl_EPTF_ExecCtrl_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList;
// add all egrps to LgenPool:
var EPTF_ExecCtrl_EntityGroup2LGenPool_List vl_EPTF_ExecCtrl_EntityGroup2LGenPool_List := c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List;
for(var integer i :=1; i<50; i:=i+1) {
vl_EPTF_ExecCtrl_EGrpList := vl_EPTF_ExecCtrl_EGrpList&{vl_EPTF_ExecCtrl_EGrpList[0]};
vl_EPTF_ExecCtrl_EGrpList[i].name := vl_EPTF_ExecCtrl_EGrpList[i].name & int2str(i);
vl_EPTF_ExecCtrl_Scenarios2GrpList := vl_EPTF_ExecCtrl_Scenarios2GrpList&{vl_EPTF_ExecCtrl_Scenarios2GrpList[0]};
vl_EPTF_ExecCtrl_Scenarios2GrpList[2*i].eGrpName := vl_EPTF_ExecCtrl_Scenarios2GrpList[2*i].eGrpName & int2str(i);
vl_EPTF_ExecCtrl_Scenarios2GrpList := vl_EPTF_ExecCtrl_Scenarios2GrpList&{vl_EPTF_ExecCtrl_Scenarios2GrpList[1]};
vl_EPTF_ExecCtrl_Scenarios2GrpList[2*i+1].eGrpName := vl_EPTF_ExecCtrl_Scenarios2GrpList[2*i+1].eGrpName & int2str(i);
vl_EPTF_ExecCtrl_EntityGroup2LGenPool_List := vl_EPTF_ExecCtrl_EntityGroup2LGenPool_List&{vl_EPTF_ExecCtrl_EntityGroup2LGenPool_List[0]};
vl_EPTF_ExecCtrl_EntityGroup2LGenPool_List[i].eGrpName := vl_EPTF_ExecCtrl_EntityGroup2LGenPool_List[i].eGrpName&int2str(i);
}
// set CPS to 1.0:
var float vl_targetCPS := 1.0;
var EPTF_LGenBase_ScenarioTypeDeclarator vl_EPTF_ExecCtrl_normalScenario := c_EPTF_ExecCtrl_DefaultScenarios_normalScenario;
vl_EPTF_ExecCtrl_normalScenario.tcList[0].tcParamsList[3].target.cpsToReach := vl_targetCPS;
vl_EPTF_ExecCtrl_normalScenario.tcList[1].tcParamsList[3].target.cpsToReach := vl_targetCPS;
var EPTF_LGenBase_ScenarioTypeDeclarator vl_EPTF_ExecCtrl_weightedScenario := c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario;
vl_EPTF_ExecCtrl_weightedScenario.scParamsList[0].weightedScData.cpsToReach := vl_targetCPS;
var EPTF_LGenBase_ScenarioTypeDeclarator vl_EPTF_ExecCtrl_normalScenarioInScGrp := c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp;
vl_EPTF_ExecCtrl_normalScenarioInScGrp.tcList[0].tcParamsList[3].target.cpsToReach := vl_targetCPS;
vl_EPTF_ExecCtrl_normalScenarioInScGrp.tcList[1].tcParamsList[3].target.cpsToReach := vl_targetCPS;
var EPTF_LGenBase_ScenarioTypeDeclarator vl_EPTF_ExecCtrl_weightedScenarioInScGrp := c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp;
vl_EPTF_ExecCtrl_weightedScenarioInScGrp.scParamsList[0].weightedScData.cpsToReach := vl_targetCPS;
var EPTF_ExecCtrl_LGenPool_Declarators vl_EPTF_ExecCtrl_lgenPoolDeclarators := c_EPTF_ExecCtrl_Test_defaultLGenPoolWithSpecId_DeclaratorsWithFSMStatsLive;
vl_EPTF_ExecCtrl_lgenPoolDeclarators[0].lgenPoolItems[0].num := 8;
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := vl_EPTF_ExecCtrl_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := vl_EPTF_ExecCtrl_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
vl_EPTF_ExecCtrl_normalScenario,vl_EPTF_ExecCtrl_weightedScenario,
vl_EPTF_ExecCtrl_normalScenarioInScGrp,vl_EPTF_ExecCtrl_weightedScenarioInScGrp
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=vl_EPTF_ExecCtrl_lgenPoolDeclarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=vl_EPTF_ExecCtrl_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGenWithSpecIdWithFSMStatsLive)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_ExecCtrl_CLI_init_CT(
pl_selfName := "ExecCtrl",
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_CLI_compRef := mtc,
pl_loadModulepars := true,
pl_autoStart := true,
pl_dataSource_compRef := mtc,
pl_nofExternalStatHandlers := 4,
pl_usePullModeForStats := true
);
}
function f_ExecCtrl_DS_UIFromXUL_With_ExternalStatHandler_LotOfEGrps_execCtrlBehaviour() runs on ExecCtrl_NewGUITest_CT {
f_ExecCtrl_DS_UIFromXUL_With_ExternalStatHandler_LotOfEGrps_main();
f_EPTF_Base_wait4Shutdown();
}
function f_EPTF_ExecCtrl_Test_checkReadyToRun() runs on ExecCtrl_NewGUITest_CT return boolean {
var EPTF_Var_DirectContent vl_value;
f_EPTF_DataSource_getDataValue(
pl_dataValue := vl_value,
pl_source := "ExecCtrl",
pl_ptcName := "",
pl_element := "ReadyToRun",
pl_params := {}
);
return vl_value == {statusLEDVal := {led_green, "ReadyToRun"}};
}
// this test is the same as the testcase tc_ExecCtrl_DS_UIFromXUL_With_ExternalStatHandler_Manual, but with lot of entity groups
testcase tc_ExecCtrl_DS_UIFromXUL_With_ExternalStatHandler_LotOfEGrps_Manual() runs on ExecCtrl_NewGUITest_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("EXECCTRL_DSClient", true, vl_wndLayout,self);
timer t_wait := 0.0, t_maxWait := 5.0;
var charstring vl_dataVarName;
t_maxWait.start;
t_wait.start;
alt {
[0==f_EPTF_DataSource_checkData(
pl_dataVarName := vl_dataVarName,
pl_source := "UIHandler",
pl_ptcName := "",
pl_element := "progressBar",
pl_params := {}
)] t_wait.timeout; // wait for UIHander DS registration
[] t_maxWait.timeout {
setverdict(fail,"Cannot display progress information, UIHandler DS registration timed out");
//f_EPTF_Base_stop(none);
}
}
f_EPTF_UIHandler_createGUI("
<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>
<hbox flex='0.0' id='' orientation='horizontal'>
<label flex='0.0' value='Progress:' />
<spacer flex='0.0' />
<textbox id='ProgressBar' flex='1.0' readonly='true' value=''>
<externaldata element='progressBar' source='UIHandler'>
<params>
</params>
</externaldata>
</textbox>
</hbox>
</Widgets>",
"EPTF_Main_Window"
);
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
var ExecCtrl_NewGUITest_CT vl_execCtrl := ExecCtrl_NewGUITest_CT.create;
vl_execCtrl.start(f_ExecCtrl_DS_UIFromXUL_With_ExternalStatHandler_LotOfEGrps_execCtrlBehaviour());
//var ExecCtrl_NewGUITest_CT vl_execCtrl := self;
//f_ExecCtrl_DS_UIFromXUL_With_ExternalStatHandler_LotOfEGrps_main();
// start the regulators:
var PhaseRegulator_CT vl_regulator1 := PhaseRegulator_CT.create;
vl_regulator1.start(f_EPTF_ExecCtrl_Test_PhaseRegulator_behavior("Regulator 1",vl_execCtrl,1.0));
var EPTF_LoadRegulator_CT vl_regulator2 := EPTF_LoadRegulator_CT.create;
vl_regulator2.start(f_ExecCtrl_Regulator_Test_RegulatorBehaviour("Regulator 3",vl_execCtrl,1.0));
const charstring c_ExecCtrl_DS_tabId := "CustomGUI.tab";
const Tabpage execCtrlTab_Tabs := {
customclass := omit,
disabledongui := omit,
id := c_ExecCtrl_DS_tabId,
label_ :="Custom GUI",
maxheight := omit,
orientation := omit,
tooltiptext := omit,
embeddedwidgets := {{}}
};
var boolean vl_dummyBool;
if(not f_EPTF_UIHandler_XSD_addElementToGui(
{tabpage := execCtrlTab_Tabs},
c_EPTF_GUI_Main_Tabbox_WidgetId,
vl_dummyBool)) {
log(log2str(%definitionId, ": cannot add custom GUI tabs: ", execCtrlTab_Tabs));
}
//const charstring c_ExecCtrl_DS_customGUITabPanelId := "CustomGUI.tabbox";
const charstring c_ExecCtrl_DS_customGUIHBox := "CustomGUI.hbox";
const Tabpage c_tabpage := {
customclass := omit,
disabledongui := omit,
id := "my_tabpage",
label_ := "my_manual_test",
maxheight := omit,
orientation := vertical,
tooltiptext := omit,
embeddedwidgets := {
embeddedwidget_list := {
{hbox := {
customclass := omit,
disabled := omit,
disabledongui := omit,
fixedposition := omit,
flex := omit,
id := c_ExecCtrl_DS_customGUIHBox,
orientation := omit,
scrollable := omit,
embeddedwidgets := {{}}
}
}
}
}
}
f_EPTF_UIHandler_XSD_addElementToGui({tabpage := c_tabpage}, c_EPTF_GUI_Main_Tabbox_WidgetId,vl_dummyBool);
timer T_guard, T_alt;
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
// f_EPTF_Base_stopAll();
}
[v_ready and f_EPTF_ExecCtrl_Test_checkReadyToRun()] T_alt.timeout{}
};
// f_EPTF_ExecCtrl_startAllScenarios();
//log(%definitionId&"--bubu-----------------------------------"&f_EPTF_UIHandler_snapshot())
//f_EPTF_UIHandler_clearGUI(); //gui.xml contains window => should start with empty gui
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,""/*c_ExecCtrl_DS_customGUIHBox*/);
timer T_g2;
T_g2.start( 2.0 );
T_g2.timeout;
f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_stop(pass);
}
testcase tc_EPTF_ExecCtrl_Test_currentCPSWithNewGUI() runs on myMTC_UI
{
f_EPTF_ExecCtrl_Test_currentCPSWithNewGUI(
"<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"&
"<window height='200.000000' id='EPTF_Main_Window' orientation='vertical' title='TTCN constructed window' width='600.000000'>"&
"<hbox id='EPTF_Main_hbox' orientation='vertical'>
<hbox id='Params' orientation='vertical'>
<label disabled='false' flex='0.000000' value='Current CPS'/>
<textbox flex='1.000000' id='textBox1' multiline='false' readonly='true' value=''>
<externaldata element='"&c_ExecCtrl_dataElementCurrentCPS&"' source='ExecCtrl' ptcname='SimpleExecCtrl'>
<params>
<dataparam name='"&c_ExecCtrl_paramNameEntityGroup&"' value='DefaultEGrp'></dataparam>
<dataparam name='"&c_ExecCtrl_paramNameScenario&"' value='DefaultWSc'></dataparam>
</params>
</externaldata>
</textbox>
</hbox>
</hbox>
</window>"
&"</Widgets>"
)
}
testcase tc_EPTF_ExecCtrl_Test_newGUItcList() runs on myMTC_UI
{
f_EPTF_ExecCtrl_Test_currentCPSWithNewGUI(
"<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>
<window height='300.000000' id='EPTF_Main_Window' orientation='vertical'
title='TTCN constructed window' width='600.000000'>
<hbox id='EPTF_Main_hbox' orientation='vertical'>
<tree disabled='false' flex='1.000000' hidecolumnpicker='true'
id='mainTree' rows='1.000000'>
<treecols>
<treecol editable='false' flex='1.000000' label='Name'
widgetType='string' />
<treecol editable='false' flex='1.000000' label='State'
widgetType='statusLED' />
<treecol editable='false' flex='1.000000' label='CPS'
widgetType='floatField' />
</treecols>
<treechildren>
<treeitem>
<iterator element='EntityGroups' id='EGrp'
source='ExecCtrl'>
<iterator element='Scenarios' id='Scenario'
source='ExecCtrl'>
<params>
<dataparam name='EntityGroup' value='%EGrp%'></dataparam>
</params>
<iterator element='TrafficCases' id='TC'
source='ExecCtrl'>
<params>
<dataparam name='EntityGroup' value='%EGrp%'></dataparam>
<dataparam name='Scenario' value='%Scenario%'></dataparam>
</params>
<treerow>
<treecell label='%EGrp%.%Scenario%.TC' />
<treecell id='%EGrp%.%Scenario%.%TC%.CPS'>
<externaldata element='TcStatus' source='ExecCtrl'>
<params>
<dataparam name='EntityGroup' value='%EGrp%'></dataparam>
<dataparam name='Scenario' value='%Scenario%'></dataparam>
<dataparam name='TrafficCase' value='%TC%'></dataparam>
</params>
</externaldata>
</treecell>
<treecell id='%EGrp%.%Scenario%.%TC%.CurrentCPS'
label='' tooltiptext='Current CPS'>
<externaldata element='TcStat' source='ExecCtrl'>
<params>
<dataparam name='EntityGroup' value='%EGrp%'></dataparam>
<dataparam name='Scenario' value='%Scenario%'></dataparam>
<dataparam name='TrafficCase' value='%TC%'></dataparam>
<dataparam name='Statistic' value='CurrentCPS'></dataparam>
</params>
</externaldata>
</treecell>
</treerow>
</iterator>
</iterator>
</iterator>
</treeitem>
</treechildren>
</tree>
</hbox>
</window>
</Widgets>
"
)
}
function f_EPTF_ExecCtrl_Test_currentCPSWithNewGUI(
in charstring pl_gui)
runs on myMTC_UI{
f_EPTF_UIHandler_init_CT("Current_CPS_with_new_GUI");
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_simpleBehavior(mtc, "SimpleExecCtrl"));
var charstring vl_dataVarName; //dummy for output
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
timer T_guard, T_alt;
T_alt.start( 0.0 );
T_guard.start( 15.0 );
// wait until ExecCtrl DataSource is registered
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[v_ready] T_alt.timeout{}
}
// create gui
f_EPTF_UIHandler_createGUI(pl_gui);
timer T_dummy;
T_dummy.start( 30.0 );
T_dummy.timeout;
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_ExecCtrlNewGUI_GUIfromFile_Manual() runs on myMTC_UI
{
f_EPTF_UIHandler_init_CT("ExecCtrlNewGUI_GUIfromFile");
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_simpleBehavior(mtc, "SimpleExecCtrl"));
var charstring vl_dataVarName; //dummy for output
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
timer T_guard, T_alt;
T_alt.start( 0.0 );
T_guard.start( 15.0 );
// wait until ExecCtrl DataSource is registered
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[v_ready] T_alt.timeout{}
}
// create gui
action(log2str(v_ready));
action(" ExecCtrl ready, starting reading GUI.xml");
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName);
timer T_dummy;
T_dummy.start( 30.0 );
T_dummy.timeout;
setverdict(pass);
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_IteratorZeroResult() runs on myMTC_UI
{
var charstring vl_gui :=
"<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>
<window height='300.000000' id='EPTF_Main_Window' orientation='vertical'
title='TTCN constructed window' width='600.000000'>
<hbox id='EPTF_Main_hbox' orientation='vertical'>
<tree disabled='false' hidecolumnpicker='false'
id='Execution_Control.PhaseLists.tabbox.DefaultPhases.tab.mainTable'
rows='1.000000'>
<treecols>
<iterator id='Phase' source='ExecCtrl' element='Phases'>
<treecol editable='true' flex='0.100000'
label='%Phase%' widgetType='checkBox' />
</iterator>
</treecols>
<treechildren>
<treeitem>
<treerow>
<iterator id='Phase' source='ExecCtrl' element='Phases'>
<treecell
id='Execution_Control.PhaseLists.tabbox.DefaultPhases.tab.mainTable.%Phase%'
label='true' />
</iterator>
</treerow>
</treeitem>
</treechildren>
</tree>
</hbox>
</window>
</Widgets>
";
var charstring vl_expected_gui :=
"<tq0001:Widgets xmlns:tq0001='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>
<tq0001:window height='300.000000' id='EPTF_Main_Window' orientation='vertical' title='TTCN constructed window' width='600.000000'>
<tq0001:hbox flex='1.000000' id='EPTF_Main_hbox' orientation='vertical'>
<tq0001:tree hidecolumnpicker='true' id='Execution_Control.PhaseLists.tabbox.DefaultPhases.tab.mainTable' rows='1.000000'>
<tq0001:treecols/>
<tq0001:treechildren>
<tq0001:treeitem>
<tq0001:treerow/>
</tq0001:treeitem>
</tq0001:treechildren>
</tq0001:tree>
</tq0001:hbox>
</tq0001:window>
</tq0001:Widgets>
";
var charstring vl_expected_gui_noGUI :=
"<tq0001:Widgets xmlns:tq0001='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>
<tq0001:window height='300.000000' id='EPTF_Main_Window' orientation='vertical' title='TTCN constructed window' width='600.000000'>
<tq0001:hbox id='EPTF_Main_hbox' orientation='vertical'>
<tq0001:tree disabled='false' hidecolumnpicker='false' id='Execution_Control.PhaseLists.tabbox.DefaultPhases.tab.mainTable' rows='1.000000'>
<tq0001:treecols/>
<tq0001:treechildren>
<tq0001:treeitem>
</tq0001:treeitem>
</tq0001:treechildren>
</tq0001:tree>
</tq0001:hbox>
</tq0001:window>
</tq0001:Widgets>
";
f_EPTF_UIHandler_init_CT("ExecCtrlIteratorZeroResult");
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_simpleBehaviorWithoutPhases(mtc, "SimpleExecCtrl"));
var charstring vl_dataVarName; //dummy for output
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
timer T_guard, T_alt;
T_alt.start( 0.0 );
T_guard.start( 15.0 );
// wait until ExecCtrl DataSource is registered
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[v_ready] T_alt.timeout{}
}
// create gui
action(" ExecCtrl ready, starting create GUI");
f_EPTF_UIHandler_createGUI(vl_gui);
timer T_dummy;
T_dummy.start( 30.0 );
T_dummy.timeout;
var charstring vl_snapshot := f_EPTF_UIHandler_snapshot();
if (f_EPTF_UIHandler_GUIConnected()) {
// GUI present
if(not match(f_EPTF_UIHandler_XSD_decodeXUL(vl_snapshot), f_EPTF_UIHandler_XSD_decodeXUL(vl_expected_gui))){
setverdict(fail, match(f_EPTF_UIHandler_XSD_decodeXUL(vl_snapshot), f_EPTF_UIHandler_XSD_decodeXUL(vl_expected_gui)));
}else {
setverdict(pass);
}
} else {
// no GUI
if(not match(f_EPTF_UIHandler_XSD_decodeXUL(vl_snapshot), f_EPTF_UIHandler_XSD_decodeXUL(vl_expected_gui_noGUI))){
setverdict(fail, match(f_EPTF_UIHandler_XSD_decodeXUL(vl_snapshot), f_EPTF_UIHandler_XSD_decodeXUL(vl_expected_gui_noGUI)));
}else {
setverdict(pass);
}
}
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_ExternalData_TimeElapsed() runs on myMTC_UI
{
var charstring vl_gui :=
"<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>
<window height='300.000000' id='EPTF_Main_Window' orientation='vertical'
title='TTCN constructed window' width='600.000000'>
<image id='image_ok'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABGdBTUEAAK/INwWK6QAAABl0RVh0&#x0D;&#x0A;U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAKTSURBVHjaYvz//z8DLQBAADEx0AgABBDN&#x0D;&#x0A;DAYIIBZGRkaqGca3ikGBlYmhnpWZIQAggBgZFzLsBwZzIUMCwwWyTZzPoMAANJCZEWgKA8MHZmYG&#x0D;&#x0A;R4AAYmSYzfAeLPmPwZEhnUTDZwINZGSo5+LgSvj28xsDkP0AiAMZkhkuAAQQE8Mvhg3ifOICDH8Y&#x0D;&#x0A;9jNMZjAgysBJQAOnMMznYOa472DokKAiosIANOcCw28GQ5ChICUAAQQyeCPQFgYzBzMBoMR+hh48&#x0D;&#x0A;hvcADexlmM/KzHpf01gzwSPUg+HKjSsMl25eOgB0mCNDJsMHmFKAAGJg6GIQYOhg+K/9Xfu/xGWJ&#x0D;&#x0A;/0D2e4Y2NMNbgQa2M8xn6mf6L3hE8L/GDw2weu553P8ZOoEhjAUABBAkSTQx7GcOZXZgUmdi+HPx&#x0D;&#x0A;D8P/Tf8/MPwHuuA/0AXAMGTgBEaKOQMDixkLAyMHUMsLBoY/i4Hqfv5fwFDHkIjNYIAAYgGTPxk2&#x0D;&#x0A;/r301+Gv/F8GBnUg3w3oiy3AYGEH0mZAPghzAA0DQoaHQPYSsJ5EhhaGBbhCDSCAIC4uA3qVjeE+&#x0D;&#x0A;QwGSzCsg5gdidiSxK0C8hwEUUYnAIFyAL34BAgiRO/KABscDLRDDofIqEG8DBg0TMIgmEE6WAAHE&#x0D;&#x0A;DGcZAg1lZ7BgkGAA+RkVg1y5H2goKK1PIS6tAwQQoqz4xXAQ7KrvaHgjEJ8AGvaHQZFhOvEZCCCA&#x0D;&#x0A;UAuKGGBSiwdGGC84ckBeZ2B4CjSMEejSxchplDAACCDU0u0/wwFgSDMwfATitUD8BBhB/0k3FAQA&#x0D;&#x0A;AogZhacHTLGfGQIYbgHZ74CGLgXG/mWGH+SUSwABhIqigcEQDXRjNErCIwsABBAjraomgACiWQ0C&#x0D;&#x0A;EEA0MxggwAAC5K2bqnDzRQAAAABJRU5ErkJggg==' />
<image id='image_configure'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAACXBIWXMAAAsTAAALEwEAmpwYAAAK&#x0D;&#x0A;OWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanZZ3VFTXFofPvXd6oc0wAlKG3rvAANJ7k15F&#x0D;&#x0A;YZgZYCgDDjM0sSGiAhFFRJoiSFDEgNFQJFZEsRAUVLAHJAgoMRhFVCxvRtaLrqy89/Ly++Osb+2z&#x0D;&#x0A;97n77L3PWhcAkqcvl5cGSwGQyhPwgzyc6RGRUXTsAIABHmCAKQBMVka6X7B7CBDJy82FniFyAl8E&#x0D;&#x0A;AfB6WLwCcNPQM4BOB/+fpFnpfIHomAARm7M5GSwRF4g4JUuQLrbPipgalyxmGCVmvihBEcuJOWGR&#x0D;&#x0A;DT77LLKjmNmpPLaIxTmns1PZYu4V8bZMIUfEiK+ICzO5nCwR3xKxRoowlSviN+LYVA4zAwAUSWwX&#x0D;&#x0A;cFiJIjYRMYkfEuQi4uUA4EgJX3HcVyzgZAvEl3JJS8/hcxMSBXQdli7d1NqaQffkZKVwBALDACYr&#x0D;&#x0A;mcln013SUtOZvBwAFu/8WTLi2tJFRbY0tba0NDQzMv2qUP91829K3NtFehn4uWcQrf+L7a/80hoA&#x0D;&#x0A;YMyJarPziy2uCoDOLQDI3fti0zgAgKSobx3Xv7oPTTwviQJBuo2xcVZWlhGXwzISF/QP/U+Hv6Gv&#x0D;&#x0A;vmckPu6P8tBdOfFMYYqALq4bKy0lTcinZ6QzWRy64Z+H+B8H/nUeBkGceA6fwxNFhImmjMtLELWb&#x0D;&#x0A;x+YKuGk8Opf3n5r4D8P+pMW5FonS+BFQY4yA1HUqQH7tBygKESDR+8Vd/6NvvvgwIH554SqTi3P/&#x0D;&#x0A;7zf9Z8Gl4iWDm/A5ziUohM4S8jMX98TPEqABAUgCKpAHykAd6ABDYAasgC1wBG7AG/iDEBAJVgMW&#x0D;&#x0A;SASpgA+yQB7YBApBMdgJ9oBqUAcaQTNoBcdBJzgFzoNL4Bq4AW6D+2AUTIBnYBa8BgsQBGEhMkSB&#x0D;&#x0A;5CEVSBPSh8wgBmQPuUG+UBAUCcVCCRAPEkJ50GaoGCqDqqF6qBn6HjoJnYeuQIPQXWgMmoZ+h97B&#x0D;&#x0A;CEyCqbASrAUbwwzYCfaBQ+BVcAK8Bs6FC+AdcCXcAB+FO+Dz8DX4NjwKP4PnEIAQERqiihgiDMQF&#x0D;&#x0A;8UeikHiEj6xHipAKpAFpRbqRPuQmMorMIG9RGBQFRUcZomxRnqhQFAu1BrUeVYKqRh1GdaB6UTdR&#x0D;&#x0A;Y6hZ1Ec0Ga2I1kfboL3QEegEdBa6EF2BbkK3oy+ib6Mn0K8xGAwNo42xwnhiIjFJmLWYEsw+TBvm&#x0D;&#x0A;HGYQM46Zw2Kx8lh9rB3WH8vECrCF2CrsUexZ7BB2AvsGR8Sp4Mxw7rgoHA+Xj6vAHcGdwQ3hJnEL&#x0D;&#x0A;eCm8Jt4G749n43PwpfhGfDf+On4Cv0CQJmgT7AghhCTCJkIloZVwkfCA8JJIJKoRrYmBRC5xI7GS&#x0D;&#x0A;eIx4mThGfEuSIemRXEjRJCFpB+kQ6RzpLuklmUzWIjuSo8gC8g5yM/kC+RH5jQRFwkjCS4ItsUGi&#x0D;&#x0A;RqJDYkjiuSReUlPSSXK1ZK5kheQJyeuSM1J4KS0pFymm1HqpGqmTUiNSc9IUaVNpf+lU6RLpI9JX&#x0D;&#x0A;pKdksDJaMm4ybJkCmYMyF2TGKQhFneJCYVE2UxopFykTVAxVm+pFTaIWU7+jDlBnZWVkl8mGyWbL&#x0D;&#x0A;1sielh2lITQtmhcthVZKO04bpr1borTEaQlnyfYlrUuGlszLLZVzlOPIFcm1yd2WeydPl3eTT5bf&#x0D;&#x0A;Jd8p/1ABpaCnEKiQpbBf4aLCzFLqUtulrKVFS48vvacIK+opBimuVTyo2K84p6Ss5KGUrlSldEFp&#x0D;&#x0A;Rpmm7KicpFyufEZ5WoWiYq/CVSlXOavylC5Ld6Kn0CvpvfRZVUVVT1Whar3qgOqCmrZaqFq+Wpva&#x0D;&#x0A;Q3WCOkM9Xr1cvUd9VkNFw08jT6NF454mXpOhmai5V7NPc15LWytca6tWp9aUtpy2l3audov2Ax2y&#x0D;&#x0A;joPOGp0GnVu6GF2GbrLuPt0berCehV6iXo3edX1Y31Kfq79Pf9AAbWBtwDNoMBgxJBk6GWYathiO&#x0D;&#x0A;GdGMfI3yjTqNnhtrGEcZ7zLuM/5oYmGSYtJoct9UxtTbNN+02/R3Mz0zllmN2S1zsrm7+QbzLvMX&#x0D;&#x0A;y/SXcZbtX3bHgmLhZ7HVosfig6WVJd+y1XLaSsMq1qrWaoRBZQQwShiXrdHWztYbrE9Zv7WxtBHY&#x0D;&#x0A;HLf5zdbQNtn2iO3Ucu3lnOWNy8ft1OyYdvV2o/Z0+1j7A/ajDqoOTIcGh8eO6o5sxybHSSddpySn&#x0D;&#x0A;o07PnU2c+c7tzvMuNi7rXM65Iq4erkWuA24ybqFu1W6P3NXcE9xb3Gc9LDzWepzzRHv6eO7yHPFS&#x0D;&#x0A;8mJ5NXvNelt5r/Pu9SH5BPtU+zz21fPl+3b7wX7efrv9HqzQXMFb0ekP/L38d/s/DNAOWBPwYyAm&#x0D;&#x0A;MCCwJvBJkGlQXlBfMCU4JvhI8OsQ55DSkPuhOqHC0J4wybDosOaw+XDX8LLw0QjjiHUR1yIVIrmR&#x0D;&#x0A;XVHYqLCopqi5lW4r96yciLaILoweXqW9KnvVldUKq1NWn46RjGHGnIhFx4bHHol9z/RnNjDn4rzi&#x0D;&#x0A;auNmWS6svaxnbEd2OXuaY8cp40zG28WXxU8l2CXsTphOdEisSJzhunCruS+SPJPqkuaT/ZMPJX9K&#x0D;&#x0A;CU9pS8Wlxqae5Mnwknm9acpp2WmD6frphemja2zW7Fkzy/fhN2VAGasyugRU0c9Uv1BHuEU4lmmf&#x0D;&#x0A;WZP5Jiss60S2dDYvuz9HL2d7zmSue+63a1FrWWt78lTzNuWNrXNaV78eWh+3vmeD+oaCDRMbPTYe&#x0D;&#x0A;3kTYlLzpp3yT/LL8V5vDN3cXKBVsLBjf4rGlpVCikF84stV2a9021DbutoHt5turtn8sYhddLTYp&#x0D;&#x0A;rih+X8IqufqN6TeV33zaEb9joNSydP9OzE7ezuFdDrsOl0mX5ZaN7/bb3VFOLy8qf7UnZs+VimUV&#x0D;&#x0A;dXsJe4V7Ryt9K7uqNKp2Vr2vTqy+XeNc01arWLu9dn4fe9/Qfsf9rXVKdcV17w5wD9yp96jvaNBq&#x0D;&#x0A;qDiIOZh58EljWGPft4xvm5sUmoqbPhziHRo9HHS4t9mqufmI4pHSFrhF2DJ9NProje9cv+tqNWyt&#x0D;&#x0A;b6O1FR8Dx4THnn4f+/3wcZ/jPScYJ1p/0Pyhtp3SXtQBdeR0zHYmdo52RXYNnvQ+2dNt293+o9GP&#x0D;&#x0A;h06pnqo5LXu69AzhTMGZT2dzz86dSz83cz7h/HhPTM/9CxEXbvUG9g5c9Ll4+ZL7pQt9Tn1nL9td&#x0D;&#x0A;PnXF5srJq4yrndcsr3X0W/S3/2TxU/uA5UDHdavrXTesb3QPLh88M+QwdP6m681Lt7xuXbu94vbg&#x0D;&#x0A;cOjwnZHokdE77DtTd1PuvriXeW/h/sYH6AdFD6UeVjxSfNTws+7PbaOWo6fHXMf6Hwc/vj/OGn/2&#x0D;&#x0A;S8Yv7ycKnpCfVEyqTDZPmU2dmnafvvF05dOJZ+nPFmYKf5X+tfa5zvMffnP8rX82YnbiBf/Fp99L&#x0D;&#x0A;Xsq/PPRq2aueuYC5R69TXy/MF72Rf3P4LeNt37vwd5MLWe+x7ys/6H7o/ujz8cGn1E+f/gUDmPP8&#x0D;&#x0A;kcBa2wAAAARnQU1BAACxjnz7UZMAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgA&#x0D;&#x0A;ABdvkl/FRgAABAZJREFUeNpiZEADO3YcP8/Pz20gJMTP8P37T4ZPn74yfPv2fcG/f/8bvbysHzAQ&#x0D;&#x0A;CQACCANt2nRo/rlzN/4jgzdvPvzfvfvk//XrDyQQaw5AAGFFq1btmX/y5BUUw3/9+v1/584T/1es&#x0D;&#x0A;2OVAjBkAAYQTLV68bf6RIxdQDP/48cv/RYu23idGP0AAMcycuW7+jBlrDbDJzZ69fv2FC7fgBv8D&#x0D;&#x0A;BvSePSf/A/UYEDIXIICY2NhYExgZGfdPmLAMRTGIz8XF6aCkJM3w589fMP779x+DoCAfw8+fvwgG&#x0D;&#x0A;B0AAAQ1mYfDwsBQAGd7RsQBsOIjm4+Pe7+5uIcDMzMQADF+QYWDMwsLM8OPHLwFCBgMEEBNQEQPQ&#x0D;&#x0A;EAZPTyuw4Q0NsxIghloKMDExAQ37Dca/fv0B46dPX4MsIJjsAAKICZiUPkAM5wEbLikpMh/kA2Zm&#x0D;&#x0A;ZrBL0fH9+89A6ZugwQABxKynZ6/BycluICIiwMDBwc6gqirLAHLp379/UTDI1U+fvmIQExNkuH37&#x0D;&#x0A;scG8iIecuV5iNyZve/0Dm8EAAcQEdEXjnj2nPrx58x7ubQj+A8ffv/9iePDgGcPnz98YgImDIUz7&#x0D;&#x0A;igGbOGv/7z8M+y/3a6GEN1AezAcIIEYQkZLSAkwBHPttbQ0E1NTkgBHEAlMGJkFZ+zfQFFZWFgbG&#x0D;&#x0A;61MZ+H7tZWB/94KBVUeG4fmVfxf+/WNwNCm/9gHZAoAAYoQxYmJqDYC29QPLCAdxcSEGHh5OBmCG&#x0D;&#x0A;AEeYj48NAz8/D8P3cxMYuL/tZBD89pJBhPk3w0cGVobvCtIMjy79BxtuXYswHCCAGNHDJjS0QgFI&#x0D;&#x0A;gTAorR4AYgFxceH5EQYPBAR+72GQZHvLIMDGwMAE1fnpDyPDZ34RhtsXGIGG/3d0br4ONhwggBiJ&#x0D;&#x0A;yZ1rSo0b5GW+12tIf2DgZmNmYETT9e3nX4a3/3kZrp1nArvcq+P6B4AAIsrgreWaAkAN+/WN/xnI&#x0D;&#x0A;Sv2H+hWq9ddfcFyAcuXzN6wM584xgw0HCCAmYgz27rz+ARjUjiePM1148BgowMfBwMDPCZEEpiCG&#x0D;&#x0A;l58YmJ9/ZJDh/c6gqfbb4PdfhvkAAcREbGkX3H/9w+8//x2PHmG6cPciMOnysDMwfAbSX34yMLz+&#x0D;&#x0A;zMDw+x8Dw8O3DKoS3xlYWf4GAAQQEylFadTUG0DDGRwPHmK6cGv/OwYGoPeBgc7A8OMPKKAhqROY&#x0D;&#x0A;5tmY/zEABBATqeV04myg4X8ZHPceZL5w4wrQwA/fGBicNRgYxHjBlvz88pfh+VumDwABxExOJbDl&#x0D;&#x0A;wpsfrtrCK2+/YPdg//tbQvLTS6CrQbkVWLVdEGR4/YWlEyCAGCmpZTpD1UGpZT0f+x8Hfo4/DK++&#x0D;&#x0A;sn349ZdpYsWamw0AAQYA0lMHydArgUYAAAAASUVORK5CYII=' />
<image id='image_play'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI&#x0D;&#x0A;WXMAAAsMAAALDAE/QCLIAAAAB3RJTUUH0woJEyQqW/WmUwAABHxJREFUeNqFld1vlEUUh5+Z92O/&#x0D;&#x0A;utstLZYiLAViCKlA3YoGEz+CUVOJJqIxfsW7Ergg4Yb4ByjpH6CmF69y4U0v5NIEI8YbgoRQltSK&#x0D;&#x0A;GBILlCrtbrvdfZft7vs148WWpTW0TnIymcyZJ79zcs4ZwQYrf2LSAr0ZVB9aJ0EDuoFWc5Zyi1ec&#x0D;&#x0A;1/z13ooNoIeA90EPIsghrBQAyltGR/eASaHCc3l99pLjONH/gvMnJneDOIVhfdSRSma39GRkb3ec&#x0D;&#x0A;PT01ElbEX+UO7hQVC6WSKlcbDRU2Lln6wRf79fhlx3HCx4LzJyZ3gBjDzgwP7krw5sE0+7Zrnsha&#x0D;&#x0A;GLLlqoGlWsj0XMD5QpOLU0v4DfdmTJU/e1qfO/8QbvxH6dcdmcwbbx/qFJ++kuCpPoOYZfDNTxX2&#x0D;&#x0A;bo/hhxo/1BhS0JMx2bfDorfL4nZR97hN8eyi3lkYHkrMFgoF3Qb3HTw+ip3+4MhzWfHWkIVtSfxQ&#x0D;&#x0A;4wWad17I8tUPi+zaYuH5Ci9QeKFGa83WTRbppCX+mI26m762tnL9wtDQUGC01F47JIzY6IHdmfhw&#x0D;&#x0A;3kJK8ANFM2hBtvXEeHEgxcnvNM/kArxAr9y3ItjUIan7JjOloL8UbZ/s5eZtI398wgJOpdPpl14d&#x0D;&#x0A;TImuDvACTTNoqfUCze6tcQDee97g9Lhg7xZ/zX0zUNiGz/S8suvNMDDC6kUT2AwMZjKdMhsPcety&#x0D;&#x0A;o9Jm/KTNh1/C0QMuUaSZLUdMzWVxG0lqdEhFZcAVuZwJ9CFkrictaPiKhq/QK+Wi1yn0FjzD/t4K&#x0D;&#x0A;k3+nmHVbEWGaIIw+DDsngSQylkpaAZW6wl1WeL6m6ev2vp7y3+azlJaTj5pCCJCxhIB0O263aTFf&#x0D;&#x0A;lRRdSbUhqTQM7lViXJ1JbZgWPzIQgpa1m0NJE3QD5S3P1xPUo3grfkAjqPk2Wq+f79dHV7WwWGmf&#x0D;&#x0A;qNkUOvRMtJoD7lWX1c5IJNY81Mh1p8nhMxCsTAjTAAk8aHigo6JU9TlpKbcITOKVlWVo7FUWMyIe&#x0D;&#x0A;J/nwGQBF0opIWhFxM8I2I4S/qEyat7L67n3zivOaP3Ts8rnIq35iRYmurrS9RqTSAJn2eWSsxrY0&#x0D;&#x0A;CKHbfq354aOaS/VENH+h01gomwB5ffbStXDk+1qldKy/u4uYKR7VG4/Ap7+dJ2uDth/mtOXjhZqZ&#x0D;&#x0A;yhLKr/6yR/78K1AzAAqFgt6W/3jaC9irVLTjyW5DJGOCmKWJWZqX96X5fPw+MbN1jtutPWZqBAG3&#x0D;&#x0A;Zly1WK5OdEc3xrLinxttMMCRvLW4qHMT1YY54C6H/emkxaa0iW1JLt+sY5tijVkGLFQDpqarzJXc&#x0D;&#x0A;ic3h9dGcLFwFFhzHidrgQqGgh4eS5UXdf73aMJKlatBfWw7tuBmKVMLElBIpQOuIxaU6v99ZVn/O&#x0D;&#x0A;1B5UKu6P3dGNsRVo0XGc4LE/yMjIiARSU7x7OJQdRxXWgJSiL50wEgC1RtRUkSqaNG/Fo/kLKzmd&#x0D;&#x0A;Byrr/iCr4AKwi1F/1hW5HIadE5AWKCl06ElVn8vqu/c7jYUyUAMajuOo1Yx/AWXzQW5ayEXoAAAA&#x0D;&#x0A;AElFTkSuQmCC' />
<image id='image_pause'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI&#x0D;&#x0A;WXMAAAsMAAALDAE/QCLIAAAAB3RJTUUH0woJEyUmS1jbOQAABDRJREFUeNqdlc9vG0UUxz8zu7P+&#x0D;&#x0A;Edtx86PBhboJEapQKVQOReoNIVUoVCBUpAqBxC2oPSAhceDAFal/AfSwEhcOXHqAUxHlRFWgInWV&#x0D;&#x0A;mlBUqWmaFpI4sROva+/auzvDwW2apElBPOmr0Zt985mn2fdmBE+w0pkZBWYYdAFj0mAA42P0ktJe&#x0D;&#x0A;9Yp7vLvbWvEE6DHgFJgjCIoI1QeA7rQx8V1gRujofMl8ddl13fhfwaUzM+MgPsZS72X60vmnhnJy&#x0D;&#x0A;ZDDJwaEmKRVzq55hvqpZXVnR9Ybv68i/rMz9z1803/zium60I7h0ZuYAiHM4uckjz6Z442iWw/sN&#x0D;&#x0A;e/MKS/ZCDbDWjJhbCrlQDrhUWaPrezcSuv7pC+b8hYdwa1umX2RyudffOtYvPng1xXMFi4SyCGPo&#x0D;&#x0A;RmZDlhQM5WwOH1CM7FHcrpohLxAv18xYeXIida9cLpsNcOHo6bM42XdPvJIXb04oHCXpRoZOuE1d&#x0D;&#x0A;TSfUdCKDMYZ9A4psWok/7sWDQdeofVy7ODExEVq9bK8eE1bi7EvjueRkSSEldEPNTxWPucWAucWA&#x0D;&#x0A;woCi3dFcqjSZW+wwtxgwskcRhIaBjKTVtVlYCUdX4v0zI9y4bZdOTyuMOZXpS+ZK4w6x1jRaBoCP&#x0D;&#x0A;3i5snP8PV9d3nYu14WAh5vqtRLZey5yshqO/2sAwcCSX65f5ZITXkrvWdaMVbfGvzwcAVJbyeH6a&#x0D;&#x0A;JhmpWT/kiWLRBgoIWRzKCvyuxu9qzA51WJlvk0tt3XR6oVfa97xkb8K2QVgFLKdoA2lkoi+tQtZb&#x0D;&#x0A;GinAsXfuG8/XW/y/mlkc61FvCCFAJlJCk7U3FgWK5YbBkpBNCcy2nL+d3cdAyueTbZt1YwvxMNQ8&#x0D;&#x0A;bA4tbTA+utNebqVoxcmNj2aHbq/7qV3Pvwc3EAeBMFHHxugl4G6jrcdikeL/mG2BBO77HTBxVerW&#x0D;&#x0A;klTaqwIzdOpaWQZnk/6LpVVM0o5x7BjRrWmb4Gbe3FmUV9zjXaGj83Gn0VDxGsPpFnsfaLON5ZuM&#x0D;&#x0A;5ZuPgQuZXqyK19DBWisZL1/st1brAmBqasq6ak19mctmPjw8voeELXr1ZrZdVebRsPmHdSJD5dYa&#x0D;&#x0A;zfXV70p8/RkwbwGUy2XzTOn9uU7I81rHB54etEQ6IUgo05O9dUw6j3xByM0FT9fqjenBePZcXvw9&#x0D;&#x0A;CzQ3LqETJVWrmeJ0w7cPee1oNJtWDGRtHCVxbPGYlAWrjZDKXIOlFW96OLp2tijLvwGrruvGG+By&#x0D;&#x0A;uWwmJ9L1mhm91vCt9EojHG22IydpR6IvZWNLiRRgTExtrcXv823950Lz/vq69/1gPHvuAbTqum64&#x0D;&#x0A;4wsyNTUlgb4K77wWycxJjTokpShkU1YKoOnHgY511Sa4mYyXLx6UP/4MLAPru74gm+ACcKrxaN4T&#x0D;&#x0A;xSKWUxSQFWgpTNSRurWUN3cW+63VOtAEfNd1t/T7P6XWFCRCYI3ZAAAAAElFTkSuQmCC' />
<image id='image_stop'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI&#x0D;&#x0A;WXMAAAsLAAALCwFtBIS3AAAAB3RJTUUH0woJEwkMqdJ5QQAAA+9JREFUeNqdlduPU0Ucxz8z59Ke&#x0D;&#x0A;bk/pXrgUtSyi2ZgVgq2Y8EKMiRok+oAJUUz0aQm8mfjgk0+a8BcYHk5CfONBTDQmQoSYGEW8LN2s&#x0D;&#x0A;iBICyC1Lt7vttqe0p+05Z8aHssuCgIvf5JvJby6f+eU3mRnBQ1Q4MG2BXg0qh9Yp0IAO0KpsKb/y&#x0D;&#x0A;i/dy70FrxUOg24E9oLciyCOsAQBUt42OrwPTQkVHC/rwKc/z4v8EFw5MbwLxPoa1Nz2Qyq4byci1&#x0D;&#x0A;w0nGRpo4VsylWporFcX83JyqNYJARcEpS9/6ZIs+ctrzvOi+4MKB6Q0gDmFndm590uG1bS6bn9Cs&#x0D;&#x0A;yVoYsj9VAwvNiMvlkGOlDj+cXaAX+H8lVO3DZ/XRY4tw455MP01nMq++sX2VePdFh6dzBgnLIIyh&#x0D;&#x0A;F+klG1IwkjHZvMFi7aDF3xU94nfE81W9sbSz6NwolUp6CZzbtv8gtvvWrhey4vWihW1JepGmG97j&#x0D;&#x0A;nqIbKrqRRmvN+iELN2WJP2/Ew52ettYzdaJYLIain+2Z7cJIfrPlqaHs3h0OriP5dipgJXrlOYcw&#x0D;&#x0A;0nz1a8D3U5WG0Z15bzNfHDcL+ycttN6THkhmCptsYqVotDQAH7295qHQj49UaHcVnZ5iLBfz+6WE&#x0D;&#x0A;W6umd1fC0Z9NYDWwNZNZJbPJCL8leRR99mMCAD9I0SQtFfVxX+TzJpBDyPyIKwh6iqCn6Oe7sg2E&#x0D;&#x0A;6nGxlukHpgnCyGHYeRNIIRMDKSuk3lJIAbYpVgS9NJ+8exMhQCYcoXDNxU6/YzHb0BgSXEesuBQX&#x0D;&#x0A;axnE4nS9eDmUNEEHqG57tuXQipNLgxrxSLXuwzXEnY7QUddEqzJwvdFWG2Ph8H9kGv0TuRV0QccV&#x0D;&#x0A;qVplaSm/AkzTrSnL0NjLvFIlzRjbjBG9qjLpXMjqqzcFQHHf6R3CTn+Zy60bHHTtRyqCISFSsNDs&#x0D;&#x0A;UZ6ZaTqd8x+MyZNfmwAFffjUmWji82Z9bt/o8CAJU/SfJ33PU6XvNMsPrBtprtUXUL3Gd2Py5E9A&#x0D;&#x0A;0wAolUr68cI7l7shzygVb3hs2BCphCBh6b7Nu9ukfScWhFy45qtqrTE5HJ87lBUz55bAALsKVrWq&#x0D;&#x0A;85ONwBz329Gom7IYck1sS2Kb4l+2DJhvhJy93KA850+ujqYO5mXpN2De87x4CVwqlfTOYqpW1aNT&#x0D;&#x0A;jcBIzTXC0WY7spNmJAYcE1NKpACtY6oLLf640lbnrzVv1ev+8eH43KHb0IrneeF9f5CJiQkJDJzl&#x0D;&#x0A;zZcimd6tsMalFDnXMRyAZhB3VKwqJp0LyXj2xO2azgL1B/4gy+ACsCvxaNYX+TyGnRfgCpQUOupK&#x0D;&#x0A;1Spn9dWbq4z5GtAEAs/z1HLGP0K45L8u7KzsAAAAAElFTkSuQmCC' />
<image id='image_terminate'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A&#x0D;&#x0A;/wD/oL2nkwAAAAlwSFlzAAALCwAACwsBbQSEtwAAAAd0SU1FB9oFHAkAHliA9FIAAAOYSURBVDjL&#x0D;&#x0A;pZXNa1RXGMZ/551z78x1JnFijekQMpNWKaahoAsXboqIUNy0RSQOIt0Irlu66D9Q8A+o4Cqb0tJg&#x0D;&#x0A;LRS6aEVwp22pKDKtipKQSciHExN1Mh935s59TxfJ2FSbNLYPPIvzcM7vvLyHc45hC00UCh7Q75zL&#x0D;&#x0A;KexYj5sKi865ykezs+3N1potoIeBMeAAkBdIA8TONRRmgTuxc5d9kevFcjn+V/BEobAX+NjC6d3W&#x0D;&#x0A;ZnM7d4o/PIy/bx+SStGenqb18CGPlpb0URQ1m85dd8597ov8XCyXO/8InigUCsDFwJjjI4OD7Dpz&#x0D;&#x0A;huDQIbzBQYznPZ8XLSzQunePpxMT/H7rFlXVewqfecb82IWbFyr94nVr39t7/Lhkx8bwBga2OgLi&#x0D;&#x0A;ep3VK1eYHB930+32w9i5s77IjWK5rInupJPZ7PnAmOLbx46ZvtOnEd/HheFL1mYTbTZxYQhxjD88&#x0D;&#x0A;TDoITLVUeq2u6iWMuXoym40swDf5/GELp0ZyOTJHj6K1GiuXLrEdZcfGCA4e5K1Sifrt2+/X4/g7&#x0D;&#x0A;X+Qn+3U+7ymM7bK2N3PkCHQ6xMvLAAyNj28JnT17Fq3V0EaDYHSUPaVSz4zqiVD1Fwv0AwdynieS&#x0D;&#x0A;ydBZWeFV9PjCBQC0WgUQhVGFvAVyAnm7Zw/aaKCNBq+qZwsLACSNQSDnGZO3wI6EMWmTTK61QARJ&#x0D;&#x0A;pbYFbE9NvZQljAlwrsd2A63ViObmMJ6H9Pa+UrXSZfwViwWasXON1vIyrtUCVf6PIudCoGUVFoHZ&#x0D;&#x0A;J3H8xu56/T/BPGMwxlDtdHDOVTqwKM65CnCnoapiLRu9bbDnYa0lVFXggYUFA/Dl0NC76UTi+5Fk&#x0D;&#x0A;ss/r7weR7ZcrAp0O0dISd8Nwtab6aUrkBwvgi1wPVb+di6Jzb2YymGRybUG3392NNvZ/Q+ZaLebm&#x0D;&#x0A;52moXkuJ3ABWEwCXnz1zH/b2TjWdG0lXq4X00JCRTAYJgjWnUmvujjdkBli5e1dnouhmDBetMX88&#x0D;&#x0A;BwOc6utbjuHm0zgelUplOB0E2IEBjO9v6s7cHPOlEpPt9s3IufMpkd+Ax8VyOX7xPU5Ezr3jnPuk&#x0D;&#x0A;L5H4YG8y2ZPav1/8fB66h9np0J6ZIbx/XydbrfqTOL6m8FVK5FegUiyXW5v9IAKk26pHE8acUBj1&#x0D;&#x0A;jMn1igQAVdWwrVoBHihcXe/pI+Dppj/IBrgB/FA1q5D3jMkL9Kw/Mq3IuUULC77ICrAKNIvl8t9u&#x0D;&#x0A;1p/7Z60tC8zBfwAAAABJRU5ErkJggv////8=' />
<image id='image_exit'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI&#x0D;&#x0A;WXMAAAsLAAALCwFtBIS3AAAAB3RJTUUH0woKFhstiTF0yQAABL9JREFUeNqFld9vVEUUxz8z9969&#x0D;&#x0A;+7Mt2xaowhZEUCm/QgXkQfwBCAUxIsZEIyEhKc+8+OMPICHxlRAeNhr1xQdJjA8I4UeCNIAoLNYC&#x0D;&#x0A;EiJUC4R2t90f925393bvnfFhoVAseJJvJpPMfOacOXPmCJ5i/d1rLK11u4IOjY5qAERVwXDJMrMb&#x0D;&#x0A;L5ybeNJe8RToWuADrfUKIGVBDMBDVxTc1tDvC3n4q5XLzqbT6eB/wf3daxYI2GvBR9F4vCUxa6aM&#x0D;&#x0A;zJ6Nu2ghQSRC/OYg6p+/yeVGVTWfr1aVOlu2zH3fLes6n06n/WnB/d1rOgUcSkBPdMVyElt60Eu7&#x0D;&#x0A;sNrbEYbRWKQ1fqFI/dYtaseOU+jrw/Em/izY9mffL3nx6AO48ZinB5vi8U0t72wTkZ0fYyxaiGHb&#x0D;&#x0A;4PvoiXpD9TrCMDDb2rCWLMGaNQs9ONgmHOfl+WP5TKRn851MJqPNB2Ct9ScJIXqaN6zH2tqD0Zqk&#x0D;&#x0A;euUqAHbn3PvBaXQjg0wM3QYgsrqbpF8X6utvF/mVyh6gv7e3t2wAXFq5eq0txP6mZcvCVs9mQp0p&#x0D;&#x0A;qleu0vTGa0QWLaT0cx/StlGeh/Y8an/dJLltK3Znikr/AOYzHZjjFepDQ/NSudH+a7PaB42LK1dZ&#x0D;&#x0A;wN5EU2JdbP2bguQMrJkziS5+CRkKoYOAWNdi3F9+RWhNPTdK247tjQRJSXjBc4ydOIlua0UPDob8&#x0D;&#x0A;8fF6yZB9EmgHVjQ3NUl/RguB4+KeOz8JFYaBqtVo27Ed33Vp27EdrdSUl5TsO0vrkaPMdMvSVKpr&#x0D;&#x0A;ruOmJNAhISVaW1GVCn6hgJ/PM5z+EmEYBJUKMhwGmOLpA3M/3En45i3sbI44AgPREUKkJBC1EbF6&#x0D;&#x0A;LIYqlVCOg/Y8dK3GvQMHMaLRJ1bmxNZ3ieZG7z9cgQBsiCBEYvJoq+Qgh0eQ2Ryy5GAUi9i37+Ds&#x0D;&#x0A;3jM9dd16Qq6LMTEBQkzCAZQQ0gRR9dCVyEiWcKX6sCS1IuSWMY4fmR585hSsW/9wLiVaKWpQ84Xw&#x0D;&#x0A;pIJhBbeVUyL8iOxqrQENgif/UmdONUbTBNOkVq8ToLPjUgzLkmVmNfTnQWnTQlsNyZ9+bGwyjCnh&#x0D;&#x0A;A+B5U+BBOExg2+QFqmaaN4Zamu/JjRfOTfhCHi4FfqlgmYy3t5Nd+wq6UpninLNrN878Tpxdu8G2&#x0D;&#x0A;/+N8wTIpBP74SDh8ItfclDcA5Ntb7iy/Ozy/ju42O+cifJ/y5d9JrHsVgJFPP8ePx/DjMeqxGOUT&#x0D;&#x0A;J4m/tQGAe/v2UwmHGBsaouh5x35YuvgbIDv5u51etXZxTAUHYnPmvB5fulSakQg8VgjTme95lAcG&#x0D;&#x0A;VOnu3Ut/JJNfXOyccxrIT16gtbVnrHOscNEsFrt8x5lnxeOYyRnIUAgRsh7KagjLpJ4bpTQwgDs8&#x0D;&#x0A;cjHT3rY/k3r2N2A0nU4Hk+BMJqOjPZvy88byl42SE63nsvN8txzyw2FhxmJI0wQpCdCMj41RuXJV&#x0D;&#x0A;udevl91i8diV1uSh+9BsOp2uT9tBent7JRB7f+Dam3Hff89UqksYRoeRSEQAAtetqSDI1kzzxkg4&#x0D;&#x0A;fOLkC8+fA0aA4hM7yCNwAYTmZ3Mtcx03FUKkECKhhJC+EN64FMNDLc33cs1NecAFqul0ekpC/gXY&#x0D;&#x0A;/CPMCV0dPwAAAABJRU5ErkJggg==' />
<image id='image_shred'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI&#x0D;&#x0A;WXMAAAsOAAALDgFAvuFBAAAAB3RJTUUH0woCFhYuYCJz0QAAAblJREFUeJyllb+q8jAYh58ePhFd&#x0D;&#x0A;pHVxcdOlgw6ODuLU1avwAgRXBS9BvDZnF/+A0IoK2jZtzhRPk9Ni/c4PSpq8eZ/3lwQSq9PpoOR5&#x0D;&#x0A;nnw+n4RhCEAYhtqnYmEYEkWRSrPI0b9sJ4oilstl3rxXodvtxuVyYTqdslqtWCwWMg+ugeM4BqDd&#x0D;&#x0A;bhfCgyDg8Xhg2zau6xbCv0zH72TbNrVaDcdx6Pf7Lzgg/wRWcMdx2O/3hfDcrSgjx3GYz+f4vo/v&#x0D;&#x0A;+wRBoMV/HV5Zrddrrtcru92O8/nMdrtls9nkgz9xLKWkXq/TbDaRUtJqtf7uWAiBEIIkSWg0GgD4&#x0D;&#x0A;vq/N0Q6vjOMsNEkShBBUq1UqlUox+BMpqBAiN/7RHsdxTJIkRFGkQZXrQnDRHkspX8vPg6pYVm/3&#x0D;&#x0A;OAtV/yb0LVip2+1qreu6SCnp9XoIIRgOh6Rpymg0AsDzvF+Mt47VmHlIaZpq46UcZxNVgmrVuFnQ&#x0D;&#x0A;LKyBLevn5lMTiwBmqwrmgqX8ufnMRLOAWkEpx1mZABNUVKgQfL/fARgMBgAcDgcAxuMxAMfjEYDJ&#x0D;&#x0A;ZALA6XQCYDabaRwr+5iivwLWf/Rf+gaq5nuqnqksPAAAAABJRU5ErkJggg==' />
<image id='image_save'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI&#x0D;&#x0A;WXMAAAsSAAALEgHS3X78AAAAB3RJTUUH0wgaFi8epxLi1wAAAsJJREFUeJzVlD2PHEUQhp/ZnTV3&#x0D;&#x0A;PvDHBcgykgMCEAGCf4CQkAgQiD8AMREidQbRRQT8A2JIQCBBgiFzAEIyEPpkGWTJvhV3uzO7091V&#x0D;&#x0A;1dUEMzvHyWs7dkutqu4Zvf3029UNT1urNskPP/76UV1PD1Qzs3pC03bEpGTLzOopZhkRxSyjaqhu&#x0D;&#x0A;onHnnznzo8V3zWL18c83Pl8A1Bvhup4evPTKtUtQce3qPp9+8Q3LJnDhuV0+++T9x9J9f+MWf966&#x0D;&#x0A;/cG3X/0C8OEZ4ZSULgrVsImbvx9y+cJ56nryxG0vmg4H3PO7I+gmkWF7VdUL71/c4+UXr/DClctP&#x0D;&#x0A;FBYxlssVKck4dyosiqgxqXrCt994lavPX2T/0rOPFXUvLJuW5aLBLD8snMQQzZRinDQd7731OqUU&#x0D;&#x0A;SoH5cTvk/XgTzYyTk5ajB8d0IWJm24h7K7qY+O2PO6hlzDKWfci9r4icETFiSDTLlvU6cHzSEqM8&#x0D;&#x0A;ilgRVUIcSspyX1KWB/+NmJQYhbZdEbpISkJKiogQYyTnLcI6WOHunN89h2UfateoiuMGk5KZlszO&#x0D;&#x0A;bMpk9xyzScVsOuEoBFIScvZHERs7z8x4583XcHdCEEJIpKSo2mCX9QctNvYvv/6JeUiP9xjALBNC&#x0D;&#x0A;IgRB1bYIn10giSCi261ISRHNmBp37/7L/fsNqjZcYR2usI72mPXiOzs1KQpJ0nZhGchMlaoq7O3V&#x0D;&#x0A;iIAq1HWhrmE6LZjBZFJQLVRVARwZiN23eZyU1bojm7FaRRaLbqTqCU8fIREdH6HZrBqskO3EMSTW&#x0D;&#x0A;60BxR9Vwz+T8cDfro7uNQv1Csp04xEQICbxgZpTiuPe9z/Mw7mPOm7ygIqgo7luIwzqyXrTkbKxW&#x0D;&#x0A;y/HkT6vg7CGq5vGfdduQujW+rY6P54vr9/5+cBBT4vZfh+RcRuKcC6X4/+ZOv7kX7h3O6YLiznWe&#x0D;&#x0A;2vYfEhrg/995S7wAAAAASUVORK5CYII=' />
<hbox id='EPTF_Top_hbox' orientation='vertical'>
<tree disabled='false' flex='1.000000'
hidecolumnpicker='true' id='EPTF_ExecCtrl.Statistics.eventStatus.mainTree'
rows='1.000000'>
<treecols>
<treecol editable='false' flex='1.000000'
label='Scenario DefaultEGrp.DefaultSc Status' widgetType='statusLEDWithText' />
</treecols>
<treechildren>
<treeitem>
<treerow>
<treecell
id='EPTF_ExecCtrl.Statistics.EG.DefaultEGrp.SC.DefaultSc.StatusLED'
label='' tooltiptext=''>
<externaldata
element='ScStatus' source='ExecCtrl'>
<params>
<dataparam name='EntityGroup'
value='DefaultEGrp'></dataparam>
<dataparam name='Scenario'
value='DefaultSc'></dataparam>
</params>
</externaldata>
</treecell>
</treerow>
</treeitem>
</treechildren>
</tree>
<hbox disabled='false' flex='1.000000'
id='EPTF_Main_hbox_labels' orientation='vertical'>
<textbox flex='1' id='EPTF_timeElapsed' multiline='false'
readonly='true' value='' >
<externaldata element='TimeElapsed' source='ExecCtrl'>
</externaldata>
</textbox>
<label disabled='false' flex='1.000000' id='status'
value='This text will be replaced runtime.' />
</hbox>
<hbox flex='0.000000' id='Execution_Control.buttonBar'
orientation='horizontal'>
<hbox flex='1.000000' orientation='vertical'>
<spacer flex='0.000000' />
<hbox disabled='false' flex='1.000000' id='EPTF_Main_hbox_all'
orientation='horizontal'>
<hbox disabled='false' flex='0.000000' id='EPTF_Main_hbox'
orientation='horizontal'>
<spacer flex='0.000000' />
<button disabled='false' flex='1.000000'
id='EPTF_start_test_button' imageid='image_play' label='Start Test' >
<externaldata element='Start' source='ExecCtrl'/>
</button>
<spacer flex='0.000000' />
<button disabled='false' flex='1.000000'
id='EPTF_stop_test_button' imageid='image_stop' label='Stop' >
<externaldata element='Stop' source='ExecCtrl'/>
</button>
<spacer flex='0.000000' />
<button disabled='false' flex='1.000000'
id='EPTF_terminate_test_button' imageid='image_terminate' label='Terminate Test' >
<externaldata element='Terminate' source='ExecCtrl'/>
</button>
<spacer flex='0.000000' />
<spacer flex='0.000000' />
<spacer flex='0.000000' />
<button disabled='false' flex='1.000000'
id='EPTF_snapshot_button' imageid='image_save' label='Snapshot' >
<externaldata element='Snapshot' source='ExecCtrl'/>
</button>
<spacer flex='0.000000' />
<button disabled='false' flex='1.000000'
id='EPTF_exit_ttcn_button' imageid='image_exit' label='Exit' >
<externaldata element='Exit' source='ExecCtrl'/>
</button>
</hbox>
</hbox>
</hbox>
</hbox>
</hbox>
<hbox disabled='true' flex='0.000000'
id='EPTF_ExecCtrl.Statistics.eventStatus' orientation='horizontal'>
<label disabled='true' flex='0.000000'
id='EPTF_ExecCtrl.Statistics.eventStatus.text' value='ExecCtrl Status:' />
<spacer flex='0.000000' />
<tree disabled='false' flex='1.000000'
hidecolumnpicker='true' id='EPTF_ExecCtrl.Statistics.eventStatus.main'
rows='1.000000'>
<treecols>
<treecol editable='false' flex='1.000000'
label='EndOfConfig Status' widgetType='statusLEDWithText' />
<treecol editable='false' flex='1.000000'
label='ReadyToRun Status' widgetType='statusLEDWithText' />
<treecol editable='false' flex='1.000000'
label='GUIDone Status' widgetType='statusLEDWithText' />
<treecol editable='false' flex='1.000000'
label='EndOfTest Status' widgetType='statusLEDWithText' />
</treecols>
<treechildren>
<treeitem>
<treerow>
<treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.EndOfConfig.StatusLED'
label=''
tooltiptext='EndOfConfig Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.EndOfConfig)' >
<externaldata element='EndOfConfig' source='ExecCtrl'/>
</treecell>
<treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.ReadyToRun.StatusLED'
label=''
tooltiptext='ReadyToRun Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.ReadyToRun)' >
<externaldata element='ReadyToRun' source='ExecCtrl'/>
</treecell>
<treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.GUIDone.StatusLED'
label=''
tooltiptext='GUIDone Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.GUIDone)' >
<externaldata element='GUIDone' source='ExecCtrl'/>
</treecell>
<treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.EndOfTest.StatusLED'
label=''
tooltiptext='EndOfTest Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.EndOfTest)' >
<externaldata element='EndOfTest' source='ExecCtrl'/>
</treecell>
<!-- <treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.EndOfConfig.StatusLED'
label='[led:green]EndOfConfig'
tooltiptext='EndOfConfig Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.EndOfConfig)' />
<treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.ReadyToRun.StatusLED'
label='[led:green]ReadyToRun'
tooltiptext='ReadyToRun Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.ReadyToRun)' />
<treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.GUIDone.StatusLED'
label='[led:green]GUIDone'
tooltiptext='GUIDone Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.GUIDone)' />
<treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.EndOfTest.StatusLED'
label='[led:blue]EndOfTest'
tooltiptext='EndOfTest Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.EndOfTest)' /> -->
</treerow>
</treeitem>
</treechildren>
</tree>
<spacer flex='1.000000' />
</hbox>
</window>
</Widgets>
";
f_EPTF_UIHandler_init_CT("ExternalData_TimeElapsed");
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_simpleBehaviorWithoutPhases(mtc, "SimpleExecCtrl"));
var charstring vl_dataVarName; //dummy for output
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
timer T_guard, T_alt;
T_alt.start( 0.0 );
T_guard.start( 15.0 );
// wait until ExecCtrl DataSource is registered
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[v_ready] T_alt.timeout{}
}
action(" ExecCtrl ready, starting create GUI");
f_EPTF_UIHandler_createGUI(vl_gui);
//f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName);
action("Testing TimeElapsed...");
var charstring vl_varName;
f_EPTF_DataSource_getData(
pl_dataVarName := vl_varName,
pl_source := "ExecCtrl",
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTimeElapsed,
pl_params := {}
)
var integer vl_elapsedVarIdx := f_EPTF_Var_getId(vl_varName);
var charstring vl_origValue := f_EPTF_Var_getCharstringValue(vl_elapsedVarIdx);
f_EPTF_DataSource_getData(
pl_dataVarName := vl_varName,
pl_source := "ExecCtrl",
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementStart,
pl_params := {}
)
var integer vl_startTestVarIdx := f_EPTF_Var_getId(vl_varName);
f_EPTF_DataSource_getData(
pl_dataVarName := vl_varName,
pl_source := "ExecCtrl",
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTerminate,
pl_params := {}
)
var integer vl_terminateTestVarIdx := f_EPTF_Var_getId(vl_varName);
// press the terminate test button
f_EPTF_Var_adjustContent(vl_terminateTestVarIdx,{intVal := f_EPTF_Var_getIntValue(vl_terminateTestVarIdx)+1});
T_guard.start( 5.0 ); T_guard.timeout;
// press the start test button
f_EPTF_Var_adjustContent(vl_startTestVarIdx,{intVal := f_EPTF_Var_getIntValue(vl_startTestVarIdx)+1});
// wait a few seconds so that the elapsed time var could change:
T_guard.start( 61.0 ); T_guard.timeout;
var charstring vl_newValue := f_EPTF_Var_getCharstringValue(vl_elapsedVarIdx);
if (vl_origValue==vl_newValue) {
setverdict(fail,"The value of timeElapsed external data is not updated. Its value is: "&vl_origValue);
} else {
setverdict(pass,"The value of timeElapsed external data is updated");
}
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_StartStopScTcToggleButtonInTable() runs on myMTC_UI
{
var charstring vl_gui :=
"<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>
<window height='300.000000' id='EPTF_Main_Window' orientation='vertical'
title='TTCN constructed window' width='600.000000'>
<image id='image_ok'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABGdBTUEAAK/INwWK6QAAABl0RVh0&#x0D;&#x0A;U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAKTSURBVHjaYvz//z8DLQBAADEx0AgABBDN&#x0D;&#x0A;DAYIIBZGRkaqGca3ikGBlYmhnpWZIQAggBgZFzLsBwZzIUMCwwWyTZzPoMAANJCZEWgKA8MHZmYG&#x0D;&#x0A;R4AAYmSYzfAeLPmPwZEhnUTDZwINZGSo5+LgSvj28xsDkP0AiAMZkhkuAAQQE8Mvhg3ifOICDH8Y&#x0D;&#x0A;9jNMZjAgysBJQAOnMMznYOa472DokKAiosIANOcCw28GQ5ChICUAAQQyeCPQFgYzBzMBoMR+hh48&#x0D;&#x0A;hvcADexlmM/KzHpf01gzwSPUg+HKjSsMl25eOgB0mCNDJsMHmFKAAGJg6GIQYOhg+K/9Xfu/xGWJ&#x0D;&#x0A;/0D2e4Y2NMNbgQa2M8xn6mf6L3hE8L/GDw2weu553P8ZOoEhjAUABBAkSTQx7GcOZXZgUmdi+HPx&#x0D;&#x0A;D8P/Tf8/MPwHuuA/0AXAMGTgBEaKOQMDixkLAyMHUMsLBoY/i4Hqfv5fwFDHkIjNYIAAYgGTPxk2&#x0D;&#x0A;/r301+Gv/F8GBnUg3w3oiy3AYGEH0mZAPghzAA0DQoaHQPYSsJ5EhhaGBbhCDSCAIC4uA3qVjeE+&#x0D;&#x0A;QwGSzCsg5gdidiSxK0C8hwEUUYnAIFyAL34BAgiRO/KABscDLRDDofIqEG8DBg0TMIgmEE6WAAHE&#x0D;&#x0A;DGcZAg1lZ7BgkGAA+RkVg1y5H2goKK1PIS6tAwQQoqz4xXAQ7KrvaHgjEJ8AGvaHQZFhOvEZCCCA&#x0D;&#x0A;UAuKGGBSiwdGGC84ckBeZ2B4CjSMEejSxchplDAACCDU0u0/wwFgSDMwfATitUD8BBhB/0k3FAQA&#x0D;&#x0A;AogZhacHTLGfGQIYbgHZ74CGLgXG/mWGH+SUSwABhIqigcEQDXRjNErCIwsABBAjraomgACiWQ0C&#x0D;&#x0A;EEA0MxggwAAC5K2bqnDzRQAAAABJRU5ErkJggg==' />
<image id='image_configure'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAACXBIWXMAAAsTAAALEwEAmpwYAAAK&#x0D;&#x0A;OWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanZZ3VFTXFofPvXd6oc0wAlKG3rvAANJ7k15F&#x0D;&#x0A;YZgZYCgDDjM0sSGiAhFFRJoiSFDEgNFQJFZEsRAUVLAHJAgoMRhFVCxvRtaLrqy89/Ly++Osb+2z&#x0D;&#x0A;97n77L3PWhcAkqcvl5cGSwGQyhPwgzyc6RGRUXTsAIABHmCAKQBMVka6X7B7CBDJy82FniFyAl8E&#x0D;&#x0A;AfB6WLwCcNPQM4BOB/+fpFnpfIHomAARm7M5GSwRF4g4JUuQLrbPipgalyxmGCVmvihBEcuJOWGR&#x0D;&#x0A;DT77LLKjmNmpPLaIxTmns1PZYu4V8bZMIUfEiK+ICzO5nCwR3xKxRoowlSviN+LYVA4zAwAUSWwX&#x0D;&#x0A;cFiJIjYRMYkfEuQi4uUA4EgJX3HcVyzgZAvEl3JJS8/hcxMSBXQdli7d1NqaQffkZKVwBALDACYr&#x0D;&#x0A;mcln013SUtOZvBwAFu/8WTLi2tJFRbY0tba0NDQzMv2qUP91829K3NtFehn4uWcQrf+L7a/80hoA&#x0D;&#x0A;YMyJarPziy2uCoDOLQDI3fti0zgAgKSobx3Xv7oPTTwviQJBuo2xcVZWlhGXwzISF/QP/U+Hv6Gv&#x0D;&#x0A;vmckPu6P8tBdOfFMYYqALq4bKy0lTcinZ6QzWRy64Z+H+B8H/nUeBkGceA6fwxNFhImmjMtLELWb&#x0D;&#x0A;x+YKuGk8Opf3n5r4D8P+pMW5FonS+BFQY4yA1HUqQH7tBygKESDR+8Vd/6NvvvgwIH554SqTi3P/&#x0D;&#x0A;7zf9Z8Gl4iWDm/A5ziUohM4S8jMX98TPEqABAUgCKpAHykAd6ABDYAasgC1wBG7AG/iDEBAJVgMW&#x0D;&#x0A;SASpgA+yQB7YBApBMdgJ9oBqUAcaQTNoBcdBJzgFzoNL4Bq4AW6D+2AUTIBnYBa8BgsQBGEhMkSB&#x0D;&#x0A;5CEVSBPSh8wgBmQPuUG+UBAUCcVCCRAPEkJ50GaoGCqDqqF6qBn6HjoJnYeuQIPQXWgMmoZ+h97B&#x0D;&#x0A;CEyCqbASrAUbwwzYCfaBQ+BVcAK8Bs6FC+AdcCXcAB+FO+Dz8DX4NjwKP4PnEIAQERqiihgiDMQF&#x0D;&#x0A;8UeikHiEj6xHipAKpAFpRbqRPuQmMorMIG9RGBQFRUcZomxRnqhQFAu1BrUeVYKqRh1GdaB6UTdR&#x0D;&#x0A;Y6hZ1Ec0Ga2I1kfboL3QEegEdBa6EF2BbkK3oy+ib6Mn0K8xGAwNo42xwnhiIjFJmLWYEsw+TBvm&#x0D;&#x0A;HGYQM46Zw2Kx8lh9rB3WH8vECrCF2CrsUexZ7BB2AvsGR8Sp4Mxw7rgoHA+Xj6vAHcGdwQ3hJnEL&#x0D;&#x0A;eCm8Jt4G749n43PwpfhGfDf+On4Cv0CQJmgT7AghhCTCJkIloZVwkfCA8JJIJKoRrYmBRC5xI7GS&#x0D;&#x0A;eIx4mThGfEuSIemRXEjRJCFpB+kQ6RzpLuklmUzWIjuSo8gC8g5yM/kC+RH5jQRFwkjCS4ItsUGi&#x0D;&#x0A;RqJDYkjiuSReUlPSSXK1ZK5kheQJyeuSM1J4KS0pFymm1HqpGqmTUiNSc9IUaVNpf+lU6RLpI9JX&#x0D;&#x0A;pKdksDJaMm4ybJkCmYMyF2TGKQhFneJCYVE2UxopFykTVAxVm+pFTaIWU7+jDlBnZWVkl8mGyWbL&#x0D;&#x0A;1sielh2lITQtmhcthVZKO04bpr1borTEaQlnyfYlrUuGlszLLZVzlOPIFcm1yd2WeydPl3eTT5bf&#x0D;&#x0A;Jd8p/1ABpaCnEKiQpbBf4aLCzFLqUtulrKVFS48vvacIK+opBimuVTyo2K84p6Ss5KGUrlSldEFp&#x0D;&#x0A;Rpmm7KicpFyufEZ5WoWiYq/CVSlXOavylC5Ld6Kn0CvpvfRZVUVVT1Whar3qgOqCmrZaqFq+Wpva&#x0D;&#x0A;Q3WCOkM9Xr1cvUd9VkNFw08jT6NF454mXpOhmai5V7NPc15LWytca6tWp9aUtpy2l3audov2Ax2y&#x0D;&#x0A;joPOGp0GnVu6GF2GbrLuPt0berCehV6iXo3edX1Y31Kfq79Pf9AAbWBtwDNoMBgxJBk6GWYathiO&#x0D;&#x0A;GdGMfI3yjTqNnhtrGEcZ7zLuM/5oYmGSYtJoct9UxtTbNN+02/R3Mz0zllmN2S1zsrm7+QbzLvMX&#x0D;&#x0A;y/SXcZbtX3bHgmLhZ7HVosfig6WVJd+y1XLaSsMq1qrWaoRBZQQwShiXrdHWztYbrE9Zv7WxtBHY&#x0D;&#x0A;HLf5zdbQNtn2iO3Ucu3lnOWNy8ft1OyYdvV2o/Z0+1j7A/ajDqoOTIcGh8eO6o5sxybHSSddpySn&#x0D;&#x0A;o07PnU2c+c7tzvMuNi7rXM65Iq4erkWuA24ybqFu1W6P3NXcE9xb3Gc9LDzWepzzRHv6eO7yHPFS&#x0D;&#x0A;8mJ5NXvNelt5r/Pu9SH5BPtU+zz21fPl+3b7wX7efrv9HqzQXMFb0ekP/L38d/s/DNAOWBPwYyAm&#x0D;&#x0A;MCCwJvBJkGlQXlBfMCU4JvhI8OsQ55DSkPuhOqHC0J4wybDosOaw+XDX8LLw0QjjiHUR1yIVIrmR&#x0D;&#x0A;XVHYqLCopqi5lW4r96yciLaILoweXqW9KnvVldUKq1NWn46RjGHGnIhFx4bHHol9z/RnNjDn4rzi&#x0D;&#x0A;auNmWS6svaxnbEd2OXuaY8cp40zG28WXxU8l2CXsTphOdEisSJzhunCruS+SPJPqkuaT/ZMPJX9K&#x0D;&#x0A;CU9pS8Wlxqae5Mnwknm9acpp2WmD6frphemja2zW7Fkzy/fhN2VAGasyugRU0c9Uv1BHuEU4lmmf&#x0D;&#x0A;WZP5Jiss60S2dDYvuz9HL2d7zmSue+63a1FrWWt78lTzNuWNrXNaV78eWh+3vmeD+oaCDRMbPTYe&#x0D;&#x0A;3kTYlLzpp3yT/LL8V5vDN3cXKBVsLBjf4rGlpVCikF84stV2a9021DbutoHt5turtn8sYhddLTYp&#x0D;&#x0A;rih+X8IqufqN6TeV33zaEb9joNSydP9OzE7ezuFdDrsOl0mX5ZaN7/bb3VFOLy8qf7UnZs+VimUV&#x0D;&#x0A;dXsJe4V7Ryt9K7uqNKp2Vr2vTqy+XeNc01arWLu9dn4fe9/Qfsf9rXVKdcV17w5wD9yp96jvaNBq&#x0D;&#x0A;qDiIOZh58EljWGPft4xvm5sUmoqbPhziHRo9HHS4t9mqufmI4pHSFrhF2DJ9NProje9cv+tqNWyt&#x0D;&#x0A;b6O1FR8Dx4THnn4f+/3wcZ/jPScYJ1p/0Pyhtp3SXtQBdeR0zHYmdo52RXYNnvQ+2dNt293+o9GP&#x0D;&#x0A;h06pnqo5LXu69AzhTMGZT2dzz86dSz83cz7h/HhPTM/9CxEXbvUG9g5c9Ll4+ZL7pQt9Tn1nL9td&#x0D;&#x0A;PnXF5srJq4yrndcsr3X0W/S3/2TxU/uA5UDHdavrXTesb3QPLh88M+QwdP6m681Lt7xuXbu94vbg&#x0D;&#x0A;cOjwnZHokdE77DtTd1PuvriXeW/h/sYH6AdFD6UeVjxSfNTws+7PbaOWo6fHXMf6Hwc/vj/OGn/2&#x0D;&#x0A;S8Yv7ycKnpCfVEyqTDZPmU2dmnafvvF05dOJZ+nPFmYKf5X+tfa5zvMffnP8rX82YnbiBf/Fp99L&#x0D;&#x0A;Xsq/PPRq2aueuYC5R69TXy/MF72Rf3P4LeNt37vwd5MLWe+x7ys/6H7o/ujz8cGn1E+f/gUDmPP8&#x0D;&#x0A;kcBa2wAAAARnQU1BAACxjnz7UZMAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgA&#x0D;&#x0A;ABdvkl/FRgAABAZJREFUeNpiZEADO3YcP8/Pz20gJMTP8P37T4ZPn74yfPv2fcG/f/8bvbysHzAQ&#x0D;&#x0A;CQACCANt2nRo/rlzN/4jgzdvPvzfvfvk//XrDyQQaw5AAGFFq1btmX/y5BUUw3/9+v1/584T/1es&#x0D;&#x0A;2OVAjBkAAYQTLV68bf6RIxdQDP/48cv/RYu23idGP0AAMcycuW7+jBlrDbDJzZ69fv2FC7fgBv8D&#x0D;&#x0A;BvSePSf/A/UYEDIXIICY2NhYExgZGfdPmLAMRTGIz8XF6aCkJM3w589fMP779x+DoCAfw8+fvwgG&#x0D;&#x0A;B0AAAQ1mYfDwsBQAGd7RsQBsOIjm4+Pe7+5uIcDMzMQADF+QYWDMwsLM8OPHLwFCBgMEEBNQEQPQ&#x0D;&#x0A;EAZPTyuw4Q0NsxIghloKMDExAQ37Dca/fv0B46dPX4MsIJjsAAKICZiUPkAM5wEbLikpMh/kA2Zm&#x0D;&#x0A;ZrBL0fH9+89A6ZugwQABxKynZ6/BycluICIiwMDBwc6gqirLAHLp379/UTDI1U+fvmIQExNkuH37&#x0D;&#x0A;scG8iIecuV5iNyZve/0Dm8EAAcQEdEXjnj2nPrx58x7ubQj+A8ffv/9iePDgGcPnz98YgImDIUz7&#x0D;&#x0A;igGbOGv/7z8M+y/3a6GEN1AezAcIIEYQkZLSAkwBHPttbQ0E1NTkgBHEAlMGJkFZ+zfQFFZWFgbG&#x0D;&#x0A;61MZ+H7tZWB/94KBVUeG4fmVfxf+/WNwNCm/9gHZAoAAYoQxYmJqDYC29QPLCAdxcSEGHh5OBmCG&#x0D;&#x0A;AEeYj48NAz8/D8P3cxMYuL/tZBD89pJBhPk3w0cGVobvCtIMjy79BxtuXYswHCCAGNHDJjS0QgFI&#x0D;&#x0A;gTAorR4AYgFxceH5EQYPBAR+72GQZHvLIMDGwMAE1fnpDyPDZ34RhtsXGIGG/3d0br4ONhwggBiJ&#x0D;&#x0A;yZ1rSo0b5GW+12tIf2DgZmNmYETT9e3nX4a3/3kZrp1nArvcq+P6B4AAIsrgreWaAkAN+/WN/xnI&#x0D;&#x0A;Sv2H+hWq9ddfcFyAcuXzN6wM584xgw0HCCAmYgz27rz+ARjUjiePM1148BgowMfBwMDPCZEEpiCG&#x0D;&#x0A;l58YmJ9/ZJDh/c6gqfbb4PdfhvkAAcREbGkX3H/9w+8//x2PHmG6cPciMOnysDMwfAbSX34yMLz+&#x0D;&#x0A;zMDw+x8Dw8O3DKoS3xlYWf4GAAQQEylFadTUG0DDGRwPHmK6cGv/OwYGoPeBgc7A8OMPKKAhqROY&#x0D;&#x0A;5tmY/zEABBATqeV04myg4X8ZHPceZL5w4wrQwA/fGBicNRgYxHjBlvz88pfh+VumDwABxExOJbDl&#x0D;&#x0A;wpsfrtrCK2+/YPdg//tbQvLTS6CrQbkVWLVdEGR4/YWlEyCAGCmpZTpD1UGpZT0f+x8Hfo4/DK++&#x0D;&#x0A;sn349ZdpYsWamw0AAQYA0lMHydArgUYAAAAASUVORK5CYII=' />
<image id='image_play'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI&#x0D;&#x0A;WXMAAAsMAAALDAE/QCLIAAAAB3RJTUUH0woJEyQqW/WmUwAABHxJREFUeNqFld1vlEUUh5+Z92O/&#x0D;&#x0A;utstLZYiLAViCKlA3YoGEz+CUVOJJqIxfsW7Ergg4Yb4ByjpH6CmF69y4U0v5NIEI8YbgoRQltSK&#x0D;&#x0A;GBILlCrtbrvdfZft7vs148WWpTW0TnIymcyZJ79zcs4ZwQYrf2LSAr0ZVB9aJ0EDuoFWc5Zyi1ec&#x0D;&#x0A;1/z13ooNoIeA90EPIsghrBQAyltGR/eASaHCc3l99pLjONH/gvMnJneDOIVhfdSRSma39GRkb3ec&#x0D;&#x0A;PT01ElbEX+UO7hQVC6WSKlcbDRU2Lln6wRf79fhlx3HCx4LzJyZ3gBjDzgwP7krw5sE0+7Zrnsha&#x0D;&#x0A;GLLlqoGlWsj0XMD5QpOLU0v4DfdmTJU/e1qfO/8QbvxH6dcdmcwbbx/qFJ++kuCpPoOYZfDNTxX2&#x0D;&#x0A;bo/hhxo/1BhS0JMx2bfDorfL4nZR97hN8eyi3lkYHkrMFgoF3Qb3HTw+ip3+4MhzWfHWkIVtSfxQ&#x0D;&#x0A;4wWad17I8tUPi+zaYuH5Ci9QeKFGa83WTRbppCX+mI26m762tnL9wtDQUGC01F47JIzY6IHdmfhw&#x0D;&#x0A;3kJK8ANFM2hBtvXEeHEgxcnvNM/kArxAr9y3ItjUIan7JjOloL8UbZ/s5eZtI398wgJOpdPpl14d&#x0D;&#x0A;TImuDvACTTNoqfUCze6tcQDee97g9Lhg7xZ/zX0zUNiGz/S8suvNMDDC6kUT2AwMZjKdMhsPcety&#x0D;&#x0A;o9Jm/KTNh1/C0QMuUaSZLUdMzWVxG0lqdEhFZcAVuZwJ9CFkrictaPiKhq/QK+Wi1yn0FjzD/t4K&#x0D;&#x0A;k3+nmHVbEWGaIIw+DDsngSQylkpaAZW6wl1WeL6m6ev2vp7y3+azlJaTj5pCCJCxhIB0O263aTFf&#x0D;&#x0A;lRRdSbUhqTQM7lViXJ1JbZgWPzIQgpa1m0NJE3QD5S3P1xPUo3grfkAjqPk2Wq+f79dHV7WwWGmf&#x0D;&#x0A;qNkUOvRMtJoD7lWX1c5IJNY81Mh1p8nhMxCsTAjTAAk8aHigo6JU9TlpKbcITOKVlWVo7FUWMyIe&#x0D;&#x0A;J/nwGQBF0opIWhFxM8I2I4S/qEyat7L67n3zivOaP3Ts8rnIq35iRYmurrS9RqTSAJn2eWSsxrY0&#x0D;&#x0A;CKHbfq354aOaS/VENH+h01gomwB5ffbStXDk+1qldKy/u4uYKR7VG4/Ap7+dJ2uDth/mtOXjhZqZ&#x0D;&#x0A;yhLKr/6yR/78K1AzAAqFgt6W/3jaC9irVLTjyW5DJGOCmKWJWZqX96X5fPw+MbN1jtutPWZqBAG3&#x0D;&#x0A;Zly1WK5OdEc3xrLinxttMMCRvLW4qHMT1YY54C6H/emkxaa0iW1JLt+sY5tijVkGLFQDpqarzJXc&#x0D;&#x0A;ic3h9dGcLFwFFhzHidrgQqGgh4eS5UXdf73aMJKlatBfWw7tuBmKVMLElBIpQOuIxaU6v99ZVn/O&#x0D;&#x0A;1B5UKu6P3dGNsRVo0XGc4LE/yMjIiARSU7x7OJQdRxXWgJSiL50wEgC1RtRUkSqaNG/Fo/kLKzmd&#x0D;&#x0A;Byrr/iCr4AKwi1F/1hW5HIadE5AWKCl06ElVn8vqu/c7jYUyUAMajuOo1Yx/AWXzQW5ayEXoAAAA&#x0D;&#x0A;AElFTkSuQmCC' />
<image id='image_pause'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI&#x0D;&#x0A;WXMAAAsMAAALDAE/QCLIAAAAB3RJTUUH0woJEyUmS1jbOQAABDRJREFUeNqdlc9vG0UUxz8zu7P+&#x0D;&#x0A;Edtx86PBhboJEapQKVQOReoNIVUoVCBUpAqBxC2oPSAhceDAFal/AfSwEhcOXHqAUxHlRFWgInWV&#x0D;&#x0A;mlBUqWmaFpI4sROva+/auzvDwW2apElBPOmr0Zt985mn2fdmBE+w0pkZBWYYdAFj0mAA42P0ktJe&#x0D;&#x0A;9Yp7vLvbWvEE6DHgFJgjCIoI1QeA7rQx8V1gRujofMl8ddl13fhfwaUzM+MgPsZS72X60vmnhnJy&#x0D;&#x0A;ZDDJwaEmKRVzq55hvqpZXVnR9Ybv68i/rMz9z1803/zium60I7h0ZuYAiHM4uckjz6Z442iWw/sN&#x0D;&#x0A;e/MKS/ZCDbDWjJhbCrlQDrhUWaPrezcSuv7pC+b8hYdwa1umX2RyudffOtYvPng1xXMFi4SyCGPo&#x0D;&#x0A;RmZDlhQM5WwOH1CM7FHcrpohLxAv18xYeXIida9cLpsNcOHo6bM42XdPvJIXb04oHCXpRoZOuE1d&#x0D;&#x0A;TSfUdCKDMYZ9A4psWok/7sWDQdeofVy7ODExEVq9bK8eE1bi7EvjueRkSSEldEPNTxWPucWAucWA&#x0D;&#x0A;woCi3dFcqjSZW+wwtxgwskcRhIaBjKTVtVlYCUdX4v0zI9y4bZdOTyuMOZXpS+ZK4w6x1jRaBoCP&#x0D;&#x0A;3i5snP8PV9d3nYu14WAh5vqtRLZey5yshqO/2sAwcCSX65f5ZITXkrvWdaMVbfGvzwcAVJbyeH6a&#x0D;&#x0A;JhmpWT/kiWLRBgoIWRzKCvyuxu9qzA51WJlvk0tt3XR6oVfa97xkb8K2QVgFLKdoA2lkoi+tQtZb&#x0D;&#x0A;GinAsXfuG8/XW/y/mlkc61FvCCFAJlJCk7U3FgWK5YbBkpBNCcy2nL+d3cdAyueTbZt1YwvxMNQ8&#x0D;&#x0A;bA4tbTA+utNebqVoxcmNj2aHbq/7qV3Pvwc3EAeBMFHHxugl4G6jrcdikeL/mG2BBO77HTBxVerW&#x0D;&#x0A;klTaqwIzdOpaWQZnk/6LpVVM0o5x7BjRrWmb4Gbe3FmUV9zjXaGj83Gn0VDxGsPpFnsfaLON5ZuM&#x0D;&#x0A;5ZuPgQuZXqyK19DBWisZL1/st1brAmBqasq6ak19mctmPjw8voeELXr1ZrZdVebRsPmHdSJD5dYa&#x0D;&#x0A;zfXV70p8/RkwbwGUy2XzTOn9uU7I81rHB54etEQ6IUgo05O9dUw6j3xByM0FT9fqjenBePZcXvw9&#x0D;&#x0A;CzQ3LqETJVWrmeJ0w7cPee1oNJtWDGRtHCVxbPGYlAWrjZDKXIOlFW96OLp2tijLvwGrruvGG+By&#x0D;&#x0A;uWwmJ9L1mhm91vCt9EojHG22IydpR6IvZWNLiRRgTExtrcXv823950Lz/vq69/1gPHvuAbTqum64&#x0D;&#x0A;4wsyNTUlgb4K77wWycxJjTokpShkU1YKoOnHgY511Sa4mYyXLx6UP/4MLAPru74gm+ACcKrxaN4T&#x0D;&#x0A;xSKWUxSQFWgpTNSRurWUN3cW+63VOtAEfNd1t/T7P6XWFCRCYI3ZAAAAAElFTkSuQmCC' />
<image id='image_stop'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI&#x0D;&#x0A;WXMAAAsLAAALCwFtBIS3AAAAB3RJTUUH0woJEwkMqdJ5QQAAA+9JREFUeNqdlduPU0Ucxz8z59Ke&#x0D;&#x0A;bk/pXrgUtSyi2ZgVgq2Y8EKMiRok+oAJUUz0aQm8mfjgk0+a8BcYHk5CfONBTDQmQoSYGEW8LN2s&#x0D;&#x0A;iBICyC1Lt7vttqe0p+05Z8aHssuCgIvf5JvJby6f+eU3mRnBQ1Q4MG2BXg0qh9Yp0IAO0KpsKb/y&#x0D;&#x0A;i/dy70FrxUOg24E9oLciyCOsAQBUt42OrwPTQkVHC/rwKc/z4v8EFw5MbwLxPoa1Nz2Qyq4byci1&#x0D;&#x0A;w0nGRpo4VsylWporFcX83JyqNYJARcEpS9/6ZIs+ctrzvOi+4MKB6Q0gDmFndm590uG1bS6bn9Cs&#x0D;&#x0A;yVoYsj9VAwvNiMvlkGOlDj+cXaAX+H8lVO3DZ/XRY4tw455MP01nMq++sX2VePdFh6dzBgnLIIyh&#x0D;&#x0A;F+klG1IwkjHZvMFi7aDF3xU94nfE81W9sbSz6NwolUp6CZzbtv8gtvvWrhey4vWihW1JepGmG97j&#x0D;&#x0A;nqIbKrqRRmvN+iELN2WJP2/Ew52ettYzdaJYLIain+2Z7cJIfrPlqaHs3h0OriP5dipgJXrlOYcw&#x0D;&#x0A;0nz1a8D3U5WG0Z15bzNfHDcL+ycttN6THkhmCptsYqVotDQAH7295qHQj49UaHcVnZ5iLBfz+6WE&#x0D;&#x0A;W6umd1fC0Z9NYDWwNZNZJbPJCL8leRR99mMCAD9I0SQtFfVxX+TzJpBDyPyIKwh6iqCn6Oe7sg2E&#x0D;&#x0A;6nGxlukHpgnCyGHYeRNIIRMDKSuk3lJIAbYpVgS9NJ+8exMhQCYcoXDNxU6/YzHb0BgSXEesuBQX&#x0D;&#x0A;axnE4nS9eDmUNEEHqG57tuXQipNLgxrxSLXuwzXEnY7QUddEqzJwvdFWG2Ph8H9kGv0TuRV0QccV&#x0D;&#x0A;qVplaSm/AkzTrSnL0NjLvFIlzRjbjBG9qjLpXMjqqzcFQHHf6R3CTn+Zy60bHHTtRyqCISFSsNDs&#x0D;&#x0A;UZ6ZaTqd8x+MyZNfmwAFffjUmWji82Z9bt/o8CAJU/SfJ33PU6XvNMsPrBtprtUXUL3Gd2Py5E9A&#x0D;&#x0A;0wAolUr68cI7l7shzygVb3hs2BCphCBh6b7Nu9ukfScWhFy45qtqrTE5HJ87lBUz55bAALsKVrWq&#x0D;&#x0A;85ONwBz329Gom7IYck1sS2Kb4l+2DJhvhJy93KA850+ujqYO5mXpN2De87x4CVwqlfTOYqpW1aNT&#x0D;&#x0A;jcBIzTXC0WY7spNmJAYcE1NKpACtY6oLLf640lbnrzVv1ev+8eH43KHb0IrneeF9f5CJiQkJDJzl&#x0D;&#x0A;zZcimd6tsMalFDnXMRyAZhB3VKwqJp0LyXj2xO2azgL1B/4gy+ACsCvxaNYX+TyGnRfgCpQUOupK&#x0D;&#x0A;1Spn9dWbq4z5GtAEAs/z1HLGP0K45L8u7KzsAAAAAElFTkSuQmCC' />
<image id='image_terminate'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A&#x0D;&#x0A;/wD/oL2nkwAAAAlwSFlzAAALCwAACwsBbQSEtwAAAAd0SU1FB9oFHAkAHliA9FIAAAOYSURBVDjL&#x0D;&#x0A;pZXNa1RXGMZ/551z78x1JnFijekQMpNWKaahoAsXboqIUNy0RSQOIt0Irlu66D9Q8A+o4Cqb0tJg&#x0D;&#x0A;LRS6aEVwp22pKDKtipKQSciHExN1Mh935s59TxfJ2FSbNLYPPIvzcM7vvLyHc45hC00UCh7Q75zL&#x0D;&#x0A;KexYj5sKi865ykezs+3N1potoIeBMeAAkBdIA8TONRRmgTuxc5d9kevFcjn+V/BEobAX+NjC6d3W&#x0D;&#x0A;ZnM7d4o/PIy/bx+SStGenqb18CGPlpb0URQ1m85dd8597ov8XCyXO/8InigUCsDFwJjjI4OD7Dpz&#x0D;&#x0A;huDQIbzBQYznPZ8XLSzQunePpxMT/H7rFlXVewqfecb82IWbFyr94nVr39t7/Lhkx8bwBga2OgLi&#x0D;&#x0A;ep3VK1eYHB930+32w9i5s77IjWK5rInupJPZ7PnAmOLbx46ZvtOnEd/HheFL1mYTbTZxYQhxjD88&#x0D;&#x0A;TDoITLVUeq2u6iWMuXoym40swDf5/GELp0ZyOTJHj6K1GiuXLrEdZcfGCA4e5K1Sifrt2+/X4/g7&#x0D;&#x0A;X+Qn+3U+7ymM7bK2N3PkCHQ6xMvLAAyNj28JnT17Fq3V0EaDYHSUPaVSz4zqiVD1Fwv0AwdynieS&#x0D;&#x0A;ydBZWeFV9PjCBQC0WgUQhVGFvAVyAnm7Zw/aaKCNBq+qZwsLACSNQSDnGZO3wI6EMWmTTK61QARJ&#x0D;&#x0A;pbYFbE9NvZQljAlwrsd2A63ViObmMJ6H9Pa+UrXSZfwViwWasXON1vIyrtUCVf6PIudCoGUVFoHZ&#x0D;&#x0A;J3H8xu56/T/BPGMwxlDtdHDOVTqwKM65CnCnoapiLRu9bbDnYa0lVFXggYUFA/Dl0NC76UTi+5Fk&#x0D;&#x0A;ss/r7weR7ZcrAp0O0dISd8Nwtab6aUrkBwvgi1wPVb+di6Jzb2YymGRybUG3392NNvZ/Q+ZaLebm&#x0D;&#x0A;52moXkuJ3ABWEwCXnz1zH/b2TjWdG0lXq4X00JCRTAYJgjWnUmvujjdkBli5e1dnouhmDBetMX88&#x0D;&#x0A;BwOc6utbjuHm0zgelUplOB0E2IEBjO9v6s7cHPOlEpPt9s3IufMpkd+Ax8VyOX7xPU5Ezr3jnPuk&#x0D;&#x0A;L5H4YG8y2ZPav1/8fB66h9np0J6ZIbx/XydbrfqTOL6m8FVK5FegUiyXW5v9IAKk26pHE8acUBj1&#x0D;&#x0A;jMn1igQAVdWwrVoBHihcXe/pI+Dppj/IBrgB/FA1q5D3jMkL9Kw/Mq3IuUULC77ICrAKNIvl8t9u&#x0D;&#x0A;1p/7Z60tC8zBfwAAAABJRU5ErkJggv////8=' />
<image id='image_exit'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI&#x0D;&#x0A;WXMAAAsLAAALCwFtBIS3AAAAB3RJTUUH0woKFhstiTF0yQAABL9JREFUeNqFld9vVEUUxz8z9969&#x0D;&#x0A;+7Mt2xaowhZEUCm/QgXkQfwBCAUxIsZEIyEhKc+8+OMPICHxlRAeNhr1xQdJjA8I4UeCNIAoLNYC&#x0D;&#x0A;EiJUC4R2t90f925393bvnfFhoVAseJJvJpPMfOacOXPmCJ5i/d1rLK11u4IOjY5qAERVwXDJMrMb&#x0D;&#x0A;L5ybeNJe8RToWuADrfUKIGVBDMBDVxTc1tDvC3n4q5XLzqbT6eB/wf3daxYI2GvBR9F4vCUxa6aM&#x0D;&#x0A;zJ6Nu2ghQSRC/OYg6p+/yeVGVTWfr1aVOlu2zH3fLes6n06n/WnB/d1rOgUcSkBPdMVyElt60Eu7&#x0D;&#x0A;sNrbEYbRWKQ1fqFI/dYtaseOU+jrw/Em/izY9mffL3nx6AO48ZinB5vi8U0t72wTkZ0fYyxaiGHb&#x0D;&#x0A;4PvoiXpD9TrCMDDb2rCWLMGaNQs9ONgmHOfl+WP5TKRn851MJqPNB2Ct9ScJIXqaN6zH2tqD0Zqk&#x0D;&#x0A;euUqAHbn3PvBaXQjg0wM3QYgsrqbpF8X6utvF/mVyh6gv7e3t2wAXFq5eq0txP6mZcvCVs9mQp0p&#x0D;&#x0A;qleu0vTGa0QWLaT0cx/StlGeh/Y8an/dJLltK3Znikr/AOYzHZjjFepDQ/NSudH+a7PaB42LK1dZ&#x0D;&#x0A;wN5EU2JdbP2bguQMrJkziS5+CRkKoYOAWNdi3F9+RWhNPTdK247tjQRJSXjBc4ydOIlua0UPDob8&#x0D;&#x0A;8fF6yZB9EmgHVjQ3NUl/RguB4+KeOz8JFYaBqtVo27Ed33Vp27EdrdSUl5TsO0vrkaPMdMvSVKpr&#x0D;&#x0A;ruOmJNAhISVaW1GVCn6hgJ/PM5z+EmEYBJUKMhwGmOLpA3M/3En45i3sbI44AgPREUKkJBC1EbF6&#x0D;&#x0A;LIYqlVCOg/Y8dK3GvQMHMaLRJ1bmxNZ3ieZG7z9cgQBsiCBEYvJoq+Qgh0eQ2Ryy5GAUi9i37+Ds&#x0D;&#x0A;3jM9dd16Qq6LMTEBQkzCAZQQ0gRR9dCVyEiWcKX6sCS1IuSWMY4fmR585hSsW/9wLiVaKWpQ84Xw&#x0D;&#x0A;pIJhBbeVUyL8iOxqrQENgif/UmdONUbTBNOkVq8ToLPjUgzLkmVmNfTnQWnTQlsNyZ9+bGwyjCnh&#x0D;&#x0A;A+B5U+BBOExg2+QFqmaaN4Zamu/JjRfOTfhCHi4FfqlgmYy3t5Nd+wq6UpninLNrN878Tpxdu8G2&#x0D;&#x0A;/+N8wTIpBP74SDh8ItfclDcA5Ntb7iy/Ozy/ju42O+cifJ/y5d9JrHsVgJFPP8ePx/DjMeqxGOUT&#x0D;&#x0A;J4m/tQGAe/v2UwmHGBsaouh5x35YuvgbIDv5u51etXZxTAUHYnPmvB5fulSakQg8VgjTme95lAcG&#x0D;&#x0A;VOnu3Ut/JJNfXOyccxrIT16gtbVnrHOscNEsFrt8x5lnxeOYyRnIUAgRsh7KagjLpJ4bpTQwgDs8&#x0D;&#x0A;cjHT3rY/k3r2N2A0nU4Hk+BMJqOjPZvy88byl42SE63nsvN8txzyw2FhxmJI0wQpCdCMj41RuXJV&#x0D;&#x0A;udevl91i8diV1uSh+9BsOp2uT9tBent7JRB7f+Dam3Hff89UqksYRoeRSEQAAtetqSDI1kzzxkg4&#x0D;&#x0A;fOLkC8+fA0aA4hM7yCNwAYTmZ3Mtcx03FUKkECKhhJC+EN64FMNDLc33cs1NecAFqul0ekpC/gXY&#x0D;&#x0A;/CPMCV0dPwAAAABJRU5ErkJggg==' />
<image id='image_shred'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI&#x0D;&#x0A;WXMAAAsOAAALDgFAvuFBAAAAB3RJTUUH0woCFhYuYCJz0QAAAblJREFUeJyllb+q8jAYh58ePhFd&#x0D;&#x0A;pHVxcdOlgw6ODuLU1avwAgRXBS9BvDZnF/+A0IoK2jZtzhRPk9Ni/c4PSpq8eZ/3lwQSq9PpoOR5&#x0D;&#x0A;nnw+n4RhCEAYhtqnYmEYEkWRSrPI0b9sJ4oilstl3rxXodvtxuVyYTqdslqtWCwWMg+ugeM4BqDd&#x0D;&#x0A;bhfCgyDg8Xhg2zau6xbCv0zH72TbNrVaDcdx6Pf7Lzgg/wRWcMdx2O/3hfDcrSgjx3GYz+f4vo/v&#x0D;&#x0A;+wRBoMV/HV5Zrddrrtcru92O8/nMdrtls9nkgz9xLKWkXq/TbDaRUtJqtf7uWAiBEIIkSWg0GgD4&#x0D;&#x0A;vq/N0Q6vjOMsNEkShBBUq1UqlUox+BMpqBAiN/7RHsdxTJIkRFGkQZXrQnDRHkspX8vPg6pYVm/3&#x0D;&#x0A;OAtV/yb0LVip2+1qreu6SCnp9XoIIRgOh6Rpymg0AsDzvF+Mt47VmHlIaZpq46UcZxNVgmrVuFnQ&#x0D;&#x0A;LKyBLevn5lMTiwBmqwrmgqX8ufnMRLOAWkEpx1mZABNUVKgQfL/fARgMBgAcDgcAxuMxAMfjEYDJ&#x0D;&#x0A;ZALA6XQCYDabaRwr+5iivwLWf/Rf+gaq5nuqnqksPAAAAABJRU5ErkJggg==' />
<image id='image_save'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI&#x0D;&#x0A;WXMAAAsSAAALEgHS3X78AAAAB3RJTUUH0wgaFi8epxLi1wAAAsJJREFUeJzVlD2PHEUQhp/ZnTV3&#x0D;&#x0A;PvDHBcgykgMCEAGCf4CQkAgQiD8AMREidQbRRQT8A2JIQCBBgiFzAEIyEPpkGWTJvhV3uzO7091V&#x0D;&#x0A;1dUEMzvHyWs7dkutqu4Zvf3029UNT1urNskPP/76UV1PD1Qzs3pC03bEpGTLzOopZhkRxSyjaqhu&#x0D;&#x0A;onHnnznzo8V3zWL18c83Pl8A1Bvhup4evPTKtUtQce3qPp9+8Q3LJnDhuV0+++T9x9J9f+MWf966&#x0D;&#x0A;/cG3X/0C8OEZ4ZSULgrVsImbvx9y+cJ56nryxG0vmg4H3PO7I+gmkWF7VdUL71/c4+UXr/DClctP&#x0D;&#x0A;FBYxlssVKck4dyosiqgxqXrCt994lavPX2T/0rOPFXUvLJuW5aLBLD8snMQQzZRinDQd7731OqUU&#x0D;&#x0A;SoH5cTvk/XgTzYyTk5ajB8d0IWJm24h7K7qY+O2PO6hlzDKWfci9r4icETFiSDTLlvU6cHzSEqM8&#x0D;&#x0A;ilgRVUIcSspyX1KWB/+NmJQYhbZdEbpISkJKiogQYyTnLcI6WOHunN89h2UfateoiuMGk5KZlszO&#x0D;&#x0A;bMpk9xyzScVsOuEoBFIScvZHERs7z8x4583XcHdCEEJIpKSo2mCX9QctNvYvv/6JeUiP9xjALBNC&#x0D;&#x0A;IgRB1bYIn10giSCi261ISRHNmBp37/7L/fsNqjZcYR2usI72mPXiOzs1KQpJ0nZhGchMlaoq7O3V&#x0D;&#x0A;iIAq1HWhrmE6LZjBZFJQLVRVARwZiN23eZyU1bojm7FaRRaLbqTqCU8fIREdH6HZrBqskO3EMSTW&#x0D;&#x0A;60BxR9Vwz+T8cDfro7uNQv1Csp04xEQICbxgZpTiuPe9z/Mw7mPOm7ygIqgo7luIwzqyXrTkbKxW&#x0D;&#x0A;y/HkT6vg7CGq5vGfdduQujW+rY6P54vr9/5+cBBT4vZfh+RcRuKcC6X4/+ZOv7kX7h3O6YLiznWe&#x0D;&#x0A;2vYfEhrg/995S7wAAAAASUVORK5CYII=' />
<hbox id='EPTF_Top_hbox' orientation='vertical'>
<label disabled='false' flex='0.500000'
value='Traffic case overview' />
<tree disabled='false' hidecolumnpicker='false'
id='Traffic_TC_tab' rows='0'>
<treecols>
<treecol editable='false' flex='3.000000'
label='Scenario name' widgetType='string' />
<treecol editable='false' flex='2.000000'
label='Status' widgetType='statusLEDWithText' />
<treecol editable='true' flex='1.000000'
label='Start' widgetType='toggleButton' />
<treecol editable='true' flex='1.000000'
label='Stop' widgetType='toggleButton' />
<treecol editable='false' flex='3.000000'
label='Traffic cases' widgetType='string' />
<treecol editable='true' flex='1.000000'
label='StartTC' widgetType='toggleButton' />
<treecol editable='true' flex='1.000000'
label='StopTC' widgetType='toggleButton' />
<treecol editable='false' flex='2.000000'
label='Status' widgetType='statusLEDWithText' />
</treecols>
<treechildren>
<treeitem>
<iterator element='EntityGroups'
id='EGrp' source='ExecCtrl' >
<iterator element='Scenarios'
id='Scenario' source='ExecCtrl'>
<params>
<dataparam name='EntityGroup'
value='%EGrp%'></dataparam>
</params>
<iterator element='TrafficCases'
id='TC' source='ExecCtrl'>
<params>
<dataparam name='EntityGroup'
value='%EGrp%'></dataparam>
<dataparam name='Scenario'
value='%Scenario%'></dataparam>
</params>
<treerow>
<treecell id='EPTF_ExecCtrl.TC_Overview.EG.%EGrp%.SC.%Scenario%.TC.%TC%.1' label='%EGrp%.%Scenario%'
tooltiptext='' />
<treecell id='EPTF_ExecCtrl.TC_Overview.EG.%EGrp%.SC.%Scenario%.TC.%TC%.3' label='' >
<externaldata element='ScStatus'
source='ExecCtrl'>
<params>
<dataparam name='EntityGroup'
value='%EGrp%'></dataparam>
<dataparam name='Scenario'
value='%Scenario%'></dataparam>
</params>
</externaldata>
</treecell>
<treecell id='EPTF_ExecCtrl.TC_Overview.EG.%EGrp%.SC.%Scenario%.TC.%TC%.4' label='' imageid='image_play' >
<externaldata element='ScStart'
source='ExecCtrl'>
<params>
<dataparam name='EntityGroup'
value='%EGrp%'></dataparam>
<dataparam name='Scenario'
value='%Scenario%'></dataparam>
</params>
</externaldata>
</treecell>
<treecell id='EPTF_ExecCtrl.TC_Overview.EG.%EGrp%.SC.%Scenario%.TC.%TC%.5' label='' imageid='image_stop' >
<externaldata element='ScStop'
source='ExecCtrl'>
<params>
<dataparam name='EntityGroup'
value='%EGrp%'></dataparam>
<dataparam name='Scenario'
value='%Scenario%'></dataparam>
</params>
</externaldata>
</treecell>
<treecell id='EPTF_ExecCtrl.TC_Overview.EG.%EGrp%.SC.%Scenario%.TC.%TC%.7' label='%TC%' />
<treecell id='EPTF_ExecCtrl.TC_Overview.EG.%EGrp%.SC.%Scenario%.TC.%TC%.8' label='' imageid='image_play' >
<externaldata element='TcStart' source='ExecCtrl'>
<params>
<dataparam name='EntityGroup'
value='%EGrp%'></dataparam>
<dataparam name='Scenario'
value='%Scenario%'></dataparam>
<dataparam name='TrafficCase'
value='%TC%'></dataparam>
</params>
</externaldata>
</treecell>
<treecell id='EPTF_ExecCtrl.TC_Overview.EG.%EGrp%.SC.%Scenario%.TC.%TC%.9' label='' imageid='image_stop'>
<externaldata element='TcStop' source='ExecCtrl'>
<params>
<dataparam name='EntityGroup'
value='%EGrp%'></dataparam>
<dataparam name='Scenario'
value='%Scenario%'></dataparam>
<dataparam name='TrafficCase'
value='%TC%'></dataparam>
</params>
</externaldata>
</treecell>
<treecell id='EPTF_ExecCtrl.TC_Overview.EG.%EGrp%.SC.%Scenario%.TC.%TC%.10' label=''>
<externaldata element='TcStatus' source='ExecCtrl'>
<params>
<dataparam name='EntityGroup'
value='%EGrp%'></dataparam>
<dataparam name='Scenario'
value='%Scenario%'></dataparam>
<dataparam name='TrafficCase'
value='%TC%'></dataparam>
</params>
</externaldata>
</treecell>
</treerow>
</iterator>
</iterator>
</iterator>
</treeitem>
</treechildren>
</tree>
<hbox flex='0.000000' id='Execution_Control.buttonBar'
orientation='horizontal'>
<hbox flex='1.000000' orientation='vertical'>
<spacer flex='0.000000' />
<hbox disabled='false' flex='1.000000' id='EPTF_Main_hbox_all'
orientation='horizontal'>
<hbox disabled='false' flex='0.000000' id='EPTF_Main_hbox'
orientation='horizontal'>
<spacer flex='0.000000' />
<button disabled='false' flex='1.000000'
id='EPTF_start_test_button' imageid='image_play' label='Start Test' >
<externaldata element='Start' source='ExecCtrl'/>
</button>
<spacer flex='0.000000' />
<button disabled='false' flex='1.000000'
id='EPTF_stop_test_button' imageid='image_stop' label='Stop' >
<externaldata element='Stop' source='ExecCtrl'/>
</button>
<spacer flex='0.000000' />
<button disabled='false' flex='1.000000'
id='EPTF_terminate_test_button' imageid='image_terminate' label='Terminate Test' >
<externaldata element='Terminate' source='ExecCtrl'/>
</button>
<spacer flex='0.000000' />
<spacer flex='0.000000' />
<spacer flex='0.000000' />
<button disabled='false' flex='1.000000'
id='EPTF_snapshot_button' imageid='image_save' label='Snapshot' >
<externaldata element='Snapshot' source='ExecCtrl'/>
</button>
<spacer flex='0.000000' />
<button disabled='false' flex='1.000000'
id='EPTF_exit_ttcn_button' imageid='image_exit' label='Exit' >
<externaldata element='Exit' source='ExecCtrl'/>
</button>
</hbox>
</hbox>
</hbox>
</hbox>
</hbox>
<hbox disabled='true' flex='0.000000'
id='EPTF_ExecCtrl.Statistics.eventStatus' orientation='horizontal'>
<label disabled='true' flex='0.000000'
id='EPTF_ExecCtrl.Statistics.eventStatus.text' value='ExecCtrl Status:' />
<spacer flex='0.000000' />
<tree disabled='false' flex='1.000000'
hidecolumnpicker='true' id='EPTF_ExecCtrl.Statistics.eventStatus.main'
rows='1.000000'>
<treecols>
<treecol editable='false' flex='1.000000'
label='EndOfConfig Status' widgetType='statusLEDWithText' />
<treecol editable='false' flex='1.000000'
label='ReadyToRun Status' widgetType='statusLEDWithText' />
<treecol editable='false' flex='1.000000'
label='GUIDone Status' widgetType='statusLEDWithText' />
<treecol editable='false' flex='1.000000'
label='EndOfTest Status' widgetType='statusLEDWithText' />
</treecols>
<treechildren>
<treeitem>
<treerow>
<treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.EndOfConfig.StatusLED'
label=''
tooltiptext='EndOfConfig Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.EndOfConfig)' >
<externaldata element='EndOfConfig' source='ExecCtrl'/>
</treecell>
<treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.ReadyToRun.StatusLED'
label=''
tooltiptext='ReadyToRun Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.ReadyToRun)' >
<externaldata element='ReadyToRun' source='ExecCtrl'/>
</treecell>
<treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.GUIDone.StatusLED'
label=''
tooltiptext='GUIDone Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.GUIDone)' >
<externaldata element='GUIDone' source='ExecCtrl'/>
</treecell>
<treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.EndOfTest.StatusLED'
label=''
tooltiptext='EndOfTest Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.EndOfTest)' >
<externaldata element='EndOfTest' source='ExecCtrl'/>
</treecell>
<!-- <treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.EndOfConfig.StatusLED'
label='[led:green]EndOfConfig'
tooltiptext='EndOfConfig Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.EndOfConfig)' />
<treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.ReadyToRun.StatusLED'
label='[led:green]ReadyToRun'
tooltiptext='ReadyToRun Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.ReadyToRun)' />
<treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.GUIDone.StatusLED'
label='[led:green]GUIDone'
tooltiptext='GUIDone Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.GUIDone)' />
<treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.EndOfTest.StatusLED'
label='[led:blue]EndOfTest'
tooltiptext='EndOfTest Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.EndOfTest)' /> -->
</treerow>
</treeitem>
</treechildren>
</tree>
<spacer flex='1.000000' />
</hbox>
</window>
</Widgets>
";
f_EPTF_UIHandler_init_CT("ExternalData_TimeElapsed");
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_simpleBehaviorWithoutPhases(mtc, "SimpleExecCtrl"));
var charstring vl_dataVarName; //dummy for output
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
timer T_guard, T_alt;
T_alt.start( 0.0 );
T_guard.start( 15.0 );
// wait until ExecCtrl DataSource is registered
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[v_ready] T_alt.timeout{}
}
action(" ExecCtrl ready, starting create GUI");
f_EPTF_UIHandler_createGUI(vl_gui);
//f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName);
action("Testing Toggle Buttons...");
var charstring vl_varName;
f_EPTF_DataSource_getData(
pl_dataVarName := vl_varName,
pl_source := "ExecCtrl",
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementScStart,
pl_params := {
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc"}
}
)
var integer vl_startWScVarIdx := f_EPTF_Var_getId(vl_varName);
f_EPTF_DataSource_getData(
pl_dataVarName := vl_varName,
pl_source := "ExecCtrl",
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTcStart,
pl_params := {
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultSc"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"}
}
)
var integer vl_startTcVarIdx := f_EPTF_Var_getId(vl_varName);
f_EPTF_DataSource_getData(
pl_dataVarName := vl_varName,
pl_source := "ExecCtrl",
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTerminate,
pl_params := {}
)
var integer vl_terminateTestVarIdx := f_EPTF_Var_getId(vl_varName);
T_guard.start( 5.0 ); T_guard.timeout;
// press the terminate test button
f_EPTF_Var_adjustContent(vl_terminateTestVarIdx,{intVal := f_EPTF_Var_getIntValue(vl_terminateTestVarIdx)+1});
T_guard.start( 5.0 ); T_guard.timeout;
// press the start WSc checkbox (==toggleButton)
f_EPTF_Var_adjustContent(vl_startWScVarIdx,{boolVal := true});
// press the start Tc checkbox (==toggleButton)
f_EPTF_Var_adjustContent(vl_startTcVarIdx,{boolVal := true});
// wait a few seconds so that the elapsed time var could change:
T_guard.start( 11.0 ); T_guard.timeout;
// check SC/Tc statuses:
f_EPTF_DataSource_getData(
pl_dataVarName := vl_varName,
pl_source := "ExecCtrl",
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTcStatus,
pl_params := {
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultSc"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"}
}
)
var integer vl_statusTcVarIdx := f_EPTF_Var_getId(vl_varName);
f_EPTF_DataSource_getData(
pl_dataVarName := vl_varName,
pl_source := "ExecCtrl",
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementScStatus,
pl_params := {
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc"}
}
)
var integer vl_statusWScVarIdx := f_EPTF_Var_getId(vl_varName);
if (f_EPTF_Var_getStatusLEDValue(vl_statusTcVarIdx)!={led_green,"Running"}) {
setverdict(fail,"Tc is not started");
f_EPTF_Base_stop(fail);
}
if ({led_green,"Running"}!=f_EPTF_Var_getStatusLEDValue(vl_statusWScVarIdx)) {
setverdict(fail,"Sc is not started");
f_EPTF_Base_stop(fail);
}
// check stop buttons:
f_EPTF_DataSource_getData(
pl_dataVarName := vl_varName,
pl_source := "ExecCtrl",
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementScStop,
pl_params := {
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc"}
}
)
var integer vl_stopWScVarIdx := f_EPTF_Var_getId(vl_varName);
f_EPTF_DataSource_getData(
pl_dataVarName := vl_varName,
pl_source := "ExecCtrl",
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTcStop,
pl_params := {
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultSc"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"}
}
)
var integer vl_stopTcVarIdx := f_EPTF_Var_getId(vl_varName);
// press the stop WSc checkbox (==toggleButton)
f_EPTF_Var_adjustContent(vl_stopWScVarIdx,{boolVal := true});
// press the stop Tc checkbox (==toggleButton)
f_EPTF_Var_adjustContent(vl_stopTcVarIdx,{boolVal := true});
// wait a few seconds so that the elapsed time var could change:
T_guard.start( 11.0 ); T_guard.timeout;
// check SC/Tc statuses:
if (f_EPTF_Var_getStatusLEDValue(vl_statusTcVarIdx)!={led_blue,"Stopped"}) {
setverdict(fail,"Tc is not stopped");
f_EPTF_Base_stop(fail);
}
if ({led_blue,"Stopped"}!=f_EPTF_Var_getStatusLEDValue(vl_statusWScVarIdx)) {
setverdict(fail,"Sc is not stopped");
f_EPTF_Base_stop(fail);
}
setverdict(pass);
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_StartStopScTcPushButtonInTable() runs on myMTC_UI
{
var charstring vl_gui :=
"<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>
<window height='300.000000' id='EPTF_Main_Window' orientation='vertical'
title='TTCN constructed window' width='600.000000'>
<image id='image_ok'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABGdBTUEAAK/INwWK6QAAABl0RVh0&#x0D;&#x0A;U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAKTSURBVHjaYvz//z8DLQBAADEx0AgABBDN&#x0D;&#x0A;DAYIIBZGRkaqGca3ikGBlYmhnpWZIQAggBgZFzLsBwZzIUMCwwWyTZzPoMAANJCZEWgKA8MHZmYG&#x0D;&#x0A;R4AAYmSYzfAeLPmPwZEhnUTDZwINZGSo5+LgSvj28xsDkP0AiAMZkhkuAAQQE8Mvhg3ifOICDH8Y&#x0D;&#x0A;9jNMZjAgysBJQAOnMMznYOa472DokKAiosIANOcCw28GQ5ChICUAAQQyeCPQFgYzBzMBoMR+hh48&#x0D;&#x0A;hvcADexlmM/KzHpf01gzwSPUg+HKjSsMl25eOgB0mCNDJsMHmFKAAGJg6GIQYOhg+K/9Xfu/xGWJ&#x0D;&#x0A;/0D2e4Y2NMNbgQa2M8xn6mf6L3hE8L/GDw2weu553P8ZOoEhjAUABBAkSTQx7GcOZXZgUmdi+HPx&#x0D;&#x0A;D8P/Tf8/MPwHuuA/0AXAMGTgBEaKOQMDixkLAyMHUMsLBoY/i4Hqfv5fwFDHkIjNYIAAYgGTPxk2&#x0D;&#x0A;/r301+Gv/F8GBnUg3w3oiy3AYGEH0mZAPghzAA0DQoaHQPYSsJ5EhhaGBbhCDSCAIC4uA3qVjeE+&#x0D;&#x0A;QwGSzCsg5gdidiSxK0C8hwEUUYnAIFyAL34BAgiRO/KABscDLRDDofIqEG8DBg0TMIgmEE6WAAHE&#x0D;&#x0A;DGcZAg1lZ7BgkGAA+RkVg1y5H2goKK1PIS6tAwQQoqz4xXAQ7KrvaHgjEJ8AGvaHQZFhOvEZCCCA&#x0D;&#x0A;UAuKGGBSiwdGGC84ckBeZ2B4CjSMEejSxchplDAACCDU0u0/wwFgSDMwfATitUD8BBhB/0k3FAQA&#x0D;&#x0A;AogZhacHTLGfGQIYbgHZ74CGLgXG/mWGH+SUSwABhIqigcEQDXRjNErCIwsABBAjraomgACiWQ0C&#x0D;&#x0A;EEA0MxggwAAC5K2bqnDzRQAAAABJRU5ErkJggg==' />
<image id='image_configure'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAACXBIWXMAAAsTAAALEwEAmpwYAAAK&#x0D;&#x0A;OWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanZZ3VFTXFofPvXd6oc0wAlKG3rvAANJ7k15F&#x0D;&#x0A;YZgZYCgDDjM0sSGiAhFFRJoiSFDEgNFQJFZEsRAUVLAHJAgoMRhFVCxvRtaLrqy89/Ly++Osb+2z&#x0D;&#x0A;97n77L3PWhcAkqcvl5cGSwGQyhPwgzyc6RGRUXTsAIABHmCAKQBMVka6X7B7CBDJy82FniFyAl8E&#x0D;&#x0A;AfB6WLwCcNPQM4BOB/+fpFnpfIHomAARm7M5GSwRF4g4JUuQLrbPipgalyxmGCVmvihBEcuJOWGR&#x0D;&#x0A;DT77LLKjmNmpPLaIxTmns1PZYu4V8bZMIUfEiK+ICzO5nCwR3xKxRoowlSviN+LYVA4zAwAUSWwX&#x0D;&#x0A;cFiJIjYRMYkfEuQi4uUA4EgJX3HcVyzgZAvEl3JJS8/hcxMSBXQdli7d1NqaQffkZKVwBALDACYr&#x0D;&#x0A;mcln013SUtOZvBwAFu/8WTLi2tJFRbY0tba0NDQzMv2qUP91829K3NtFehn4uWcQrf+L7a/80hoA&#x0D;&#x0A;YMyJarPziy2uCoDOLQDI3fti0zgAgKSobx3Xv7oPTTwviQJBuo2xcVZWlhGXwzISF/QP/U+Hv6Gv&#x0D;&#x0A;vmckPu6P8tBdOfFMYYqALq4bKy0lTcinZ6QzWRy64Z+H+B8H/nUeBkGceA6fwxNFhImmjMtLELWb&#x0D;&#x0A;x+YKuGk8Opf3n5r4D8P+pMW5FonS+BFQY4yA1HUqQH7tBygKESDR+8Vd/6NvvvgwIH554SqTi3P/&#x0D;&#x0A;7zf9Z8Gl4iWDm/A5ziUohM4S8jMX98TPEqABAUgCKpAHykAd6ABDYAasgC1wBG7AG/iDEBAJVgMW&#x0D;&#x0A;SASpgA+yQB7YBApBMdgJ9oBqUAcaQTNoBcdBJzgFzoNL4Bq4AW6D+2AUTIBnYBa8BgsQBGEhMkSB&#x0D;&#x0A;5CEVSBPSh8wgBmQPuUG+UBAUCcVCCRAPEkJ50GaoGCqDqqF6qBn6HjoJnYeuQIPQXWgMmoZ+h97B&#x0D;&#x0A;CEyCqbASrAUbwwzYCfaBQ+BVcAK8Bs6FC+AdcCXcAB+FO+Dz8DX4NjwKP4PnEIAQERqiihgiDMQF&#x0D;&#x0A;8UeikHiEj6xHipAKpAFpRbqRPuQmMorMIG9RGBQFRUcZomxRnqhQFAu1BrUeVYKqRh1GdaB6UTdR&#x0D;&#x0A;Y6hZ1Ec0Ga2I1kfboL3QEegEdBa6EF2BbkK3oy+ib6Mn0K8xGAwNo42xwnhiIjFJmLWYEsw+TBvm&#x0D;&#x0A;HGYQM46Zw2Kx8lh9rB3WH8vECrCF2CrsUexZ7BB2AvsGR8Sp4Mxw7rgoHA+Xj6vAHcGdwQ3hJnEL&#x0D;&#x0A;eCm8Jt4G749n43PwpfhGfDf+On4Cv0CQJmgT7AghhCTCJkIloZVwkfCA8JJIJKoRrYmBRC5xI7GS&#x0D;&#x0A;eIx4mThGfEuSIemRXEjRJCFpB+kQ6RzpLuklmUzWIjuSo8gC8g5yM/kC+RH5jQRFwkjCS4ItsUGi&#x0D;&#x0A;RqJDYkjiuSReUlPSSXK1ZK5kheQJyeuSM1J4KS0pFymm1HqpGqmTUiNSc9IUaVNpf+lU6RLpI9JX&#x0D;&#x0A;pKdksDJaMm4ybJkCmYMyF2TGKQhFneJCYVE2UxopFykTVAxVm+pFTaIWU7+jDlBnZWVkl8mGyWbL&#x0D;&#x0A;1sielh2lITQtmhcthVZKO04bpr1borTEaQlnyfYlrUuGlszLLZVzlOPIFcm1yd2WeydPl3eTT5bf&#x0D;&#x0A;Jd8p/1ABpaCnEKiQpbBf4aLCzFLqUtulrKVFS48vvacIK+opBimuVTyo2K84p6Ss5KGUrlSldEFp&#x0D;&#x0A;Rpmm7KicpFyufEZ5WoWiYq/CVSlXOavylC5Ld6Kn0CvpvfRZVUVVT1Whar3qgOqCmrZaqFq+Wpva&#x0D;&#x0A;Q3WCOkM9Xr1cvUd9VkNFw08jT6NF454mXpOhmai5V7NPc15LWytca6tWp9aUtpy2l3audov2Ax2y&#x0D;&#x0A;joPOGp0GnVu6GF2GbrLuPt0berCehV6iXo3edX1Y31Kfq79Pf9AAbWBtwDNoMBgxJBk6GWYathiO&#x0D;&#x0A;GdGMfI3yjTqNnhtrGEcZ7zLuM/5oYmGSYtJoct9UxtTbNN+02/R3Mz0zllmN2S1zsrm7+QbzLvMX&#x0D;&#x0A;y/SXcZbtX3bHgmLhZ7HVosfig6WVJd+y1XLaSsMq1qrWaoRBZQQwShiXrdHWztYbrE9Zv7WxtBHY&#x0D;&#x0A;HLf5zdbQNtn2iO3Ucu3lnOWNy8ft1OyYdvV2o/Z0+1j7A/ajDqoOTIcGh8eO6o5sxybHSSddpySn&#x0D;&#x0A;o07PnU2c+c7tzvMuNi7rXM65Iq4erkWuA24ybqFu1W6P3NXcE9xb3Gc9LDzWepzzRHv6eO7yHPFS&#x0D;&#x0A;8mJ5NXvNelt5r/Pu9SH5BPtU+zz21fPl+3b7wX7efrv9HqzQXMFb0ekP/L38d/s/DNAOWBPwYyAm&#x0D;&#x0A;MCCwJvBJkGlQXlBfMCU4JvhI8OsQ55DSkPuhOqHC0J4wybDosOaw+XDX8LLw0QjjiHUR1yIVIrmR&#x0D;&#x0A;XVHYqLCopqi5lW4r96yciLaILoweXqW9KnvVldUKq1NWn46RjGHGnIhFx4bHHol9z/RnNjDn4rzi&#x0D;&#x0A;auNmWS6svaxnbEd2OXuaY8cp40zG28WXxU8l2CXsTphOdEisSJzhunCruS+SPJPqkuaT/ZMPJX9K&#x0D;&#x0A;CU9pS8Wlxqae5Mnwknm9acpp2WmD6frphemja2zW7Fkzy/fhN2VAGasyugRU0c9Uv1BHuEU4lmmf&#x0D;&#x0A;WZP5Jiss60S2dDYvuz9HL2d7zmSue+63a1FrWWt78lTzNuWNrXNaV78eWh+3vmeD+oaCDRMbPTYe&#x0D;&#x0A;3kTYlLzpp3yT/LL8V5vDN3cXKBVsLBjf4rGlpVCikF84stV2a9021DbutoHt5turtn8sYhddLTYp&#x0D;&#x0A;rih+X8IqufqN6TeV33zaEb9joNSydP9OzE7ezuFdDrsOl0mX5ZaN7/bb3VFOLy8qf7UnZs+VimUV&#x0D;&#x0A;dXsJe4V7Ryt9K7uqNKp2Vr2vTqy+XeNc01arWLu9dn4fe9/Qfsf9rXVKdcV17w5wD9yp96jvaNBq&#x0D;&#x0A;qDiIOZh58EljWGPft4xvm5sUmoqbPhziHRo9HHS4t9mqufmI4pHSFrhF2DJ9NProje9cv+tqNWyt&#x0D;&#x0A;b6O1FR8Dx4THnn4f+/3wcZ/jPScYJ1p/0Pyhtp3SXtQBdeR0zHYmdo52RXYNnvQ+2dNt293+o9GP&#x0D;&#x0A;h06pnqo5LXu69AzhTMGZT2dzz86dSz83cz7h/HhPTM/9CxEXbvUG9g5c9Ll4+ZL7pQt9Tn1nL9td&#x0D;&#x0A;PnXF5srJq4yrndcsr3X0W/S3/2TxU/uA5UDHdavrXTesb3QPLh88M+QwdP6m681Lt7xuXbu94vbg&#x0D;&#x0A;cOjwnZHokdE77DtTd1PuvriXeW/h/sYH6AdFD6UeVjxSfNTws+7PbaOWo6fHXMf6Hwc/vj/OGn/2&#x0D;&#x0A;S8Yv7ycKnpCfVEyqTDZPmU2dmnafvvF05dOJZ+nPFmYKf5X+tfa5zvMffnP8rX82YnbiBf/Fp99L&#x0D;&#x0A;Xsq/PPRq2aueuYC5R69TXy/MF72Rf3P4LeNt37vwd5MLWe+x7ys/6H7o/ujz8cGn1E+f/gUDmPP8&#x0D;&#x0A;kcBa2wAAAARnQU1BAACxjnz7UZMAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgA&#x0D;&#x0A;ABdvkl/FRgAABAZJREFUeNpiZEADO3YcP8/Pz20gJMTP8P37T4ZPn74yfPv2fcG/f/8bvbysHzAQ&#x0D;&#x0A;CQACCANt2nRo/rlzN/4jgzdvPvzfvfvk//XrDyQQaw5AAGFFq1btmX/y5BUUw3/9+v1/584T/1es&#x0D;&#x0A;2OVAjBkAAYQTLV68bf6RIxdQDP/48cv/RYu23idGP0AAMcycuW7+jBlrDbDJzZ69fv2FC7fgBv8D&#x0D;&#x0A;BvSePSf/A/UYEDIXIICY2NhYExgZGfdPmLAMRTGIz8XF6aCkJM3w589fMP779x+DoCAfw8+fvwgG&#x0D;&#x0A;B0AAAQ1mYfDwsBQAGd7RsQBsOIjm4+Pe7+5uIcDMzMQADF+QYWDMwsLM8OPHLwFCBgMEEBNQEQPQ&#x0D;&#x0A;EAZPTyuw4Q0NsxIghloKMDExAQ37Dca/fv0B46dPX4MsIJjsAAKICZiUPkAM5wEbLikpMh/kA2Zm&#x0D;&#x0A;ZrBL0fH9+89A6ZugwQABxKynZ6/BycluICIiwMDBwc6gqirLAHLp379/UTDI1U+fvmIQExNkuH37&#x0D;&#x0A;scG8iIecuV5iNyZve/0Dm8EAAcQEdEXjnj2nPrx58x7ubQj+A8ffv/9iePDgGcPnz98YgImDIUz7&#x0D;&#x0A;igGbOGv/7z8M+y/3a6GEN1AezAcIIEYQkZLSAkwBHPttbQ0E1NTkgBHEAlMGJkFZ+zfQFFZWFgbG&#x0D;&#x0A;61MZ+H7tZWB/94KBVUeG4fmVfxf+/WNwNCm/9gHZAoAAYoQxYmJqDYC29QPLCAdxcSEGHh5OBmCG&#x0D;&#x0A;AEeYj48NAz8/D8P3cxMYuL/tZBD89pJBhPk3w0cGVobvCtIMjy79BxtuXYswHCCAGNHDJjS0QgFI&#x0D;&#x0A;gTAorR4AYgFxceH5EQYPBAR+72GQZHvLIMDGwMAE1fnpDyPDZ34RhtsXGIGG/3d0br4ONhwggBiJ&#x0D;&#x0A;yZ1rSo0b5GW+12tIf2DgZmNmYETT9e3nX4a3/3kZrp1nArvcq+P6B4AAIsrgreWaAkAN+/WN/xnI&#x0D;&#x0A;Sv2H+hWq9ddfcFyAcuXzN6wM584xgw0HCCAmYgz27rz+ARjUjiePM1148BgowMfBwMDPCZEEpiCG&#x0D;&#x0A;l58YmJ9/ZJDh/c6gqfbb4PdfhvkAAcREbGkX3H/9w+8//x2PHmG6cPciMOnysDMwfAbSX34yMLz+&#x0D;&#x0A;zMDw+x8Dw8O3DKoS3xlYWf4GAAQQEylFadTUG0DDGRwPHmK6cGv/OwYGoPeBgc7A8OMPKKAhqROY&#x0D;&#x0A;5tmY/zEABBATqeV04myg4X8ZHPceZL5w4wrQwA/fGBicNRgYxHjBlvz88pfh+VumDwABxExOJbDl&#x0D;&#x0A;wpsfrtrCK2+/YPdg//tbQvLTS6CrQbkVWLVdEGR4/YWlEyCAGCmpZTpD1UGpZT0f+x8Hfo4/DK++&#x0D;&#x0A;sn349ZdpYsWamw0AAQYA0lMHydArgUYAAAAASUVORK5CYII=' />
<image id='image_play'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI&#x0D;&#x0A;WXMAAAsMAAALDAE/QCLIAAAAB3RJTUUH0woJEyQqW/WmUwAABHxJREFUeNqFld1vlEUUh5+Z92O/&#x0D;&#x0A;utstLZYiLAViCKlA3YoGEz+CUVOJJqIxfsW7Ergg4Yb4ByjpH6CmF69y4U0v5NIEI8YbgoRQltSK&#x0D;&#x0A;GBILlCrtbrvdfZft7vs148WWpTW0TnIymcyZJ79zcs4ZwQYrf2LSAr0ZVB9aJ0EDuoFWc5Zyi1ec&#x0D;&#x0A;1/z13ooNoIeA90EPIsghrBQAyltGR/eASaHCc3l99pLjONH/gvMnJneDOIVhfdSRSma39GRkb3ec&#x0D;&#x0A;PT01ElbEX+UO7hQVC6WSKlcbDRU2Lln6wRf79fhlx3HCx4LzJyZ3gBjDzgwP7krw5sE0+7Zrnsha&#x0D;&#x0A;GLLlqoGlWsj0XMD5QpOLU0v4DfdmTJU/e1qfO/8QbvxH6dcdmcwbbx/qFJ++kuCpPoOYZfDNTxX2&#x0D;&#x0A;bo/hhxo/1BhS0JMx2bfDorfL4nZR97hN8eyi3lkYHkrMFgoF3Qb3HTw+ip3+4MhzWfHWkIVtSfxQ&#x0D;&#x0A;4wWad17I8tUPi+zaYuH5Ci9QeKFGa83WTRbppCX+mI26m762tnL9wtDQUGC01F47JIzY6IHdmfhw&#x0D;&#x0A;3kJK8ANFM2hBtvXEeHEgxcnvNM/kArxAr9y3ItjUIan7JjOloL8UbZ/s5eZtI398wgJOpdPpl14d&#x0D;&#x0A;TImuDvACTTNoqfUCze6tcQDee97g9Lhg7xZ/zX0zUNiGz/S8suvNMDDC6kUT2AwMZjKdMhsPcety&#x0D;&#x0A;o9Jm/KTNh1/C0QMuUaSZLUdMzWVxG0lqdEhFZcAVuZwJ9CFkrictaPiKhq/QK+Wi1yn0FjzD/t4K&#x0D;&#x0A;k3+nmHVbEWGaIIw+DDsngSQylkpaAZW6wl1WeL6m6ev2vp7y3+azlJaTj5pCCJCxhIB0O263aTFf&#x0D;&#x0A;lRRdSbUhqTQM7lViXJ1JbZgWPzIQgpa1m0NJE3QD5S3P1xPUo3grfkAjqPk2Wq+f79dHV7WwWGmf&#x0D;&#x0A;qNkUOvRMtJoD7lWX1c5IJNY81Mh1p8nhMxCsTAjTAAk8aHigo6JU9TlpKbcITOKVlWVo7FUWMyIe&#x0D;&#x0A;J/nwGQBF0opIWhFxM8I2I4S/qEyat7L67n3zivOaP3Ts8rnIq35iRYmurrS9RqTSAJn2eWSsxrY0&#x0D;&#x0A;CKHbfq354aOaS/VENH+h01gomwB5ffbStXDk+1qldKy/u4uYKR7VG4/Ap7+dJ2uDth/mtOXjhZqZ&#x0D;&#x0A;yhLKr/6yR/78K1AzAAqFgt6W/3jaC9irVLTjyW5DJGOCmKWJWZqX96X5fPw+MbN1jtutPWZqBAG3&#x0D;&#x0A;Zly1WK5OdEc3xrLinxttMMCRvLW4qHMT1YY54C6H/emkxaa0iW1JLt+sY5tijVkGLFQDpqarzJXc&#x0D;&#x0A;ic3h9dGcLFwFFhzHidrgQqGgh4eS5UXdf73aMJKlatBfWw7tuBmKVMLElBIpQOuIxaU6v99ZVn/O&#x0D;&#x0A;1B5UKu6P3dGNsRVo0XGc4LE/yMjIiARSU7x7OJQdRxXWgJSiL50wEgC1RtRUkSqaNG/Fo/kLKzmd&#x0D;&#x0A;Byrr/iCr4AKwi1F/1hW5HIadE5AWKCl06ElVn8vqu/c7jYUyUAMajuOo1Yx/AWXzQW5ayEXoAAAA&#x0D;&#x0A;AElFTkSuQmCC' />
<image id='image_pause'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI&#x0D;&#x0A;WXMAAAsMAAALDAE/QCLIAAAAB3RJTUUH0woJEyUmS1jbOQAABDRJREFUeNqdlc9vG0UUxz8zu7P+&#x0D;&#x0A;Edtx86PBhboJEapQKVQOReoNIVUoVCBUpAqBxC2oPSAhceDAFal/AfSwEhcOXHqAUxHlRFWgInWV&#x0D;&#x0A;mlBUqWmaFpI4sROva+/auzvDwW2apElBPOmr0Zt985mn2fdmBE+w0pkZBWYYdAFj0mAA42P0ktJe&#x0D;&#x0A;9Yp7vLvbWvEE6DHgFJgjCIoI1QeA7rQx8V1gRujofMl8ddl13fhfwaUzM+MgPsZS72X60vmnhnJy&#x0D;&#x0A;ZDDJwaEmKRVzq55hvqpZXVnR9Ybv68i/rMz9z1803/zium60I7h0ZuYAiHM4uckjz6Z442iWw/sN&#x0D;&#x0A;e/MKS/ZCDbDWjJhbCrlQDrhUWaPrezcSuv7pC+b8hYdwa1umX2RyudffOtYvPng1xXMFi4SyCGPo&#x0D;&#x0A;RmZDlhQM5WwOH1CM7FHcrpohLxAv18xYeXIida9cLpsNcOHo6bM42XdPvJIXb04oHCXpRoZOuE1d&#x0D;&#x0A;TSfUdCKDMYZ9A4psWok/7sWDQdeofVy7ODExEVq9bK8eE1bi7EvjueRkSSEldEPNTxWPucWAucWA&#x0D;&#x0A;woCi3dFcqjSZW+wwtxgwskcRhIaBjKTVtVlYCUdX4v0zI9y4bZdOTyuMOZXpS+ZK4w6x1jRaBoCP&#x0D;&#x0A;3i5snP8PV9d3nYu14WAh5vqtRLZey5yshqO/2sAwcCSX65f5ZITXkrvWdaMVbfGvzwcAVJbyeH6a&#x0D;&#x0A;JhmpWT/kiWLRBgoIWRzKCvyuxu9qzA51WJlvk0tt3XR6oVfa97xkb8K2QVgFLKdoA2lkoi+tQtZb&#x0D;&#x0A;GinAsXfuG8/XW/y/mlkc61FvCCFAJlJCk7U3FgWK5YbBkpBNCcy2nL+d3cdAyueTbZt1YwvxMNQ8&#x0D;&#x0A;bA4tbTA+utNebqVoxcmNj2aHbq/7qV3Pvwc3EAeBMFHHxugl4G6jrcdikeL/mG2BBO77HTBxVerW&#x0D;&#x0A;klTaqwIzdOpaWQZnk/6LpVVM0o5x7BjRrWmb4Gbe3FmUV9zjXaGj83Gn0VDxGsPpFnsfaLON5ZuM&#x0D;&#x0A;5ZuPgQuZXqyK19DBWisZL1/st1brAmBqasq6ak19mctmPjw8voeELXr1ZrZdVebRsPmHdSJD5dYa&#x0D;&#x0A;zfXV70p8/RkwbwGUy2XzTOn9uU7I81rHB54etEQ6IUgo05O9dUw6j3xByM0FT9fqjenBePZcXvw9&#x0D;&#x0A;CzQ3LqETJVWrmeJ0w7cPee1oNJtWDGRtHCVxbPGYlAWrjZDKXIOlFW96OLp2tijLvwGrruvGG+By&#x0D;&#x0A;uWwmJ9L1mhm91vCt9EojHG22IydpR6IvZWNLiRRgTExtrcXv823950Lz/vq69/1gPHvuAbTqum64&#x0D;&#x0A;4wsyNTUlgb4K77wWycxJjTokpShkU1YKoOnHgY511Sa4mYyXLx6UP/4MLAPru74gm+ACcKrxaN4T&#x0D;&#x0A;xSKWUxSQFWgpTNSRurWUN3cW+63VOtAEfNd1t/T7P6XWFCRCYI3ZAAAAAElFTkSuQmCC' />
<image id='image_stop'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI&#x0D;&#x0A;WXMAAAsLAAALCwFtBIS3AAAAB3RJTUUH0woJEwkMqdJ5QQAAA+9JREFUeNqdlduPU0Ucxz8z59Ke&#x0D;&#x0A;bk/pXrgUtSyi2ZgVgq2Y8EKMiRok+oAJUUz0aQm8mfjgk0+a8BcYHk5CfONBTDQmQoSYGEW8LN2s&#x0D;&#x0A;iBICyC1Lt7vttqe0p+05Z8aHssuCgIvf5JvJby6f+eU3mRnBQ1Q4MG2BXg0qh9Yp0IAO0KpsKb/y&#x0D;&#x0A;i/dy70FrxUOg24E9oLciyCOsAQBUt42OrwPTQkVHC/rwKc/z4v8EFw5MbwLxPoa1Nz2Qyq4byci1&#x0D;&#x0A;w0nGRpo4VsylWporFcX83JyqNYJARcEpS9/6ZIs+ctrzvOi+4MKB6Q0gDmFndm590uG1bS6bn9Cs&#x0D;&#x0A;yVoYsj9VAwvNiMvlkGOlDj+cXaAX+H8lVO3DZ/XRY4tw455MP01nMq++sX2VePdFh6dzBgnLIIyh&#x0D;&#x0A;F+klG1IwkjHZvMFi7aDF3xU94nfE81W9sbSz6NwolUp6CZzbtv8gtvvWrhey4vWihW1JepGmG97j&#x0D;&#x0A;nqIbKrqRRmvN+iELN2WJP2/Ew52ettYzdaJYLIain+2Z7cJIfrPlqaHs3h0OriP5dipgJXrlOYcw&#x0D;&#x0A;0nz1a8D3U5WG0Z15bzNfHDcL+ycttN6THkhmCptsYqVotDQAH7295qHQj49UaHcVnZ5iLBfz+6WE&#x0D;&#x0A;W6umd1fC0Z9NYDWwNZNZJbPJCL8leRR99mMCAD9I0SQtFfVxX+TzJpBDyPyIKwh6iqCn6Oe7sg2E&#x0D;&#x0A;6nGxlukHpgnCyGHYeRNIIRMDKSuk3lJIAbYpVgS9NJ+8exMhQCYcoXDNxU6/YzHb0BgSXEesuBQX&#x0D;&#x0A;axnE4nS9eDmUNEEHqG57tuXQipNLgxrxSLXuwzXEnY7QUddEqzJwvdFWG2Ph8H9kGv0TuRV0QccV&#x0D;&#x0A;qVplaSm/AkzTrSnL0NjLvFIlzRjbjBG9qjLpXMjqqzcFQHHf6R3CTn+Zy60bHHTtRyqCISFSsNDs&#x0D;&#x0A;UZ6ZaTqd8x+MyZNfmwAFffjUmWji82Z9bt/o8CAJU/SfJ33PU6XvNMsPrBtprtUXUL3Gd2Py5E9A&#x0D;&#x0A;0wAolUr68cI7l7shzygVb3hs2BCphCBh6b7Nu9ukfScWhFy45qtqrTE5HJ87lBUz55bAALsKVrWq&#x0D;&#x0A;85ONwBz329Gom7IYck1sS2Kb4l+2DJhvhJy93KA850+ujqYO5mXpN2De87x4CVwqlfTOYqpW1aNT&#x0D;&#x0A;jcBIzTXC0WY7spNmJAYcE1NKpACtY6oLLf640lbnrzVv1ev+8eH43KHb0IrneeF9f5CJiQkJDJzl&#x0D;&#x0A;zZcimd6tsMalFDnXMRyAZhB3VKwqJp0LyXj2xO2azgL1B/4gy+ACsCvxaNYX+TyGnRfgCpQUOupK&#x0D;&#x0A;1Spn9dWbq4z5GtAEAs/z1HLGP0K45L8u7KzsAAAAAElFTkSuQmCC' />
<image id='image_terminate'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A&#x0D;&#x0A;/wD/oL2nkwAAAAlwSFlzAAALCwAACwsBbQSEtwAAAAd0SU1FB9oFHAkAHliA9FIAAAOYSURBVDjL&#x0D;&#x0A;pZXNa1RXGMZ/551z78x1JnFijekQMpNWKaahoAsXboqIUNy0RSQOIt0Irlu66D9Q8A+o4Cqb0tJg&#x0D;&#x0A;LRS6aEVwp22pKDKtipKQSciHExN1Mh935s59TxfJ2FSbNLYPPIvzcM7vvLyHc45hC00UCh7Q75zL&#x0D;&#x0A;KexYj5sKi865ykezs+3N1potoIeBMeAAkBdIA8TONRRmgTuxc5d9kevFcjn+V/BEobAX+NjC6d3W&#x0D;&#x0A;ZnM7d4o/PIy/bx+SStGenqb18CGPlpb0URQ1m85dd8597ov8XCyXO/8InigUCsDFwJjjI4OD7Dpz&#x0D;&#x0A;huDQIbzBQYznPZ8XLSzQunePpxMT/H7rFlXVewqfecb82IWbFyr94nVr39t7/Lhkx8bwBga2OgLi&#x0D;&#x0A;ep3VK1eYHB930+32w9i5s77IjWK5rInupJPZ7PnAmOLbx46ZvtOnEd/HheFL1mYTbTZxYQhxjD88&#x0D;&#x0A;TDoITLVUeq2u6iWMuXoym40swDf5/GELp0ZyOTJHj6K1GiuXLrEdZcfGCA4e5K1Sifrt2+/X4/g7&#x0D;&#x0A;X+Qn+3U+7ymM7bK2N3PkCHQ6xMvLAAyNj28JnT17Fq3V0EaDYHSUPaVSz4zqiVD1Fwv0AwdynieS&#x0D;&#x0A;ydBZWeFV9PjCBQC0WgUQhVGFvAVyAnm7Zw/aaKCNBq+qZwsLACSNQSDnGZO3wI6EMWmTTK61QARJ&#x0D;&#x0A;pbYFbE9NvZQljAlwrsd2A63ViObmMJ6H9Pa+UrXSZfwViwWasXON1vIyrtUCVf6PIudCoGUVFoHZ&#x0D;&#x0A;J3H8xu56/T/BPGMwxlDtdHDOVTqwKM65CnCnoapiLRu9bbDnYa0lVFXggYUFA/Dl0NC76UTi+5Fk&#x0D;&#x0A;ss/r7weR7ZcrAp0O0dISd8Nwtab6aUrkBwvgi1wPVb+di6Jzb2YymGRybUG3392NNvZ/Q+ZaLebm&#x0D;&#x0A;52moXkuJ3ABWEwCXnz1zH/b2TjWdG0lXq4X00JCRTAYJgjWnUmvujjdkBli5e1dnouhmDBetMX88&#x0D;&#x0A;BwOc6utbjuHm0zgelUplOB0E2IEBjO9v6s7cHPOlEpPt9s3IufMpkd+Ax8VyOX7xPU5Ezr3jnPuk&#x0D;&#x0A;L5H4YG8y2ZPav1/8fB66h9np0J6ZIbx/XydbrfqTOL6m8FVK5FegUiyXW5v9IAKk26pHE8acUBj1&#x0D;&#x0A;jMn1igQAVdWwrVoBHihcXe/pI+Dppj/IBrgB/FA1q5D3jMkL9Kw/Mq3IuUULC77ICrAKNIvl8t9u&#x0D;&#x0A;1p/7Z60tC8zBfwAAAABJRU5ErkJggv////8=' />
<image id='image_exit'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI&#x0D;&#x0A;WXMAAAsLAAALCwFtBIS3AAAAB3RJTUUH0woKFhstiTF0yQAABL9JREFUeNqFld9vVEUUxz8z9969&#x0D;&#x0A;+7Mt2xaowhZEUCm/QgXkQfwBCAUxIsZEIyEhKc+8+OMPICHxlRAeNhr1xQdJjA8I4UeCNIAoLNYC&#x0D;&#x0A;EiJUC4R2t90f925393bvnfFhoVAseJJvJpPMfOacOXPmCJ5i/d1rLK11u4IOjY5qAERVwXDJMrMb&#x0D;&#x0A;L5ybeNJe8RToWuADrfUKIGVBDMBDVxTc1tDvC3n4q5XLzqbT6eB/wf3daxYI2GvBR9F4vCUxa6aM&#x0D;&#x0A;zJ6Nu2ghQSRC/OYg6p+/yeVGVTWfr1aVOlu2zH3fLes6n06n/WnB/d1rOgUcSkBPdMVyElt60Eu7&#x0D;&#x0A;sNrbEYbRWKQ1fqFI/dYtaseOU+jrw/Em/izY9mffL3nx6AO48ZinB5vi8U0t72wTkZ0fYyxaiGHb&#x0D;&#x0A;4PvoiXpD9TrCMDDb2rCWLMGaNQs9ONgmHOfl+WP5TKRn851MJqPNB2Ct9ScJIXqaN6zH2tqD0Zqk&#x0D;&#x0A;euUqAHbn3PvBaXQjg0wM3QYgsrqbpF8X6utvF/mVyh6gv7e3t2wAXFq5eq0txP6mZcvCVs9mQp0p&#x0D;&#x0A;qleu0vTGa0QWLaT0cx/StlGeh/Y8an/dJLltK3Znikr/AOYzHZjjFepDQ/NSudH+a7PaB42LK1dZ&#x0D;&#x0A;wN5EU2JdbP2bguQMrJkziS5+CRkKoYOAWNdi3F9+RWhNPTdK247tjQRJSXjBc4ydOIlua0UPDob8&#x0D;&#x0A;8fF6yZB9EmgHVjQ3NUl/RguB4+KeOz8JFYaBqtVo27Ed33Vp27EdrdSUl5TsO0vrkaPMdMvSVKpr&#x0D;&#x0A;ruOmJNAhISVaW1GVCn6hgJ/PM5z+EmEYBJUKMhwGmOLpA3M/3En45i3sbI44AgPREUKkJBC1EbF6&#x0D;&#x0A;LIYqlVCOg/Y8dK3GvQMHMaLRJ1bmxNZ3ieZG7z9cgQBsiCBEYvJoq+Qgh0eQ2Ryy5GAUi9i37+Ds&#x0D;&#x0A;3jM9dd16Qq6LMTEBQkzCAZQQ0gRR9dCVyEiWcKX6sCS1IuSWMY4fmR585hSsW/9wLiVaKWpQ84Xw&#x0D;&#x0A;pIJhBbeVUyL8iOxqrQENgif/UmdONUbTBNOkVq8ToLPjUgzLkmVmNfTnQWnTQlsNyZ9+bGwyjCnh&#x0D;&#x0A;A+B5U+BBOExg2+QFqmaaN4Zamu/JjRfOTfhCHi4FfqlgmYy3t5Nd+wq6UpninLNrN878Tpxdu8G2&#x0D;&#x0A;/+N8wTIpBP74SDh8ItfclDcA5Ntb7iy/Ozy/ju42O+cifJ/y5d9JrHsVgJFPP8ePx/DjMeqxGOUT&#x0D;&#x0A;J4m/tQGAe/v2UwmHGBsaouh5x35YuvgbIDv5u51etXZxTAUHYnPmvB5fulSakQg8VgjTme95lAcG&#x0D;&#x0A;VOnu3Ut/JJNfXOyccxrIT16gtbVnrHOscNEsFrt8x5lnxeOYyRnIUAgRsh7KagjLpJ4bpTQwgDs8&#x0D;&#x0A;cjHT3rY/k3r2N2A0nU4Hk+BMJqOjPZvy88byl42SE63nsvN8txzyw2FhxmJI0wQpCdCMj41RuXJV&#x0D;&#x0A;udevl91i8diV1uSh+9BsOp2uT9tBent7JRB7f+Dam3Hff89UqksYRoeRSEQAAtetqSDI1kzzxkg4&#x0D;&#x0A;fOLkC8+fA0aA4hM7yCNwAYTmZ3Mtcx03FUKkECKhhJC+EN64FMNDLc33cs1NecAFqul0ekpC/gXY&#x0D;&#x0A;/CPMCV0dPwAAAABJRU5ErkJggg==' />
<image id='image_shred'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI&#x0D;&#x0A;WXMAAAsOAAALDgFAvuFBAAAAB3RJTUUH0woCFhYuYCJz0QAAAblJREFUeJyllb+q8jAYh58ePhFd&#x0D;&#x0A;pHVxcdOlgw6ODuLU1avwAgRXBS9BvDZnF/+A0IoK2jZtzhRPk9Ni/c4PSpq8eZ/3lwQSq9PpoOR5&#x0D;&#x0A;nnw+n4RhCEAYhtqnYmEYEkWRSrPI0b9sJ4oilstl3rxXodvtxuVyYTqdslqtWCwWMg+ugeM4BqDd&#x0D;&#x0A;bhfCgyDg8Xhg2zau6xbCv0zH72TbNrVaDcdx6Pf7Lzgg/wRWcMdx2O/3hfDcrSgjx3GYz+f4vo/v&#x0D;&#x0A;+wRBoMV/HV5Zrddrrtcru92O8/nMdrtls9nkgz9xLKWkXq/TbDaRUtJqtf7uWAiBEIIkSWg0GgD4&#x0D;&#x0A;vq/N0Q6vjOMsNEkShBBUq1UqlUox+BMpqBAiN/7RHsdxTJIkRFGkQZXrQnDRHkspX8vPg6pYVm/3&#x0D;&#x0A;OAtV/yb0LVip2+1qreu6SCnp9XoIIRgOh6Rpymg0AsDzvF+Mt47VmHlIaZpq46UcZxNVgmrVuFnQ&#x0D;&#x0A;LKyBLevn5lMTiwBmqwrmgqX8ufnMRLOAWkEpx1mZABNUVKgQfL/fARgMBgAcDgcAxuMxAMfjEYDJ&#x0D;&#x0A;ZALA6XQCYDabaRwr+5iivwLWf/Rf+gaq5nuqnqksPAAAAABJRU5ErkJggg==' />
<image id='image_save'
imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI&#x0D;&#x0A;WXMAAAsSAAALEgHS3X78AAAAB3RJTUUH0wgaFi8epxLi1wAAAsJJREFUeJzVlD2PHEUQhp/ZnTV3&#x0D;&#x0A;PvDHBcgykgMCEAGCf4CQkAgQiD8AMREidQbRRQT8A2JIQCBBgiFzAEIyEPpkGWTJvhV3uzO7091V&#x0D;&#x0A;1dUEMzvHyWs7dkutqu4Zvf3029UNT1urNskPP/76UV1PD1Qzs3pC03bEpGTLzOopZhkRxSyjaqhu&#x0D;&#x0A;onHnnznzo8V3zWL18c83Pl8A1Bvhup4evPTKtUtQce3qPp9+8Q3LJnDhuV0+++T9x9J9f+MWf966&#x0D;&#x0A;/cG3X/0C8OEZ4ZSULgrVsImbvx9y+cJ56nryxG0vmg4H3PO7I+gmkWF7VdUL71/c4+UXr/DClctP&#x0D;&#x0A;FBYxlssVKck4dyosiqgxqXrCt994lavPX2T/0rOPFXUvLJuW5aLBLD8snMQQzZRinDQd7731OqUU&#x0D;&#x0A;SoH5cTvk/XgTzYyTk5ajB8d0IWJm24h7K7qY+O2PO6hlzDKWfci9r4icETFiSDTLlvU6cHzSEqM8&#x0D;&#x0A;ilgRVUIcSspyX1KWB/+NmJQYhbZdEbpISkJKiogQYyTnLcI6WOHunN89h2UfateoiuMGk5KZlszO&#x0D;&#x0A;bMpk9xyzScVsOuEoBFIScvZHERs7z8x4583XcHdCEEJIpKSo2mCX9QctNvYvv/6JeUiP9xjALBNC&#x0D;&#x0A;IgRB1bYIn10giSCi261ISRHNmBp37/7L/fsNqjZcYR2usI72mPXiOzs1KQpJ0nZhGchMlaoq7O3V&#x0D;&#x0A;iIAq1HWhrmE6LZjBZFJQLVRVARwZiN23eZyU1bojm7FaRRaLbqTqCU8fIREdH6HZrBqskO3EMSTW&#x0D;&#x0A;60BxR9Vwz+T8cDfro7uNQv1Csp04xEQICbxgZpTiuPe9z/Mw7mPOm7ygIqgo7luIwzqyXrTkbKxW&#x0D;&#x0A;y/HkT6vg7CGq5vGfdduQujW+rY6P54vr9/5+cBBT4vZfh+RcRuKcC6X4/+ZOv7kX7h3O6YLiznWe&#x0D;&#x0A;2vYfEhrg/995S7wAAAAASUVORK5CYII=' />
<hbox id='EPTF_Top_hbox' orientation='vertical'>
<label disabled='false' flex='0.500000'
value='Traffic case overview' />
<tree disabled='false' hidecolumnpicker='false'
id='Traffic_TC_tab' rows='0'>
<treecols>
<treecol editable='false' flex='3.000000'
label='Scenario name' widgetType='string' />
<treecol editable='false' flex='2.000000'
label='Status' widgetType='statusLEDWithText' />
<treecol editable='true' flex='1.000000'
label='Start' widgetType='pushButton' />
<treecol editable='true' flex='1.000000'
label='Stop' widgetType='pushButton' />
<treecol editable='false' flex='3.000000'
label='Traffic cases' widgetType='string' />
<treecol editable='true' flex='1.000000'
label='StartTC' widgetType='pushButton' />
<treecol editable='true' flex='1.000000'
label='StopTC' widgetType='pushButton' />
<treecol editable='false' flex='2.000000'
label='Status' widgetType='statusLEDWithText' />
</treecols>
<treechildren>
<treeitem>
<iterator element='EntityGroups'
id='EGrp' source='ExecCtrl' >
<iterator element='Scenarios'
id='Scenario' source='ExecCtrl'>
<params>
<dataparam name='EntityGroup'
value='%EGrp%'></dataparam>
</params>
<iterator element='TrafficCases'
id='TC' source='ExecCtrl'>
<params>
<dataparam name='EntityGroup'
value='%EGrp%'></dataparam>
<dataparam name='Scenario'
value='%Scenario%'></dataparam>
</params>
<treerow>
<treecell id='EPTF_ExecCtrl.TC_Overview.EG.%EGrp%.SC.%Scenario%.TC.%TC%.1' label='%EGrp%.%Scenario%'
tooltiptext='' />
<treecell id='EPTF_ExecCtrl.TC_Overview.EG.%EGrp%.SC.%Scenario%.TC.%TC%.3' label='' >
<externaldata element='ScStatus'
source='ExecCtrl'>
<params>
<dataparam name='EntityGroup'
value='%EGrp%'></dataparam>
<dataparam name='Scenario'
value='%Scenario%'></dataparam>
</params>
</externaldata>
</treecell>
<treecell id='EPTF_ExecCtrl.TC_Overview.EG.%EGrp%.SC.%Scenario%.TC.%TC%.4' label='' imageid='image_play' >
<externaldata element='ScStartButton'
source='ExecCtrl'>
<params>
<dataparam name='EntityGroup'
value='%EGrp%'></dataparam>
<dataparam name='Scenario'
value='%Scenario%'></dataparam>
</params>
</externaldata>
</treecell>
<treecell id='EPTF_ExecCtrl.TC_Overview.EG.%EGrp%.SC.%Scenario%.TC.%TC%.5' label='' imageid='image_stop' >
<externaldata element='ScStopButton'
source='ExecCtrl'>
<params>
<dataparam name='EntityGroup'
value='%EGrp%'></dataparam>
<dataparam name='Scenario'
value='%Scenario%'></dataparam>
</params>
</externaldata>
</treecell>
<treecell id='EPTF_ExecCtrl.TC_Overview.EG.%EGrp%.SC.%Scenario%.TC.%TC%.7' label='%TC%' />
<treecell id='EPTF_ExecCtrl.TC_Overview.EG.%EGrp%.SC.%Scenario%.TC.%TC%.8' label='' imageid='image_play' >
<externaldata element='TcStartButton' source='ExecCtrl'>
<params>
<dataparam name='EntityGroup'
value='%EGrp%'></dataparam>
<dataparam name='Scenario'
value='%Scenario%'></dataparam>
<dataparam name='TrafficCase'
value='%TC%'></dataparam>
</params>
</externaldata>
</treecell>
<treecell id='EPTF_ExecCtrl.TC_Overview.EG.%EGrp%.SC.%Scenario%.TC.%TC%.9' label='' imageid='image_stop'>
<externaldata element='TcStopButton' source='ExecCtrl'>
<params>
<dataparam name='EntityGroup'
value='%EGrp%'></dataparam>
<dataparam name='Scenario'
value='%Scenario%'></dataparam>
<dataparam name='TrafficCase'
value='%TC%'></dataparam>
</params>
</externaldata>
</treecell>
<treecell id='EPTF_ExecCtrl.TC_Overview.EG.%EGrp%.SC.%Scenario%.TC.%TC%.10' label=''>
<externaldata element='TcStatus' source='ExecCtrl'>
<params>
<dataparam name='EntityGroup'
value='%EGrp%'></dataparam>
<dataparam name='Scenario'
value='%Scenario%'></dataparam>
<dataparam name='TrafficCase'
value='%TC%'></dataparam>
</params>
</externaldata>
</treecell>
</treerow>
</iterator>
</iterator>
</iterator>
</treeitem>
</treechildren>
</tree>
<hbox flex='0.000000' id='Execution_Control.buttonBar'
orientation='horizontal'>
<hbox flex='1.000000' orientation='vertical'>
<spacer flex='0.000000' />
<hbox disabled='false' flex='1.000000' id='EPTF_Main_hbox_all'
orientation='horizontal'>
<hbox disabled='false' flex='0.000000' id='EPTF_Main_hbox'
orientation='horizontal'>
<spacer flex='0.000000' />
<button disabled='false' flex='1.000000'
id='EPTF_start_test_button' imageid='image_play' label='Start Test' >
<externaldata element='Start' source='ExecCtrl'/>
</button>
<spacer flex='0.000000' />
<button disabled='false' flex='1.000000'
id='EPTF_stop_test_button' imageid='image_stop' label='Stop' >
<externaldata element='Stop' source='ExecCtrl'/>
</button>
<spacer flex='0.000000' />
<button disabled='false' flex='1.000000'
id='EPTF_terminate_test_button' imageid='image_terminate' label='Terminate Test' >
<externaldata element='Terminate' source='ExecCtrl'/>
</button>
<spacer flex='0.000000' />
<spacer flex='0.000000' />
<spacer flex='0.000000' />
<button disabled='false' flex='1.000000'
id='EPTF_snapshot_button' imageid='image_save' label='Snapshot' >
<externaldata element='Snapshot' source='ExecCtrl'/>
</button>
<spacer flex='0.000000' />
<button disabled='false' flex='1.000000'
id='EPTF_exit_ttcn_button' imageid='image_exit' label='Exit' >
<externaldata element='Exit' source='ExecCtrl'/>
</button>
</hbox>
</hbox>
</hbox>
</hbox>
</hbox>
<hbox disabled='true' flex='0.000000'
id='EPTF_ExecCtrl.Statistics.eventStatus' orientation='horizontal'>
<label disabled='true' flex='0.000000'
id='EPTF_ExecCtrl.Statistics.eventStatus.text' value='ExecCtrl Status:' />
<spacer flex='0.000000' />
<tree disabled='false' flex='1.000000'
hidecolumnpicker='true' id='EPTF_ExecCtrl.Statistics.eventStatus.main'
rows='1.000000'>
<treecols>
<treecol editable='false' flex='1.000000'
label='EndOfConfig Status' widgetType='statusLEDWithText' />
<treecol editable='false' flex='1.000000'
label='ReadyToRun Status' widgetType='statusLEDWithText' />
<treecol editable='false' flex='1.000000'
label='GUIDone Status' widgetType='statusLEDWithText' />
<treecol editable='false' flex='1.000000'
label='EndOfTest Status' widgetType='statusLEDWithText' />
</treecols>
<treechildren>
<treeitem>
<treerow>
<treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.EndOfConfig.StatusLED'
label=''
tooltiptext='EndOfConfig Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.EndOfConfig)' >
<externaldata element='EndOfConfig' source='ExecCtrl'/>
</treecell>
<treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.ReadyToRun.StatusLED'
label=''
tooltiptext='ReadyToRun Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.ReadyToRun)' >
<externaldata element='ReadyToRun' source='ExecCtrl'/>
</treecell>
<treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.GUIDone.StatusLED'
label=''
tooltiptext='GUIDone Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.GUIDone)' >
<externaldata element='GUIDone' source='ExecCtrl'/>
</treecell>
<treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.EndOfTest.StatusLED'
label=''
tooltiptext='EndOfTest Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.EndOfTest)' >
<externaldata element='EndOfTest' source='ExecCtrl'/>
</treecell>
<!-- <treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.EndOfConfig.StatusLED'
label='[led:green]EndOfConfig'
tooltiptext='EndOfConfig Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.EndOfConfig)' />
<treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.ReadyToRun.StatusLED'
label='[led:green]ReadyToRun'
tooltiptext='ReadyToRun Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.ReadyToRun)' />
<treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.GUIDone.StatusLED'
label='[led:green]GUIDone'
tooltiptext='GUIDone Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.GUIDone)' />
<treecell
id='EPTF_ExecCtrl.Statistics.eventStatus.EndOfTest.StatusLED'
label='[led:blue]EndOfTest'
tooltiptext='EndOfTest Status (VarName: GUI.EPTF_ExecCtrl.EventStatus.EndOfTest)' /> -->
</treerow>
</treeitem>
</treechildren>
</tree>
<spacer flex='1.000000' />
</hbox>
</window>
</Widgets>
";
f_EPTF_UIHandler_init_CT("ExternalData_TimeElapsed");
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_simpleBehaviorWithoutPhases(mtc, "SimpleExecCtrl"));
var charstring vl_dataVarName; //dummy for output
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
timer T_guard, T_alt;
T_alt.start( 0.0 );
T_guard.start( 15.0 );
// wait until ExecCtrl DataSource is registered
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[v_ready] T_alt.timeout{}
}
action(" ExecCtrl ready, starting create GUI");
f_EPTF_UIHandler_createGUI(vl_gui);
//f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName);
action("Testing Push Buttons...");
var charstring vl_varName;
f_EPTF_DataSource_getData(
pl_dataVarName := vl_varName,
pl_source := "ExecCtrl",
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementScStartButton,
pl_params := {
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc"}
}
)
var integer vl_startWScVarIdx := f_EPTF_Var_getId(vl_varName);
f_EPTF_DataSource_getData(
pl_dataVarName := vl_varName,
pl_source := "ExecCtrl",
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTcStartButton,
pl_params := {
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultSc"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"}
}
)
var integer vl_startTcVarIdx := f_EPTF_Var_getId(vl_varName);
f_EPTF_DataSource_getData(
pl_dataVarName := vl_varName,
pl_source := "ExecCtrl",
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTerminate,
pl_params := {}
)
var integer vl_terminateTestVarIdx := f_EPTF_Var_getId(vl_varName);
T_guard.start( 5.0 ); T_guard.timeout;
// press the terminate test button
f_EPTF_Var_adjustContent(vl_terminateTestVarIdx,{intVal := f_EPTF_Var_getIntValue(vl_terminateTestVarIdx)+1});
T_guard.start( 5.0 ); T_guard.timeout;
// press the start WSc pushButton
f_EPTF_Var_adjustContent(vl_startWScVarIdx,{intVal := f_EPTF_Var_getIntValue(vl_startWScVarIdx)+1});
// press the start Tc pushButton
f_EPTF_Var_adjustContent(vl_startTcVarIdx,{intVal := f_EPTF_Var_getIntValue(vl_startTcVarIdx)+1});
// wait a few seconds so that the elapsed time var could change:
T_guard.start( 11.0 ); T_guard.timeout;
// check SC/Tc statuses:
f_EPTF_DataSource_getData(
pl_dataVarName := vl_varName,
pl_source := "ExecCtrl",
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTcStatus,
pl_params := {
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultSc"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"}
}
)
var integer vl_statusTcVarIdx := f_EPTF_Var_getId(vl_varName);
f_EPTF_DataSource_getData(
pl_dataVarName := vl_varName,
pl_source := "ExecCtrl",
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementScStatus,
pl_params := {
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc"}
}
)
var integer vl_statusWScVarIdx := f_EPTF_Var_getId(vl_varName);
if (f_EPTF_Var_getStatusLEDValue(vl_statusTcVarIdx)!={led_green,"Running"}) {
setverdict(fail,"Tc is not started");
f_EPTF_Base_stop(fail);
}
if ({led_green,"Running"}!=f_EPTF_Var_getStatusLEDValue(vl_statusWScVarIdx)) {
setverdict(fail,"Sc is not started");
f_EPTF_Base_stop(fail);
}
// check stop buttons:
f_EPTF_DataSource_getData(
pl_dataVarName := vl_varName,
pl_source := "ExecCtrl",
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementScStopButton,
pl_params := {
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultWSc"}
}
)
var integer vl_stopWScVarIdx := f_EPTF_Var_getId(vl_varName);
f_EPTF_DataSource_getData(
pl_dataVarName := vl_varName,
pl_source := "ExecCtrl",
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTcStopButton,
pl_params := {
{c_ExecCtrl_paramNameEntityGroup, "DefaultEGrp"},
{c_ExecCtrl_paramNameScenario, "DefaultSc"},
{c_ExecCtrl_paramNameTrafficCase, "DefaultTC1"}
}
)
var integer vl_stopTcVarIdx := f_EPTF_Var_getId(vl_varName);
// press the stop WSc pushButton
f_EPTF_Var_adjustContent(vl_stopWScVarIdx,{intVal := f_EPTF_Var_getIntValue(vl_stopWScVarIdx)+1});
// press the stop Tc pushButton
f_EPTF_Var_adjustContent(vl_stopTcVarIdx,{intVal := f_EPTF_Var_getIntValue(vl_stopTcVarIdx)+1});
// wait a few seconds so that the elapsed time var could change:
T_guard.start( 11.0 ); T_guard.timeout;
// check SC/Tc statuses:
if (f_EPTF_Var_getStatusLEDValue(vl_statusTcVarIdx)!={led_blue,"Stopped"}) {
setverdict(fail,"Tc is not stopped");
f_EPTF_Base_stop(fail);
}
if ({led_blue,"Stopped"}!=f_EPTF_Var_getStatusLEDValue(vl_statusWScVarIdx)) {
setverdict(fail,"Sc is not stopped");
f_EPTF_Base_stop(fail);
}
setverdict(pass);
f_EPTF_Base_cleanup_CT();
}
// This testcase checks if ExecCtrl can be started if no LGens are created by the LGenPools
// The ExecCtrl should not generate an error.
// The testcase checks the resolution of TR HN71267
testcase tc_ExecCtrl_Test_NoLGensInPool() runs on EPTF_ExecCtrl_CT{
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
// // No LGens will be created, if the creator function is not registered:
// pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
// name := omit,
// fn := refers(f_ExecCtrl_Test_createDefaultLGen)
// }},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(false)
f_EPTF_ExecCtrl_init_CT("tc_ExecCtrl_Test_NoLGensInPool", 0, true)
timer t_wait := 5.0;
t_wait.start; t_wait.timeout;
setverdict(pass); // did not stop with an error
f_EPTF_Base_cleanup_CT()
}
function f_EPTF_ExecCtrl_Test_configWithVariableScenAndEGrpNum(
in integer pl_startNumOfScen, //Number of scens/egrp
in integer pl_startNumOfEGrps, //Number of egrps
in integer pl_startNumOfTCs := 2) //Number of TCs /scens/egrp
runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT{
timer T_guard, T_alt, T_measure;
T_guard.start( 1800.0 );
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("SetTargetCPSInAutoOff", true, vl_wndLayout);
var EPTF_LGenBase_TcMgmt_Scenarios2GrpList vl_scenNames := {};
var EPTF_LGenBase_ScenarioTypeDeclarator vl_scenDcl;
var EPTF_LGenBase_ScenarioTypeDeclaratorList vl_scenDcList := {};
var EPTF_ExecCtrl_ScenarioGroup_Declarators vl_scGroups := {
{
name := c_EPTF_ExecCtrl_DefaultScenarios_scGrpName,
execMode := AUTOMATIC,
scenarioNames := { },
phaseListName := "DefaultPhases"
}
}
action(int2str(pl_startNumOfScen) & " scenario");
for(var integer vl_e := 0; vl_e < pl_startNumOfEGrps ; vl_e := vl_e + 1){
for(var integer vl_i := 0; vl_i < pl_startNumOfScen ; vl_i := vl_i + 1){
vl_scGroups[0].scenarioNames := vl_scGroups[0].scenarioNames &
{c_EPTF_ExecCtrl_DefaultScenarios_eGrpName& int2str(vl_e) &"."&c_EPTF_ExecCtrl_DefaultScenarios_scInScGrpNameNormal & int2str(vl_i) };
vl_scenDcl := { name := c_EPTF_ExecCtrl_DefaultScenarios_scInScGrpNameNormal & int2str(vl_i),
tcList := {},
scParamsList := {
{enabled := true}
}
};
for(var integer vl_j := 0; vl_j < pl_startNumOfTCs ; vl_j := vl_j + 1){
vl_scenDcl.tcList := vl_scenDcl.tcList & {{
tcName := "DefaultTC_E" & int2str(vl_e) & "_S" & int2str(vl_i) & "_T" & int2str(vl_j),
tcParamsList := {
{tcTypeName := c_EPTF_ExecCtrl_DefaultScenarios_tcTypeName},
{enableEntitiesAtStart := true},
{enabledAtStart := true},
{target := {cpsToReach := 10.0} }
}}
};
}
vl_scenDcList := vl_scenDcList & {vl_scenDcl};
vl_scenNames := vl_scenNames & {{
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName& int2str(vl_e),
scenarioNames := {
c_EPTF_ExecCtrl_DefaultScenarios_scInScGrpNameNormal & int2str(vl_i)
}
}};
}
}
action(int2str(pl_startNumOfEGrps) & " egrps");
var EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList vl_EPTF_ExecCtrl_DefaultScenarios_EGrpList :={ }
var EPTF_ExecCtrl_EntityGroup2LGenPool_List vl_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List := { }
for(var integer vl_i := 0; vl_i < pl_startNumOfEGrps ; vl_i := vl_i + 1){
vl_EPTF_ExecCtrl_DefaultScenarios_EGrpList[sizeof(vl_EPTF_ExecCtrl_DefaultScenarios_EGrpList)] := {
name := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName & int2str(vl_i),
eType := c_EPTF_ExecCtrl_Test_defaultETypeName,
eCount := c_EPTF_ExecCtrl_DefaultScenarios_eGrpSize
}
vl_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List[sizeof(vl_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List)] := {
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName & int2str(vl_i),
lgenPoolName := c_EPTF_ExecCtrl_Test_defaultLGenPoolName
}
}
var EPTF_ExecCtrl_LGenPool_Declarators vl_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators := { {
name := c_EPTF_ExecCtrl_Test_defaultLGenPoolName,
lgenPoolItems := { {
hostname := "localhost",
num := 2,
createFunctionName := "EPTF_ExecCtrl_Test_Functions.f_ExecCtrl_Test_createDefaultLGen"
} }
} }
action(" LoadConfig start ");
T_measure.start( 1800.0 )
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := vl_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := vl_scenNames,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= vl_scenDcList,
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=vl_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=vl_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:={},//vl_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_init_CT(f_EPTF_Base_selfName(), 0, pl_dataSource_compRef := self);
T_alt.start( 0.0 );
action(" alt elott");
alt{
[] T_guard.timeout{
action(" TGUARD timedout");
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
action(" GUI done");
action(T_measure.read);
action(" Start scenarios");
f_EPTF_ExecCtrl_startAllScenarios();
action(" Scenarios started");
action(T_measure.read);
T_measure.stop;
//f_EPTF_Base_wait4Shutdown();
T_alt.start( 30.0 );
T_alt.timeout{}
setverdict(pass);
f_EPTF_Base_cleanup_CT();
}
testcase tc_EPTF_ExecCtrl_Test_over50Scens() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
f_EPTF_ExecCtrl_Test_configWithVariableScenAndEGrpNum(52,1);
}
testcase tc_EPTF_ExecCtrl_Test_over50EGrps() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
f_EPTF_ExecCtrl_Test_configWithVariableScenAndEGrpNum(1,52);
}
testcase tc_EPTF_ExecCtrl_Test_over50Scens2() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
f_EPTF_ExecCtrl_Test_configWithVariableScenAndEGrpNum(52,3);
}
testcase tc_EPTF_ExecCtrl_Test_over50EGrps2() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
f_EPTF_ExecCtrl_Test_configWithVariableScenAndEGrpNum(3,53);
}
testcase tc_EPTF_ExecCtrl_Test_over50TCs() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
f_EPTF_ExecCtrl_Test_configWithVariableScenAndEGrpNum(1,1,52);
}
modulepar integer tsp_EPTF_ExecCtrl_Test_numOfScens := 52;
modulepar integer tsp_EPTF_ExecCtrl_Test_numOfEGrps := 52;
testcase tc_EPTF_ExecCtrl_Test_overKill() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
f_EPTF_ExecCtrl_Test_configWithVariableScenAndEGrpNum(tsp_EPTF_ExecCtrl_Test_numOfScens,tsp_EPTF_ExecCtrl_Test_numOfEGrps,2);
}
// tc_ExecCtrl_DS_scenarioLeds_Manual:
// ===================================
// - Please check the ("ScGroup Status" and "DefaultWScInScGrp Status") status leds on "DefaultScInScGrp" scenario tab!
// * green if running and blue (idle) after "Terminate Test" button pressed.
//
testcase tc_ExecCtrl_DS_scenarioLeds_Manual() runs on ExecCtrl_NewGUITest_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("ExecCtrl_DS_scenarioLeds_Manual", true, vl_wndLayout,self);
timer t_wait := 0.0, t_maxWait := 5.0;
var charstring vl_dataVarName;
t_maxWait.start;
t_wait.start;
alt {
[0==f_EPTF_DataSource_checkData(
pl_dataVarName := vl_dataVarName,
pl_source := "UIHandler",
pl_ptcName := "",
pl_element := "progressBar",
pl_params := {}
)] t_wait.timeout; // wait for UIHander DS registration
[] t_maxWait.timeout {
setverdict(fail,"Cannot display progress information, UIHandler DS registration timed out");
}
}
f_EPTF_UIHandler_createGUI("
<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>
<hbox flex='0.0' id='' orientation='horizontal'>
<label flex='0.0' value='Progress:' />
<spacer flex='0.0' />
<textbox id='ProgressBar' flex='1.0' readonly='true' value=''>
<externaldata element='progressBar' source='UIHandler'>
<params>
</params>
</externaldata>
</textbox>
</hbox>
</Widgets>",
"EPTF_Main_Window"
);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPoolWithSpecId_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGenWithSpecId)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_ExecCtrl_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_loadModulepars := true,
pl_autoStart := true,
pl_dataSource_compRef := self
);
// start the regulators:
var PhaseRegulator_CT vl_regulator1 := PhaseRegulator_CT.create;
vl_regulator1.start(f_EPTF_ExecCtrl_Test_PhaseRegulator_behavior("Regulator 1",self,1.0));
var EPTF_LoadRegulator_CT vl_regulator2 := EPTF_LoadRegulator_CT.create;
vl_regulator2.start(f_ExecCtrl_Regulator_Test_RegulatorBehaviour("Regulator 3",self,1.0));
const charstring c_ExecCtrl_DS_tabId := "CustomGUI.tab";
const Tabpage execCtrlTab_Tabs := {
customclass := omit,
disabledongui := omit,
id := c_ExecCtrl_DS_tabId,
label_ := "Custom GUI",
maxheight := omit,
orientation := vertical,
tooltiptext := omit,
embeddedwidgets := {{}}
};
var boolean vl_dummyBool;
if(not f_EPTF_UIHandler_XSD_addElementToGui(
{tabpage := execCtrlTab_Tabs},
c_EPTF_GUI_Main_Tabbox_WidgetId,
vl_dummyBool)) {
log(log2str(%definitionId, ": cannot add custom GUI tabs: ", execCtrlTab_Tabs));
}
const charstring c_ExecCtrl_DS_customGUIHBox := "CustomGUI.hbox";
const Tabpage c_tabpage := {
customclass := omit,
disabledongui := omit,
id := "my_tabpage",
label_ := "\"DefaultScInScGrp\" scenario: \"ScGroup Status\" and \"DefaultWScInScGrp Status\" leds!",
maxheight := omit,
orientation := vertical,
tooltiptext := omit,
embeddedwidgets := {
embeddedwidget_list := {
{hbox := {
customclass := omit,
disabled := omit,
disabledongui := omit,
fixedposition := omit,
flex := omit,
id := c_ExecCtrl_DS_customGUIHBox,
orientation := omit,
scrollable := omit,
embeddedwidgets := {{}}
}
}
}
}
}
f_EPTF_UIHandler_XSD_addElementToGui({tabpage := c_tabpage}, c_EPTF_GUI_Main_Tabbox_WidgetId,vl_dummyBool);
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
// f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun() or v_ready] T_alt.timeout{}
};
f_EPTF_ExecCtrl_startAllScenarios();
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName, "");
timer T_g2;
T_g2.start( 10.0 );
T_g2.timeout;
action("tc_ExecCtrl_DS_scenarioLeds_Manual: Please check the (\"ScGroup Status\" and \"DefaultWScInScGrp Status\") status leds on \"DefaultScInScGrp\" scenario tab!");
var charstring vl_snapshot := f_EPTF_UIHandler_snapshot();
if (f_EPTF_UIHandler_GUIConnected()) {
// GUI present
// action(%definitionId&"-tc_ExecCtrl_DS_scenarioLeds_Manual-"&vl_snapshot);
}
setverdict(pass);
f_EPTF_Base_wait4Shutdown();
f_EPTF_ExecCtrl_exit();
f_EPTF_Base_stop(pass);
}
group EPTF_ExecCtrl_Test_SmallCPSDistribution {
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_Test_SmallCPSDistribution
//
// Purpose:
// Checks if the generated CPS is steady for small CPS-es if number of LGens are big.
// In this test NofLGens: 4, CPS: 1
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_Test_SmallCPSDistribution() runs on ExecCtrl_Test_SmallCPSDistribution_CT
{
f_EPTF_ExecCtrl_Test_SmallCPSDistribution_execute(
pl_nofLGens := 4,
pl_gui := self,
pl_eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
pl_scName := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal,
pl_tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc2,
pl_targetCPSList := {1.0}
);
f_EPTF_Base_cleanup_CT();
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_Test_SmallCPSDistribution_CPSChange_OneLGen
//
// Purpose:
// Checks if the generated CPS is steady for small CPS-es if number of LGens are big.
// In this test NofLGens: 1
// The CPS is changed in this test
// NofLGens: 10
// The CPS values:
// CPS: 10
// CPS: 1
// CPS: 0.1
// CPS: 100
// CPS: a bit bigger than 1/varsync time
// CPS: a bit smaller than 1/varsync time
// CPS: 0.04
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_Test_SmallCPSDistribution_CPSChange_OneLGen() runs on ExecCtrl_Test_SmallCPSDistribution_CT
{
f_EPTF_Var_init_CT("SmallCPSDistribution");
f_EPTF_ExecCtrl_Test_SmallCPSDistribution_execute(
pl_nofLGens := 1,
pl_gui := self,
pl_eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
pl_scName := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal,
pl_tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc2,
pl_targetCPSList := {
10.0, // CPS is the same as in the declarator, no setCPS!
1.0,
0.1,
100.0, // Large CPS
1.1,
1.1/f_EPTF_Var_getRefreshPeriod(0), // update time is a bit smaller than var sync time
0.9/f_EPTF_Var_getRefreshPeriod(0), // update time is a bit bigger than var sync time
0.04 // very small CPS
}
);
f_EPTF_Base_cleanup_CT();
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_Test_SmallCPSDistribution_CPSChange
//
// Purpose:
// Checks if the generated CPS is steady for small CPS-es if number of LGens are big.
// In this test NofLGens: 10
// The CPS is changed in this test
// NofLGens: 10
// The CPS values:
// CPS: 10
// CPS: 1
// CPS: 0.1
// CPS: 100
// CPS: a bit bigger than 1/varsync time
// CPS: a bit smaller than 1/varsync time
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_Test_SmallCPSDistribution_CPSChange() runs on ExecCtrl_Test_SmallCPSDistribution_CT
{
f_EPTF_Var_init_CT("SmallCPSDistribution");
f_EPTF_ExecCtrl_Test_SmallCPSDistribution_execute(
pl_nofLGens := 10,
pl_gui := self,
pl_eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
pl_scName := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal,
pl_tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc2,
pl_targetCPSList := {
10.0, // CPS is the same as in the declarator, no setCPS!
1.0,
0.1,
100.0, // Large CPS
1.1,
1.1/f_EPTF_Var_getRefreshPeriod(0), // update time is a bit smaller than var sync time
0.9/f_EPTF_Var_getRefreshPeriod(0) // update time is a bit bigger than var sync time
}
);
f_EPTF_Base_cleanup_CT();
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_Test_SmallCPSDistribution_CPSChange
//
// Purpose:
// Checks if the generated CPS is steady for some CPS if number of LGens are big.
// After long execution there should not be bursts in the CPS (due to cumulativeBurstError compensation)
// NofLGens: 10
// The CPS values:
// CPS: 20.5
// CPS: 20.0
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_Test_SmallCPSDistribution_BurstError() runs on ExecCtrl_Test_SmallCPSDistribution_CT
{
f_EPTF_Var_init_CT("SmallCPSDistribution");
f_EPTF_ExecCtrl_Test_SmallCPSDistribution_execute(
pl_nofLGens := 10,
pl_gui := self,
pl_eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
pl_scName := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal,
pl_tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc2,
pl_targetCPSList := {
20.5,
20.0
},
pl_nofLGenRefresh := 500
);
f_EPTF_Base_cleanup_CT();
}
///////////////////////////////////////
// same for weighted scenario:
//////////////////////////////////////
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_Test_SmallCPSDistribution_wSc
//
// Purpose:
// Checks if the generated CPS is steady for small CPS-es if number of LGens are big.
// In this test NofLGens: 4, CPS: 1
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_Test_SmallCPSDistribution_wSc() runs on ExecCtrl_Test_SmallCPSDistribution_CT
{
f_EPTF_ExecCtrl_Test_SmallCPSDistribution_execute(
pl_nofLGens := 4,
pl_gui := self,
pl_eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
pl_scName := c_EPTF_ExecCtrl_DefaultScenarios_scNameWeighted,
pl_tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc2,
pl_targetCPSList := {1.0}
);
f_EPTF_Base_cleanup_CT();
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_Test_SmallCPSDistribution_CPSChange_OneLGen
//
// Purpose:
// Checks if the generated CPS is steady for small CPS-es if number of LGens are big.
// In this test NofLGens: 1
// The CPS is changed in this test
// NofLGens: 10
// The CPS values:
// CPS: 10
// CPS: 1
// CPS: 0.1
// CPS: 100
// CPS: a bit bigger than 1/varsync time
// CPS: a bit smaller than 1/varsync time
// CPS: 0.04
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_Test_SmallCPSDistribution_CPSChange_OneLGen_wSc() runs on ExecCtrl_Test_SmallCPSDistribution_CT
{
f_EPTF_Var_init_CT("SmallCPSDistribution");
f_EPTF_ExecCtrl_Test_SmallCPSDistribution_execute(
pl_nofLGens := 1,
pl_gui := self,
pl_eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
pl_scName := c_EPTF_ExecCtrl_DefaultScenarios_scNameWeighted,
pl_tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc2,
pl_targetCPSList := {
10.0, // CPS is the same as in the declarator, no setCPS!
1.0,
0.1,
100.0, // Large CPS
1.1,
1.1/f_EPTF_Var_getRefreshPeriod(0), // update time is a bit smaller than var sync time
0.9/f_EPTF_Var_getRefreshPeriod(0), // update time is a bit bigger than var sync time
0.04 // very small CPS
}
);
f_EPTF_Base_cleanup_CT();
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_Test_SmallCPSDistribution_CPSChange
//
// Purpose:
// Checks if the generated CPS is steady for small CPS-es if number of LGens are big.
// In this test NofLGens: 10
// The CPS is changed in this test
// NofLGens: 10
// The CPS values:
// CPS: 10
// CPS: 1
// CPS: 0.1
// CPS: 100
// CPS: a bit bigger than 1/varsync time
// CPS: a bit smaller than 1/varsync time
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_Test_SmallCPSDistribution_CPSChange_wSc() runs on ExecCtrl_Test_SmallCPSDistribution_CT
{
f_EPTF_Var_init_CT("SmallCPSDistribution");
f_EPTF_ExecCtrl_Test_SmallCPSDistribution_execute(
pl_nofLGens := 10,
pl_gui := self,
pl_eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
pl_scName := c_EPTF_ExecCtrl_DefaultScenarios_scNameWeighted,
pl_tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc2,
pl_targetCPSList := {
10.0, // CPS is the same as in the declarator, no setCPS!
1.0,
0.1,
100.0, // Large CPS
1.1,
1.1/f_EPTF_Var_getRefreshPeriod(0), // update time is a bit smaller than var sync time
0.9/f_EPTF_Var_getRefreshPeriod(0) // update time is a bit bigger than var sync time
}
);
f_EPTF_Base_cleanup_CT();
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_Test_SmallCPSDistribution_BurstError_wSc
//
// Purpose:
// Checks if the generated CPS is steady for some CPS if number of LGens are big.
// After long execution there should not be bursts in the CPS (due to cumulativeBurstError compensation)
// NofLGens: 10
// The CPS values:
// CPS: 20.5
// CPS: 20.0
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_Test_SmallCPSDistribution_BurstError_wSc() runs on ExecCtrl_Test_SmallCPSDistribution_CT
{
f_EPTF_Var_init_CT("SmallCPSDistribution");
f_EPTF_ExecCtrl_Test_SmallCPSDistribution_execute(
pl_nofLGens := 10,
pl_gui := self,
pl_eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
pl_scName := c_EPTF_ExecCtrl_DefaultScenarios_scNameWeighted,
pl_tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc2,
pl_targetCPSList := {
20.5,
20.0
},
pl_nofLGenRefresh := 500
);
f_EPTF_Base_cleanup_CT();
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_Test_SmallCPSDistribution_CPSBurstCheck_OneLGen
//
// Purpose:
// Checks if the generated CPS is steady for a CPS if number of LGens is 1.
// In this test NofLGens: 1
// The CPS is changed in this test
// NofLGens: 1
// The CPS values:
// CPS: 60
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_Test_SmallCPSDistribution_CPSBurstCheck_OneLGen() runs on ExecCtrl_Test_SmallCPSDistribution_CT
{
f_EPTF_Var_init_CT("SmallCPSDistribution");
const integer cl_lgenNum := 1;
const float cl_cps := 60.0
v_expectedCPSPerLGen := cl_cps/int2float(cl_lgenNum);
f_EPTF_ExecCtrl_Test_SmallCPSDistribution_execute(
pl_nofLGens := cl_lgenNum,
pl_gui := self,
pl_eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
pl_scName := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal,
pl_tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc2,
pl_targetCPSList := {
cl_cps // very small CPS
},
pl_nofLGenRefresh := 100000,
pl_createLGenFn := refers(f_EPTF_ExecCtrl_Test_SmallCPSDistribution_createStartTimeMeasureLGen)
);
f_EPTF_Base_cleanup_CT();
}
} //group EPTF_ExecCtrl_Test_SmallCPSDistribution
group HP34819{ //UpdateActiveEntities during cleanup
testcase tc_EPTF_ExecCtrl_Test_HP34819()
runs on EPTF_ExecCtrl_Test_CT {
f_EPTF_ExecCtrl_setManualControl(true);
const EPTF_ExecCtrl_LGenFunction_Entry_List cl_lgenCreatorFunctions := {
{
omit,
refers(f_EPTF_createHP34819LGen)
}
}
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EntityGrpDeclaratorList_HP34819,
//pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_TCTypeHP34819},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList := c_ScenarioDeclarators_HP34819,
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList := c_Scenario2EntityGroupList_HP34819,
pl_EPTF_ExecCtrl_LGenPool_Declarators := c_LGenPool_Declarators_HP34819,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List := c_EntityGroup2LGenPool_List_HP34819,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List := cl_lgenCreatorFunctions//,
//pl_EPTF_ExecCtrl_PhaseList_Declarators := {},
//pl_EPTF_ExecCtrl_ScenarioGroup_Declarators := {}//c_ScenarioGroup_Declarators_HP34819
);
//f_EPTF_ExecCtrl_loadConfig(pl_EPTF_ExecCtrl_LGenFunction_Entry_List := vl_lgenCreatorFunctions);
f_EPTF_ExecCtrl_init_CT(
pl_selfName := %definitionId,
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_loadModulepars := false,
pl_autoStart := true,
pl_dataSource_compRef := null
);
f_EPTF_ExecCtrl_waitForCondition(refers(f_EPTF_ExecCtrl_checkReadyToRun));
//f_EPTF_ExecCtrl_startAllScenarios();
//action("ready");
//action(v_ExecCtrl_lgens);
//f_EPTF_ExecCtrl_startAllScenarios();
//f_EPTF_Base_wait4Shutdown();
setverdict ( pass );
f_EPTF_ExecCtrl_exit();
//f_EPTF_Base_stopAll(pass);
}
}
testcase tc_ExecCtrl_Test_Html_Gui() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("SetTargetCPSInAutoOff", true, vl_wndLayout, -,-);
timer T_waitforSplash;
T_waitforSplash.start( 10.0 );
T_waitforSplash.timeout;
// f_EPTF_UIHandler_CLI_init_CT("SetTargetCPSInAutoOff", true, vl_wndLayout, -,-, false);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_init_CT(f_EPTF_Base_selfName(), 0, pl_dataSource_compRef := self);
// start the regulators:
var PhaseRegulator_CT vl_regulator1 := PhaseRegulator_CT.create;
vl_regulator1.start(f_EPTF_ExecCtrl_Test_PhaseRegulator_behavior("Regulator 1",self,1.0));
var EPTF_LoadRegulator_CT vl_regulator2 := EPTF_LoadRegulator_CT.create;
vl_regulator2.start(f_ExecCtrl_Regulator_Test_RegulatorBehaviour("Regulator 3",self,1.0));
timer T_guard, T_alt;
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
f_EPTF_ExecCtrl_startAllScenarios();
f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_UIHandler_Test_progressBarIncrease() runs on myMTC_UI
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("ExecCtrl_UIHandler_Test", true, vl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_execCtrlUI := EPTF_ExecCtrl_UIHandler_Test_CT.create("ExecCtrlUI");
v_clientsUI[0] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_0");
v_clientsUI[1] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_1");
v_clientsUI[2] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_2");
v_clientsUI[3] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_3");
v_clientsUI[4] := EPTF_ExecCtrlClient_UIHandler_Test_CT.create("ExecCtrlCUI_4");
v_execCtrlUI.start(f_EPTF_ExecCtrl_UIHandler_Test_terminateButton("ExecCtrl_Test",5, self, 6.0, false));
v_clientsUI[0].start(f_EPTF_ExecCtrlClient_UIHandler_Test_behavior("ExecCtrlCUI_0", v_execCtrlUI));
v_clientsUI[1].start(f_EPTF_ExecCtrlClient_UIHandler_Test_behavior("ExecCtrlCUI_1", v_execCtrlUI));
v_clientsUI[2].start(f_EPTF_ExecCtrlClient_UIHandler_Test_behavior("ExecCtrlCUI_2", v_execCtrlUI));
v_clientsUI[3].start(f_EPTF_ExecCtrlClient_UIHandler_Test_behavior("ExecCtrlCUI_3", v_execCtrlUI));
v_clientsUI[4].start(f_EPTF_ExecCtrlClient_UIHandler_Test_behavior("ExecCtrlCUI_4", v_execCtrlUI));
t.start(6.0);
t.timeout;
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
}
[v_ready] T_alt.timeout{}
};
// add progressbar to gui:
f_EPTF_UIHandler_createGUI("
<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>
<hbox flex='1.0' id='' orientation='horizontal'>
<label flex='1.0' value='Progress:' />
<spacer flex='0.0' />
<textbox id='ProgressBar' flex='5.0' multiline='true' rows='7.0' readonly='true' value=''>
<externaldata element='progressBarHistory' source='UIHandler'>
<params>
</params>
</externaldata>
</textbox>
</hbox>
</Widgets>",
""
//"Execution_Control.EntityGroups.tab"
//"EPTF_ExecCtrl.Statistics.EG.DefaultEGrp.tab"
//"Execution_Control.tab"
);
t.start(60.0);
alt {
[] all component.done {}
[] t.timeout {
setverdict(fail, "Test did not finish in time");
}
}
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_UIHandler_Test_NrOfExpectedClients() runs on myMTC_UI
{
f_EPTF_Base_init_CT("ExecCtrl");
f_EPTF_DataSource_init_CT("ExecCtrl");
v_execCtrlUI := EPTF_ExecCtrl_UIHandler_Test_CT.create("ExecCtrl"); // ExecCtrlUI
v_execCtrlUI.start(f_EPTF_ExecCtrl_UIHandler_Test_NrOfExpectedClients("ExecCtrl",5, 6.0));
t.start(6.0);
t.timeout;
t.start(30.0);
alt {
[] all component.done {}
[] t.timeout {
setverdict(fail, "Test did not finish in time");
}
}
f_EPTF_Base_cleanup_CT();
}
group ScenarioWithFSM_no_tcTypeDeclaratorList_HO82462 {
// Tests if the FSM is given in the Scenario, not using TcTypeDeclarator, it is distributed correctly if
// there are lgenpools with same entityType but with different behaviour (=FSM).
// Config:
// There are two scenarios with different FSMs
// There are two EntityGroups with same entity type
// There are two LGenPools with same entityType but different FSMs
// Each Scenario is assigned to the EntityGroup which is distributed on the LGebnPool that defines the correct FSM
// There should be no error distributing this configuration.
// This configuration is recommended instead of the old one that uses TCTypeDeclarators and would result in error during TC distribution.
// The test starts execution after GUI is ready and waits until 40 successful traffic execution after which the test is stopped
// TR: HO82462
testcase tc_ExecCtrl_Test_no_tcTypeDeclaratorList_HO82462() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("no_tcTypeDeclaratorList_HO82462", true, vl_wndLayout);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := {
{
name := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName&"_1",
eType := c_EPTF_ExecCtrl_Test_defaultETypeName,
eCount := c_EPTF_ExecCtrl_DefaultScenarios_eGrpSize
},
{
name := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName&"_2",
eType := c_EPTF_ExecCtrl_Test_defaultETypeName,
eCount := c_EPTF_ExecCtrl_DefaultScenarios_eGrpSize
}
},
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := {
{
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName&"_1",
scenarioNames := {
c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal&"_1"
}
},
{
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName&"_2",
scenarioNames := {
c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal&"_2"
}
}
},
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
// TCType is not declared, FSM is given in the Scenario declarator/TCParams/fsmList:
// If it is commented in, Test case will fail with the message like this on the clients:
// "Error: EPTF_LGenBase: f_EPTF_LGenBase_fillTcTypeDescriptor: Invalid FSM name: defaultFSM_1"
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {/*
{
name := c_EPTF_ExecCtrl_DefaultScenarios_tcTypeName&"_1",
fsmName := c_EPTF_ExecCtrl_Test_defaultFSMName&"_1",
entityType := c_EPTF_ExecCtrl_Test_defaultETypeName,
customEntitySucc := ""
},
{
name := c_EPTF_ExecCtrl_DefaultScenarios_tcTypeName&"_2",
fsmName := c_EPTF_ExecCtrl_Test_defaultFSMName&"_2",
entityType := c_EPTF_ExecCtrl_Test_defaultETypeName,
customEntitySucc := ""
}
*/},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
{
name := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal&"_1",
tcList := {
{
tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc1,
tcParamsList := {
//{tcTypeName := c_EPTF_ExecCtrl_DefaultScenarios_tcTypeName&"_1"},
{fsmList := {c_EPTF_ExecCtrl_Test_defaultFSMName&"_1"}},
{enableEntitiesAtStart := true},
{enabledAtStart := true},
{target := {cpsToReach := 10.0} }
}
},
{
tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc2,
tcParamsList := {
//{tcTypeName := c_EPTF_ExecCtrl_DefaultScenarios_tcTypeName&"_1"},
{fsmList := {c_EPTF_ExecCtrl_Test_defaultFSMName&"_1"}},
{enableEntitiesAtStart := true},
{enabledAtStart := true},
{target := {cpsToReach := 10.0} }
}
}
},
scParamsList := {
{enabled := true}
}
},
{
name := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal&"_2",
tcList := {
{
tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc1,
tcParamsList := {
//{tcTypeName := c_EPTF_ExecCtrl_DefaultScenarios_tcTypeName&"_2"},
{fsmList := {c_EPTF_ExecCtrl_Test_defaultFSMName&"_2"}},
{enableEntitiesAtStart := true},
{enabledAtStart := true},
{target := {cpsToReach := 10.0} }
}
},
{
tcName := c_EPTF_ExecCtrl_DefaultScenarios_tcNameTc2,
tcParamsList := {
//{tcTypeName := c_EPTF_ExecCtrl_DefaultScenarios_tcTypeName&"_2"},
{fsmList := {c_EPTF_ExecCtrl_Test_defaultFSMName&"_2"}},
{enableEntitiesAtStart := true},
{enabledAtStart := true},
{target := {cpsToReach := 10.0} }
}
}
},
scParamsList := {
{enabled := true}
}
}
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:={
{
name := c_EPTF_ExecCtrl_Test_defaultLGenPoolName&"_1",
lgenPoolItems := {
{
hostname := "localhost",
num := 2,
createFunctionName := "EPTF_ExecCtrl_Test_Functions.f_ExecCtrl_Test_HO82462_createLGen"&"_1"
}
}
},
{
name := c_EPTF_ExecCtrl_Test_defaultLGenPoolName&"_2",
lgenPoolItems := {
{
hostname := "localhost",
num := 2,
createFunctionName := "EPTF_ExecCtrl_Test_Functions.f_ExecCtrl_Test_HO82462_createLGen"&"_2"
}
}
}
},
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:={
{
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName&"_1",
lgenPoolName := c_EPTF_ExecCtrl_Test_defaultLGenPoolName&"_1"
},
{
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName&"_2",
lgenPoolName := c_EPTF_ExecCtrl_Test_defaultLGenPoolName&"_2"
}
},
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_HO82462_createLGen_1)
},{
name := omit,
fn := refers(f_ExecCtrl_Test_HO82462_createLGen_2)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:={},
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:={},
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_init_CT(f_EPTF_Base_selfName(), 0, pl_dataSource_compRef := self);
timer T_guard, T_alt;
// start after loadconfig
// 2013.04.08. f_EPTF_ExecCtrl_start(pl_createLGenPools := true);
T_guard.start( 100.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
f_EPTF_ExecCtrl_startAllScenarios();
// check if modulepars are loaded:
var integer vl_idx := f_EPTF_Var_getId("EPTF_ExecCtrl.Statistics.EG.DefaultEGrp_1.SC.DefaultSc_1.TC.DefaultTC2.Starts");
if (-1==vl_idx) {
setverdict(fail,"ExecCtrl parameters were not loaded.");
f_EPTF_Base_stopAll();
} else {
T_guard.start( 30.0 );
T_alt.start( 0.0 );
alt {
[40-f_EPTF_Var_getIntValue(vl_idx)<0] T_alt.timeout {
setverdict(pass);
}
[] T_guard.timeout {
setverdict(fail,"Timeout after start: target CPS is not reached in time");
f_EPTF_Base_stopAll();
}
}
}
//f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
} // group ScenarioWithFSM_no_tcTypeDeclaratorList_HO82462
testcase tc_ExecCtrl_Test_generatedOwnFinalTest() runs on ExecCtrlExpWarning_Test_CT
{
f_EPTF_ExecCtrl_init_CT("ExecCtrl_Test",0);
f_EPTF_ExecCtrl_generateFinalTestReport();
var charstring vl_charstring := f_EPTF_ExecCtrl_Test_getFinalReport();
if(vl_charstring != ""){
log("There is a report, ok: ", vl_charstring);
setverdict(pass,"Report is generated.");
} else {
setverdict(fail,"Report is empty.");
}
timer T_g2;
T_g2.start( 2.0 );
T_g2.timeout;
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_Test_generatedOwnFinalTest2() runs on ExecCtrlExpWarning_Test_CT
{
f_EPTF_ExecCtrl_init_CT("ExecCtrl_Test",0);
f_EPTF_ExecCtrl_setGenerateOwnReport(false);
f_EPTF_ExecCtrl_Test_ExpectedWarning_setExpectedWarning("*No report generated: Generated final test report is empty. If You want so, please set tsp_EPTF_ExecCtrl_finalTestReportFile to empty string.*");
f_EPTF_ExecCtrl_generateFinalTestReport();
var charstring vl_charstring := f_EPTF_ExecCtrl_Test_getFinalReport();
timer T_g2;
T_g2.start( 2.0 );
T_g2.timeout;
f_EPTF_Base_cleanup_CT();
}
testcase tc_ExecCtrl_HP63565Test() runs on EPTF_ExecCtrl_CT
{
f_EPTF_Base_init_CT("HP63565Test")
f_EPTF_Base_setExpectedErrorMsg("Error: EPTF_ExecCtrl: f_EPTF_ExecCtrl_addScenario2EntityGroup: Cannot add scenario \"DefaultSc\" to entity group \"DefaultEGrp\": The scenario is already added")
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups&c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true)
f_EPTF_ExecCtrl_init_CT("HP63565Test", 1, false)
f_EPTF_Base_cleanup_CT()
}
group EPTF_ExecCtrl_Test_DeltaStatFSM {
type component ExecCtrl_Test_DeltaStat_Main_CT extends ExecCtrl_NewGUITest_CT, EPTF_UIHandler_CLI_CT, EPTF_ExecCtrl_UIHandler_CT {
var EPTF_ExecCtrl_Test_deltaValueListList v_EPTF_ExecCtrl_Test_deltaValuesList := {{}};
var boolean v_deltaStatClosePending := false;
var boolean v_deltaStatClosed := false;
var integer v_cycleIdxMax := 0;
}
private function f_EPTF_ExecCtrl_Tests_deltaStat_Time() runs on ExecCtrl_Test_DeltaStat_Main_CT return charstring {
var float vl_timeFloat := f_EPTF_Base_getAbsTimeInSecs();
var integer vl_timeSecs := float2int(vl_timeFloat);
var integer vl_timeMilliSecs := float2int((vl_timeFloat - int2float(vl_timeSecs)) * 1000.0);
var charstring vl_time := f_getTimeFormatted(vl_timeSecs, "%X") & ":" & int2str(vl_timeMilliSecs);
return vl_time;
}
private function f_EPTF_ExecCtrl_Tests_deltaStat_PostProc(in integer pl_idx, in EPTF_IntegerList pl_argList) runs on ExecCtrl_Test_DeltaStat_Main_CT {
var integer vl_idxVar := pl_argList[0];
var integer vl_varBaseId := pl_argList[1];
var integer vl_variableValue := f_EPTF_Var_getIntValue(pl_idx);
var integer vl_variableBaseValue := f_EPTF_Var_getIntValue(vl_varBaseId);
if(isbound(v_EPTF_ExecCtrl_Test_deltaValuesList[vl_idxVar])==false){
v_EPTF_ExecCtrl_Test_deltaValuesList[vl_idxVar] := {};
}
var integer vl_idxNext := sizeof(v_EPTF_ExecCtrl_Test_deltaValuesList[vl_idxVar]);
v_EPTF_ExecCtrl_Test_deltaValuesList[vl_idxVar][vl_idxNext] := vl_variableValue;
if(v_cycleIdxMax<vl_idxNext){
v_cycleIdxMax := vl_idxNext;
}
var integer vl_tcDeltaStatVarId := c_EPTF_ExecCtrl_tcDeltaStatVarIds[vl_idxVar];
var charstring vl_statName := c_EPTF_ExecCtrl_tcStatNames[vl_tcDeltaStatVarId];
action("f_EPTF_ExecCtrl_Tests_deltaStat_PostProc{", vl_idxVar, ", ", vl_idxNext, "}:" ,"[",f_EPTF_ExecCtrl_Tests_deltaStat_Time(),"]", " - ",vl_statName, ":", vl_variableBaseValue," -> ",vl_variableValue);
// If close pending -> closed when a full circle done
if(v_deltaStatClosePending==true){
var boolean vl_allCycleProcessed := true;
for(var integer vl_idx:=0; vl_idx < sizeof(v_EPTF_ExecCtrl_Test_deltaValuesList) and vl_allCycleProcessed == true ;vl_idx:=vl_idx+1){
vl_tcDeltaStatVarId := c_EPTF_ExecCtrl_tcDeltaStatVarIds[vl_idx];
vl_statName := c_EPTF_ExecCtrl_tcStatNames[vl_tcDeltaStatVarId];
action("f_EPTF_ExecCtrl_Tests_deltaStat_PostProc - v_deltaStatClosePending{", vl_idx, "}:" ,"[",f_EPTF_ExecCtrl_Tests_deltaStat_Time(),"]:", vl_statName, " - ", sizeof(v_EPTF_ExecCtrl_Test_deltaValuesList[vl_idx]), "==", v_cycleIdxMax+1);
if(sizeof(v_EPTF_ExecCtrl_Test_deltaValuesList[vl_idx])!= v_cycleIdxMax+1){
vl_allCycleProcessed := false;
}
}
if(vl_allCycleProcessed == true){
v_deltaStatClosePending := false;
v_deltaStatClosed := true;
action("f_EPTF_ExecCtrl_Tests_deltaStat_PostProc - vl_allCycleProcessed:" ,"[",f_EPTF_ExecCtrl_Tests_deltaStat_Time(),"]");
}
}
}
private function f_EPTF_ExecCtrl_Tests_deltaStatTestDone() runs on ExecCtrl_Test_DeltaStat_Main_CT
return boolean {
return v_deltaStatClosed;
}
testcase tc_ExecCtrl_Test_DeltaStat() runs on ExecCtrl_Test_DeltaStat_Main_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("Test_DeltaStat", true, vl_wndLayout,self);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DeltaStatScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_DeltaStatLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGenDeltaStat)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_ExecCtrl_init_CT(f_EPTF_Base_selfName(), 0, pl_dataSource_compRef := self);
// start the regulators:
var PhaseRegulator_CT vl_regulator1 := PhaseRegulator_CT.create;
vl_regulator1.start(f_EPTF_ExecCtrl_Test_PhaseRegulator_behavior("Regulator 1",self,1.0));
var EPTF_LoadRegulator_CT vl_regulator2 := EPTF_LoadRegulator_CT.create;
vl_regulator2.start(f_ExecCtrl_Regulator_Test_RegulatorBehaviour("Regulator 3",self,1.0));
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
}
[v_ready] T_alt.timeout{}
};
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,"");
timer T_g2;
T_g2.start( 2.0 );
T_g2.timeout;
setverdict(pass); // Pass :)
if(f_EPTF_Base_waitForCondition(pl_checkCondFn:= refers (f_EPTF_ExecCtrl_checkReadyToRun), pl_maxWaitTime:=100.0)==false){
setverdict(pass,"Timeout during config!");
}
// Set time period for period
f_EPTF_ExecCtrl_setTimePeriodForTcDeltaStats(9.0);
// add the postproc for the display variable:
v_EPTF_ExecCtrl_Test_deltaValuesList := {};
// all stat deltas
for(var integer vl_st:=0; vl_st<sizeof(c_EPTF_ExecCtrl_tcDeltaStatVarIds);vl_st:=vl_st+1) {
v_EPTF_ExecCtrl_Test_deltaValuesList[vl_st] := {};
var integer vl_tcDeltaStatVarId := c_EPTF_ExecCtrl_tcDeltaStatVarIds[vl_st];
var charstring vl_statName := c_EPTF_ExecCtrl_Test_deltaStatVarBase&"."& c_EPTF_ExecCtrl_tcStatNames[vl_tcDeltaStatVarId] &".delta";
var integer vl_varIdx := f_EPTF_Var_getId(vl_statName);
var charstring vl_varBaseName := c_EPTF_ExecCtrl_Test_deltaStatVarBase&"."&c_EPTF_ExecCtrl_tcStatNames[vl_tcDeltaStatVarId];
var integer vl_varBaseId := f_EPTF_Var_getId(vl_varBaseName);
f_EPTF_Var_addPostProcFn( pl_idx := vl_varIdx, pl_postProcFn := { funcRef := refers(f_EPTF_ExecCtrl_Tests_deltaStat_PostProc), argList := {vl_st,vl_varBaseId} } );
}
action("tc_ExecCtrl_Test_DeltaStat[f_EPTF_ExecCtrl_startAllScenarios]","[",f_EPTF_ExecCtrl_Tests_deltaStat_Time(),"]");
f_EPTF_ExecCtrl_startAllScenarios();
action("tc_ExecCtrl_Test_DeltaStat[Wait for Test]","[",f_EPTF_ExecCtrl_Tests_deltaStat_Time(),"]");
//timer T_g2;
T_g2.start( 112.0 );
T_g2.timeout;
// Wait for next cycle
action("tc_ExecCtrl_Test_DeltaStat[Wait for next cycle]","[",f_EPTF_ExecCtrl_Tests_deltaStat_Time(),"]");
v_deltaStatClosePending := true;
v_deltaStatClosed := false;
if(f_EPTF_Base_waitForCondition(pl_checkCondFn:= refers (f_EPTF_ExecCtrl_Tests_deltaStatTestDone), pl_maxWaitTime:=30.0)==false){
setverdict(pass,"Timeout during close Delta stat!");
}
f_EPTF_ExecCtrl_stopAllScenarios();
action("tc_ExecCtrl_Test_DeltaStat[Wait for stop]","[",f_EPTF_ExecCtrl_Tests_deltaStat_Time(),"]");
T_g2.start( 20.0 );
T_g2.timeout;
action("tc_ExecCtrl_Test_DeltaStat[Stopped]","[",f_EPTF_ExecCtrl_Tests_deltaStat_Time(),"]");
if(isbound(v_EPTF_ExecCtrl_Test_deltaValuesList)==true){
var integer vl_sumOfSubDeltas := 0;
var integer vl_sumOfSubBase := 0;
var integer vl_nbOf80Percentage := 0;
for(var integer vl_st:=0; vl_st<sizeof(c_EPTF_ExecCtrl_tcDeltaStatVarIds);vl_st:=vl_st+1) {
if(isbound(v_EPTF_ExecCtrl_Test_deltaValuesList[vl_st])==true){
var integer vl_tcDeltaStatVarId := c_EPTF_ExecCtrl_tcDeltaStatVarIds[vl_st];
var charstring vl_statName := "sum("&c_EPTF_ExecCtrl_tcStatNames[vl_tcDeltaStatVarId] &".delta) = ";
var integer vl_sumOfDeltas := 0;
for(var integer vl_idx:=0; vl_idx<sizeof(v_EPTF_ExecCtrl_Test_deltaValuesList[vl_st]); vl_idx:=vl_idx+1){
vl_sumOfDeltas := vl_sumOfDeltas + v_EPTF_ExecCtrl_Test_deltaValuesList[vl_st][vl_idx];
}
var charstring vl_varBaseName := c_EPTF_ExecCtrl_Test_deltaStatVarBase&"."&c_EPTF_ExecCtrl_tcStatNames[vl_tcDeltaStatVarId];
var integer vl_varBaseId := f_EPTF_Var_getId(vl_varBaseName);
var integer vl_variableBaseValue := f_EPTF_Var_getIntValue(vl_varBaseId);
if(0<vl_st){
vl_sumOfSubDeltas := vl_sumOfSubDeltas + vl_sumOfDeltas;
vl_sumOfSubBase := vl_sumOfSubBase + vl_variableBaseValue;
}
var integer vl_actPercentage := 100;
if(0<vl_variableBaseValue) {
vl_actPercentage := ((vl_sumOfDeltas*100)/vl_variableBaseValue);
}
action("tc_ExecCtrl_Test_DeltaStat{", vl_st, "}:" ,"[",f_EPTF_ExecCtrl_Tests_deltaStat_Time(),"]" ,vl_statName, vl_sumOfDeltas," -> ",vl_variableBaseValue, " - ",vl_actPercentage, "%");
if(0.1 * int2float(vl_variableBaseValue) < int2float(vl_variableBaseValue-vl_sumOfDeltas)){
if(0.2 * int2float(vl_variableBaseValue) < int2float(vl_variableBaseValue-vl_sumOfDeltas)){
setverdict(fail,"The value out of 80% tolerance ["&c_EPTF_ExecCtrl_tcStatNames[vl_tcDeltaStatVarId]&"]");
} else {
vl_nbOf80Percentage := vl_nbOf80Percentage+1;
if((sizeof(c_EPTF_ExecCtrl_tcDeltaStatVarIds)/2)<vl_nbOf80Percentage){
setverdict(fail,"Too mutch 80% tolerance ["&c_EPTF_ExecCtrl_tcStatNames[vl_tcDeltaStatVarId]&"]");
} else {
setverdict(pass,"80% tolerance ocured ["&c_EPTF_ExecCtrl_tcStatNames[vl_tcDeltaStatVarId]&"]!");
}
}
}
} else {
action("tc_ExecCtrl_Test_DeltaStat{", vl_st, "}: - unbound!");
}
}
action("tc_ExecCtrl_Test_DeltaStat{SUB}:" , vl_sumOfSubDeltas," -> ",vl_sumOfSubBase);
if(vl_nbOf80Percentage == 0){
if(0.1 * int2float(vl_sumOfSubBase) < int2float(vl_sumOfSubBase-vl_sumOfSubDeltas)){
setverdict(fail,"The SUM value out of 90% tolerance!");
}
} else {
if(0.2 * int2float(vl_sumOfSubBase) < int2float(vl_sumOfSubBase-vl_sumOfSubDeltas)){
setverdict(fail,"The SUM value out of 80% tolerance!");
} else {
setverdict(pass,"80% tolerance SUM ocured!");
}
}
} else {
action("tc_ExecCtrl_Test_DeltaStat{v_EPTF_ExecCtrl_Test_deltaValuesList}: - unbound!");
}
//f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
} // EPTF_ExecCtrl_Test_DeltaStatFSM
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_Test_LGenPool_checkBehaviorFnNameOfPool
//
// Purpose:
// This testcase checks if the function <f_EPTF_ExecCtrl_getLGenCompRefsOfPool> works correctly.
// It creates an LGen pool for two entity groups and calls the function with different parameters.
// The verdict of the test should be pass.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_Test_addWrongEntityGroup2LGenPool() runs on ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT
{
f_EPTF_Base_init_CT("LGenPool_getLGenCompRefsOfPool")
f_EPTF_Base_setExpectedErrorMsg("*Error: EPTF_ExecCtrl: f_EPTF_ExecCtrl_addEntityGroup2LGenPool: Cannot add Entity Group* to the LGenPool: *: EntityGroup does not exists!*")
// Need to create a dummy component to be able to determine the correct component indexes in case of multiple TC-s are executed:
var ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT vl_dummyComp := ExecCtrl_Regulator_Test_SetTargetCPSInAutoOff_Main_CT.create;
var integer vl_compRefOffset := f_EPTF_Base_upcast(vl_dummyComp);
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandler_CLI_init_CT("LGenPool_getLGenCompRefsOfPool", true, vl_wndLayout);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList&
{{
name := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName&".2",
eType := c_EPTF_ExecCtrl_Test_defaultETypeName,
eCount := c_EPTF_ExecCtrl_DefaultScenarios_eGrpSize
}},
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators&{
{
name := c_EPTF_ExecCtrl_Test_defaultLGenPoolName&".2",
lgenPoolItems := {
{
hostname := "localhost",
num := 1,
createFunctionName := "EPTF_ExecCtrl_Test_Functions.f_ExecCtrl_Test_createDefaultLGen"
}
}
}
},
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List&{
{
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName&".2_NotValidEGrpName",
lgenPoolName := c_EPTF_ExecCtrl_Test_defaultLGenPoolName&".2"
}
},
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:={},
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:={},
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_init_CT(f_EPTF_Base_selfName(), 0, pl_dataSource_compRef := self);
setverdict(pass);
f_EPTF_Base_cleanup_CT();
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_Test_smallCPS_FirstCallTime
//
// Purpose:
// This test checks the implementation of CR_TR00019741
//
// For small CPS-es (1e-4, 1e-5, 1e-6)
// the traffic should start immediately after start button is pressed.
// This testcase checks this by checking the numberOfStarts statistics
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_Test_smallCPS_FirstCallTime() runs on ExecCtrl_NewGUITest_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("smallCPS_FirstCallTime", true, vl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := {
{
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
scenarioNames := {
c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal
}
}},
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario_smallCPS_FirstCallTime
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPoolWithSpecId_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGenWithSpecId)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:={},
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:={},
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_loadModulepars := false,
pl_autoStart := true,
pl_dataSource_compRef := self
);
timer T_guard, T_alt;
T_guard.start( 30.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config: v_ready");
}
[v_ready] T_alt.timeout{}
};
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,""/*c_ExecCtrl_DS_customGUIHBox*/);
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config: checkReadyToRun");
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
f_EPTF_ExecCtrl_startAllScenarios();
var charstring vl_nofStarts_VarName;
f_EPTF_DataSource_getData(
pl_dataVarName := vl_nofStarts_VarName,
pl_source := c_ExecCtrl_DataSource_sourceId,
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTcStat,
pl_params := {
{
paramName := "EntityGroup",
paramValue := "DefaultEGrp"
},
{
paramName := "Scenario",
paramValue := "DefaultSc"
},
{
paramName := "TrafficCase",
paramValue := "DefaultTC1"
},
{
paramName := "Statistic",
paramValue := "Starts"
}
}
);
var integer vl_varIdx := f_EPTF_Var_getId(vl_nofStarts_VarName);
f_EPTF_DataSource_getData(
pl_dataVarName := vl_nofStarts_VarName,
pl_source := c_ExecCtrl_DataSource_sourceId,
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTcStat,
pl_params := {
{
paramName := "EntityGroup",
paramValue := "DefaultEGrp"
},
{
paramName := "Scenario",
paramValue := "DefaultSc"
},
{
paramName := "TrafficCase",
paramValue := "DefaultTC2"
},
{
paramName := "Statistic",
paramValue := "Starts"
}
}
);
var integer vl_varIdx2 := f_EPTF_Var_getId(vl_nofStarts_VarName);
f_EPTF_DataSource_getData(
pl_dataVarName := vl_nofStarts_VarName,
pl_source := c_ExecCtrl_DataSource_sourceId,
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTcStat,
pl_params := {
{
paramName := "EntityGroup",
paramValue := "DefaultEGrp"
},
{
paramName := "Scenario",
paramValue := "DefaultSc"
},
{
paramName := "TrafficCase",
paramValue := "DefaultTC2_6"
},
{
paramName := "Statistic",
paramValue := "Starts"
}
}
);
var integer vl_varIdx3 := f_EPTF_Var_getId(vl_nofStarts_VarName);
T_guard.start( 10.0 );
T_guard.timeout;
if(vl_varIdx<0 or vl_varIdx2<0 or vl_varIdx3<0){
action("tc_ExecCtrl_Test_smallCPS_FirstCallTime:{",vl_varIdx, "; ",vl_varIdx2, "; ",vl_varIdx3, "}");
setverdict(fail,"Variable not found.")
f_EPTF_Base_stopAll(none);
}
else {
if(f_EPTF_Var_getIntValue(vl_varIdx)!=1) {
setverdict(fail,"TrafficCase DefaultTC1 with CPS 1e-4 did not start in time.")
f_EPTF_Base_stopAll(none);
}
if(f_EPTF_Var_getIntValue(vl_varIdx2)!=1) {
setverdict(fail,"TrafficCase DefaultTC2 with CPS 1e-5 did not start in time.")
f_EPTF_Base_stopAll(none);
}
if(f_EPTF_Var_getIntValue(vl_varIdx3)!=1) {
setverdict(fail,"TrafficCase DefaultTC2_6 with CPS 1e-6 did not start in time.")
f_EPTF_Base_stopAll(none);
}
}
//f_EPTF_Base_wait4Shutdown();
setverdict(pass);
f_EPTF_Base_cleanup_CT();
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_Test_smallCPS_FirstCallTime_WithGroupFinishCondition
//
// Purpose:
// This test checks the implementation of artf743758 (CR_TR00019741 with group finish condition)
//
// For small CPS-es (1e-4, 1e-5, 1e-6)
// the traffic should start immediately after start button is pressed.
// This testcase checks this by checking the numberOfStarts statistics
// The traffic cases are distributed on 2 LGens
// The test is the same as <tc_ExecCtrl_Test_smallCPS_FirstCallTime> but
// group finish condition is added to the traffic cases with nrOfExecStart==1
// The group finish condition should be distributed so that the traffic case
/// could start immediately even if CPS is small.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_Test_smallCPS_FirstCallTime_withGroupFinishCondition() runs on ExecCtrl_NewGUITest_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("smallCPS_FirstCallTime_withGroupFinishCondition", true, vl_wndLayout,self);
f_EPTF_UIHandler_clearGUI();
f_EPTF_UIHandler_addWindow();
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := {
{
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
scenarioNames := {
c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal
}
}},
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario_smallCPS_FirstCallTime_withGroupFinishCondition
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPoolWithSpecId_Declarators_withGroupFinishCondition,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGenWithSpecId)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:={},
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:={},
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_ExecCtrl_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_loadModulepars := false,
pl_autoStart := true,
pl_dataSource_compRef := self
);
timer T_guard, T_alt;
T_guard.start( 30.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config: v_ready");
}
[v_ready] T_alt.timeout{}
};
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,""/*c_ExecCtrl_DS_customGUIHBox*/);
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config: checkReadyToRun");
}
[f_EPTF_ExecCtrl_checkReadyToRun()] T_alt.timeout{}
};
f_EPTF_ExecCtrl_startAllScenarios();
var charstring vl_nofStarts_VarName;
f_EPTF_DataSource_getData(
pl_dataVarName := vl_nofStarts_VarName,
pl_source := c_ExecCtrl_DataSource_sourceId,
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTcStat,
pl_params := {
{
paramName := "EntityGroup",
paramValue := "DefaultEGrp"
},
{
paramName := "Scenario",
paramValue := "DefaultSc"
},
{
paramName := "TrafficCase",
paramValue := "DefaultTC1"
},
{
paramName := "Statistic",
paramValue := "Starts"
}
}
);
var integer vl_varIdx := f_EPTF_Var_getId(vl_nofStarts_VarName);
f_EPTF_DataSource_getData(
pl_dataVarName := vl_nofStarts_VarName,
pl_source := c_ExecCtrl_DataSource_sourceId,
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTcStat,
pl_params := {
{
paramName := "EntityGroup",
paramValue := "DefaultEGrp"
},
{
paramName := "Scenario",
paramValue := "DefaultSc"
},
{
paramName := "TrafficCase",
paramValue := "DefaultTC2"
},
{
paramName := "Statistic",
paramValue := "Starts"
}
}
);
var integer vl_varIdx2 := f_EPTF_Var_getId(vl_nofStarts_VarName);
f_EPTF_DataSource_getData(
pl_dataVarName := vl_nofStarts_VarName,
pl_source := c_ExecCtrl_DataSource_sourceId,
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTcStat,
pl_params := {
{
paramName := "EntityGroup",
paramValue := "DefaultEGrp"
},
{
paramName := "Scenario",
paramValue := "DefaultSc"
},
{
paramName := "TrafficCase",
paramValue := "DefaultTC2_6"
},
{
paramName := "Statistic",
paramValue := "Starts"
}
}
);
var integer vl_varIdx3 := f_EPTF_Var_getId(vl_nofStarts_VarName);
T_guard.start( 10.0 );
T_guard.timeout;
if(vl_varIdx<0 or vl_varIdx2<0 or vl_varIdx3<0){
action("tc_ExecCtrl_Test_smallCPS_FirstCallTime_withGroupFinishCondition:{",vl_varIdx, "; ",vl_varIdx2, "; ",vl_varIdx3, "}");
setverdict(fail,"Variable not found.")
f_EPTF_Base_stopAll(none);
}
else {
if(f_EPTF_Var_getIntValue(vl_varIdx)!=1) {
setverdict(fail,"TrafficCase DefaultTC1 with CPS 1e-4 did not start in time.")
f_EPTF_Base_stopAll(none);
}
if(f_EPTF_Var_getIntValue(vl_varIdx2)!=1) {
setverdict(fail,"TrafficCase DefaultTC2 with CPS 1e-5 did not start in time.")
f_EPTF_Base_stopAll(none);
}
if(f_EPTF_Var_getIntValue(vl_varIdx3)!=1) {
setverdict(fail,"TrafficCase DefaultTC2_6 with CPS 1e-6 did not start in time.")
f_EPTF_Base_stopAll(none);
}
}
//f_EPTF_Base_wait4Shutdown();
setverdict(pass);
f_EPTF_Base_cleanup_CT();
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_Test_tcFailForNotRunning_MANUAL
//
// Purpose:
// This MANUAL test checks the implementation of TR: HR15679
//
// For an invalid FSM in which failed is reported before traffic is started
// the execution should not result in DTE generated from ILog when debug is not defined
//
// When this test is executed with EPTF_DEBUG defined, the test will exit with an
// assertion error: Entity is not busy.
// That is why the test should be executed in no-debug mode.
//
// Test execution:
// - Compile the project without the -DEPTF_DEBUG option in the Makefile
// - Start the test and wait for GUI
// - Press the "SingleShot button" (or start the TC with 1e-3 CPS)
// - The test should not stop by DTE.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_Test_tcFailForNotRunning_MANUAL() runs on ExecCtrl_NewGUITest_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("tcFailForNotRunning", true, vl_wndLayout,self);
timer t_wait := 0.0, t_maxWait := 5.0;
var charstring vl_dataVarName;
t_maxWait.start;
t_wait.start;
alt {
[0==f_EPTF_DataSource_checkData(
pl_dataVarName := vl_dataVarName,
pl_source := "UIHandler",
pl_ptcName := "",
pl_element := "progressBar",
pl_params := {}
)] t_wait.timeout; // wait for UIHander DS registration
[] t_maxWait.timeout {
setverdict(fail,"Cannot display progress information, UIHandler DS registration timed out");
//f_EPTF_Base_stop(none);
}
}
f_EPTF_UIHandler_createGUI("
<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>
<hbox flex='0.0' id='' orientation='horizontal'>
<label flex='0.0' value='Progress:' />
<spacer flex='0.0' />
<textbox id='ProgressBar' flex='1.0' readonly='true' value=''>
<externaldata element='progressBar' source='UIHandler'>
<params>
</params>
</externaldata>
</textbox>
</hbox>
</Widgets>",
"EPTF_Main_Window"
);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := {
{
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
scenarioNames := {
c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal
}
}},
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_tcFailForNotRunningTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_tcFailForNotRunningLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createTcFailForNotRunningLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:={},
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:={},
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
/*f_EPTF_ExecCtrl_UIHandler_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_uiHandler_compRef := self,
pl_EPTF_GUI_Main_Tabbox_WidgetId := c_EPTF_GUI_Main_Tabbox_WidgetId,
pl_createLGenPools := true
);*/
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_ExecCtrl_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_loadModulepars := false,
pl_autoStart := true,
pl_dataSource_compRef := self
);
const charstring c_ExecCtrl_DS_tabId := "CustomGUI.tab";
const Tabpage execCtrlTab_Tabs := {
id := c_ExecCtrl_DS_tabId,
label_ := "Loading GUI..."
};
var boolean vl_dummyBool;
if(not f_EPTF_UIHandler_XSD_addElementToGui(
{tabpage := execCtrlTab_Tabs},
c_EPTF_GUI_Main_Tabbox_WidgetId,
vl_dummyBool)) {
log(log2str(%definitionId, ": cannot add custom GUI tabs: ", execCtrlTab_Tabs));
}
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
// f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_checkReadyToRun() or v_ready] T_alt.timeout{}
};
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,""/*c_ExecCtrl_DS_customGUIHBox*/);
//f_EPTF_ExecCtrl_startAllScenarios();
f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_stop(pass);
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_Test_cpsProblem_MANUAL
//
// Purpose:
// This MANUAL test checks the max CPS for small entity group
// with a timer in the FSM
// The entity group size should be smaller than the max CPS reachable
// in the test case <tc_ExecCtrl_Test_Manual>
//
//
// Test execution:
// - Start the test and wait for GUI
// - Set a big CPS value (>size of entity group)
// - Start the scenario
// - Check the CPS.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_Test_cpsProblem_MANUAL() runs on ExecCtrl_NewGUITest_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("cpsProblem", true, vl_wndLayout,self);
timer t_wait := 0.0, t_maxWait := 5.0;
var charstring vl_dataVarName;
t_maxWait.start;
t_wait.start;
alt {
[0==f_EPTF_DataSource_checkData(
pl_dataVarName := vl_dataVarName,
pl_source := "UIHandler",
pl_ptcName := "",
pl_element := "progressBar",
pl_params := {}
)] t_wait.timeout; // wait for UIHander DS registration
[] t_maxWait.timeout {
setverdict(fail,"Cannot display progress information, UIHandler DS registration timed out");
//f_EPTF_Base_stop(none);
}
}
f_EPTF_UIHandler_createGUI("
<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>
<hbox flex='0.0' id='' orientation='horizontal'>
<label flex='0.0' value='Progress:' />
<spacer flex='0.0' />
<textbox id='ProgressBar' flex='1.0' readonly='true' value=''>
<externaldata element='progressBar' source='UIHandler'>
<params>
</params>
</externaldata>
</textbox>
</hbox>
</Widgets>",
"EPTF_Main_Window"
);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := {
{
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
scenarioNames := {
c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal
}
}},
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_cpsProblemTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_cpsProblemLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createcpsProblemLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:={},
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:={},
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
/*f_EPTF_ExecCtrl_UIHandler_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_uiHandler_compRef := self,
pl_EPTF_GUI_Main_Tabbox_WidgetId := c_EPTF_GUI_Main_Tabbox_WidgetId,
pl_createLGenPools := true
);*/
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_ExecCtrl_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_loadModulepars := false,
pl_autoStart := true,
pl_dataSource_compRef := self
);
const charstring c_ExecCtrl_DS_tabId := "CustomGUI.tab";
const Tabpage execCtrlTab_Tabs := {
id := c_ExecCtrl_DS_tabId,
label_ := "Loading GUI..."
};
var boolean vl_dummyBool;
if(not f_EPTF_UIHandler_XSD_addElementToGui(
{tabpage := execCtrlTab_Tabs},
c_EPTF_GUI_Main_Tabbox_WidgetId,
vl_dummyBool)) {
log(log2str(%definitionId, ": cannot add custom GUI tabs: ", execCtrlTab_Tabs));
}
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
// f_EPTF_Base_stopAll();
}
[f_EPTF_ExecCtrl_UIHandler_checkGuiDone() or v_ready] T_alt.timeout{}
};
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,""/*c_ExecCtrl_DS_customGUIHBox*/);
//f_EPTF_ExecCtrl_startAllScenarios();
f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_stop(pass);
}
group EPTF_ExecCtrl_ExitDuringTrafficRun_Test {
type component EPTF_ExecCtrl_ExitDuringTrafficRun_Test_CT extends myMTC_UI,ExecCtrlDSClient_Test_CT {
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_ExitDuringTrafficRun_Test
//
// Purpose:
// Artifact artf357457 : Fix TR HS55747:
// Base_StopRemote->Base_cleanup->ExecCtrlClient_waitForByeAck
// makes TSim crash on stopping.
// TitanSim crashes when pressing 'Exit' button on the GUI.
// The issue is caused by the cleanUp implementation:
// it first calls the Application's cleanUp,
// then it calls the ExecControl's cleanup.
// The ExecControl enters in the waitForByeAck,
// and it waits there for a long time.
// Meanwhile an FSM timer expires, and it triggers a teststep.
// Since the component already completed the cleanUp,
// its databases are already empty, and the component crashes.
//
// Test execution:
// - Start the test with a FSM that circularly call a step
// for check if cleanup in progress set verdict to fail.
// - The main process wait a little than call stop.
// - The cleanup process wait more than one FSM check
// cycle before leave.
// - If the FSM running away the next cycle failed.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_ExitDuringTrafficRun_Test() runs on EPTF_ExecCtrl_ExitDuringTrafficRun_Test_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("ExitDuringTrafficRun", true, vl_wndLayout,self);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList&
c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList_scGroups,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DefaultScenarios_normalScenario,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenario,
c_EPTF_ExecCtrl_DefaultScenarios_normalScenarioInScGrp,c_EPTF_ExecCtrl_DefaultScenarios_weightedScenarioInScGrp
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_ExitDuringTrafficRunLGen_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createExitDuringTrafficRunLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_scGroups,
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(false);
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_ExecCtrl_CLI_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_CLI_compRef := self,
pl_loadModulepars := true,
pl_autoStart := true,
pl_dataSource_compRef := self
);
// start the regulators:
var PhaseRegulator_CT vl_regulator1 := PhaseRegulator_CT.create;
vl_regulator1.start(f_EPTF_ExecCtrl_Test_PhaseRegulator_behavior("Regulator 1",self,1.0));
var EPTF_LoadRegulator_CT vl_regulator2 := EPTF_LoadRegulator_CT.create;
vl_regulator2.start(f_ExecCtrl_Regulator_Test_RegulatorBehaviour("Regulator 3",self,1.0));
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
}
[f_EPTF_ExecCtrl_checkReadyToRun() or v_ready] T_alt.timeout{}
};
//f_EPTF_ExecCtrl_startAllScenarios();
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,"");
timer T_g2;
T_g2.start( 5.0 );
T_g2.timeout;
f_EPTF_Base_stop(pass);
}
} // group EPTF_ExecCtrl_ExitDuringTrafficRun_Test
group EPTF_ExecCtrl_DoNotResetAvailableEntitiesWhenTCStarts_Test {
type component EPTF_ExecCtrl_DoNotResetAvailableEntitiesWhenTCStarts_Test_CT extends myMTC_UI,ExecCtrlDSClient_Test_CT {
}
const EPTF_LGenBase_TcMgmt_Scenarios2GrpList c_EPTF_ExecCtrl_DoNotResetAvailableEntitiesWhenTCStarts_Scenarios2GrpList := {
{
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
scenarioNames := {
c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal
}
}
}
const EPTF_LGenBase_ScenarioTypeDeclarator c_EPTF_ExecCtrl_DoNotResetAvailableEntitiesWhenTCStarts_Scenarios := {
name := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal,
tcList := {
{ tcName := "TC_Ctrl_PowerOn",
tcParamsList := {
{tcTypeName := c_EPTF_ExecCtrl_DefaultScenarios_tcTypeName},
{target := {cpsToReach := 20.0}},
{enableEntitiesAtStart := true},
{enabledAtStart := true},
{startDelay := 0.0},
{entityFinishConditions := {{nrOfSuccesses := 1}, {nrOfFails := 1}, {nrOfTimeouts := 1}}},
{trafficStartFinish := {{ availableEntitiesFinished := {actions := {}}}}},
{entityFinishActions := {
//{enableEntity4Tc := {tcName := "TC_Ctrl_Call_Orig", aMode := enableIfPreviousSuccess }},
{enableEntity4Tc := {tcName := "TC_Ctrl_PowerOff", aMode := enableIfPreviousSuccess }},
{enableEntity4Tc := {tcName := "TC_Ctrl_PowerOff_Reset", aMode := enableIfPreviousSuccess }}
}
},
{restoreTCAtStartTC := false}
}
},
{ tcName := "TC_Ctrl_PowerOff",
tcParamsList := {
{tcTypeName := c_EPTF_ExecCtrl_DefaultScenarios_tcTypeName},
{target := {cpsToReach := 20.0}},
{enableEntitiesAtStart := false},
{enabledAtStart := true},
{startDelay := 0.0},
{entityFinishConditions := {{nrOfSuccesses := 1}, {nrOfFails := 1}, {nrOfTimeouts := 1}}},
{trafficStartFinish := {{ availableEntitiesFinished := {actions := {}}}}},
{restoreTCAtStartTC := false}
}
},
{ tcName := "TC_Ctrl_PowerOff_Reset",
tcParamsList := {
{tcTypeName := c_EPTF_ExecCtrl_DefaultScenarios_tcTypeName},
{target := {cpsToReach := 20.0}},
{enableEntitiesAtStart := false},
{enabledAtStart := true},
{startDelay := 0.0},
{entityFinishConditions := {{nrOfSuccesses := 1}, {nrOfFails := 1}, {nrOfTimeouts := 1}}},
{trafficStartFinish := {{ availableEntitiesFinished := {actions := {}}}}}//,
//{restoreTCAtStartTC := false} // RestoreTCAtStartTC is not set => TC restored at start
}
}
},
scParamsList := {
{enabled := true}
}
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_DoNotResetAvailableEntitiesWhenTCStarts_Test
//
// Purpose:
// Artifact artf390789 : Fix TR HS81014:
// When a traffic case started it should be possible not to restore its entities. =>
// => new TC config parameter was introduced: restoreTCAtStartTC
//
// In this test the PowerOn traffic case is started. It is configured to enable the entities of the
// PowerOff traffic case. When the PowerOff traffic case is started afterwards
// it should execute the traffic for all available entities because restoreTCAtStartTC is disabled.
// However, for TC_Ctrl_PowerOff_Reset, there should be no successful traffic, because
// restoreTCAtStartTC is not set for this TC, so entities are reset when TC starts
//
// Test execution:
// - Start the test, powerOn TC is started by StartTC button.
// - Wait until it finishes. There should be 100 available entities for PowerOff TC
// - The PowerOff TC is started, it should execute the trafffic for 100 entities successfully
// - The PowerOff_Reset TC is started, it should execute the trafffic for 0 entities successfully
// - If there will not be 100 successes for PowerOff, traffic case will fail.
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_DoNotResetAvailableEntitiesWhenTCStarts_Test() runs on EPTF_ExecCtrl_DoNotResetAvailableEntitiesWhenTCStarts_Test_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("DoNotResetAvailableEntitiesWhenTCStarts", true, vl_wndLayout,self);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DoNotResetAvailableEntitiesWhenTCStarts_Scenarios2GrpList,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_DefaultScenarios_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_DoNotResetAvailableEntitiesWhenTCStarts_Scenarios
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_defaultLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:={},
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:={},
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_ExecCtrl_CLI_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_CLI_compRef := self,
pl_loadModulepars := false,
pl_autoStart := true,
pl_dataSource_compRef := self
);
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
}
[f_EPTF_ExecCtrl_checkReadyToRun() or v_ready] T_alt.timeout{}
};
//f_EPTF_ExecCtrl_startAllScenarios();
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,"");
var charstring vl_dataVarName;
var integer vl_nofAvailableVarId := -1;
if(0==f_EPTF_DataSource_getData(
pl_dataVarName := vl_dataVarName,
pl_source := c_ExecCtrl_DataSource_sourceId,
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTcStat,
pl_params := {
{
paramName := c_ExecCtrl_paramNameEntityGroup,
paramValue := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName
},
{
paramName := c_ExecCtrl_paramNameScenario,
paramValue := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal
},
{
paramName := c_ExecCtrl_paramNameTrafficCase,
paramValue := "TC_Ctrl_PowerOff"
},
{
paramName := c_ExecCtrl_paramNameStatistic,
paramValue := "Available"
}
}
)) {
vl_nofAvailableVarId := f_EPTF_Var_getId(vl_dataVarName);
}
if (vl_nofAvailableVarId==-1) {
setverdict(fail,"Variable for NofAvailableEntities is not found for TC_Ctrl_PowerOff");
f_EPTF_Base_stop(none);
}
// at start 'Available' should be 0:
if (0!=f_EPTF_Var_getIntValue(vl_nofAvailableVarId)) {
setverdict(fail,"NofAvailableEntities is not 0 at start for TC TC_Ctrl_PowerOff");
f_EPTF_Base_stop(none);
}
//------------------------------------------------------------
// start the TC_Ctrl_PowerOn, Available counter in TC_Ctrl_PowerOff should go up to 100 after 5 sec:
var integer vl_powerOnTC_StartButtonVarIdx := -1;
if(0==f_EPTF_DataSource_getData(
pl_dataVarName := vl_dataVarName,
pl_source := c_ExecCtrl_DataSource_sourceId,
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTcStart,
pl_params := {
{
paramName := c_ExecCtrl_paramNameEntityGroup,
paramValue := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName
},
{
paramName := c_ExecCtrl_paramNameScenario,
paramValue := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal
},
{
paramName := c_ExecCtrl_paramNameTrafficCase,
paramValue := "TC_Ctrl_PowerOn"
}
}
)) {
vl_powerOnTC_StartButtonVarIdx := f_EPTF_Var_getId(vl_dataVarName);
}
if (vl_powerOnTC_StartButtonVarIdx==-1) {
setverdict(fail,"Variable for StartTC is not found for TC_Ctrl_PowerOn");
f_EPTF_Base_stop(none);
}
// press the start TC button for TC_Ctrl_PowerOn:
f_EPTF_Var_adjustContent(vl_powerOnTC_StartButtonVarIdx, {boolVal := true});
//check if available goes up to 100 for TC_Ctrl_PowerOff:
{
timer t_check := 0.0;
t_check.start;
timer t_maxWait := 5.0+3.0*f_EPTF_Var_getRefreshPeriod(0);
t_maxWait.start;
alt {
[f_EPTF_Var_getIntValue(vl_nofAvailableVarId)==100] t_check.timeout; //OK
[] t_maxWait.timeout {
setverdict(fail,"The Available Entities counter of TC_Ctrl_PowerOff did not reach 100 after TC_Ctrl_PowerOn was started");
f_EPTF_Base_stop(none);
}
}
}
//------------------------------------------------------------
// start the TC_Ctrl_PowerOff, Available counter in TC_Ctrl_PowerOff should go down to 0 after 5 sec:
var integer vl_powerOffTC_StartButtonVarIdx := -1;
if(0==f_EPTF_DataSource_getData(
pl_dataVarName := vl_dataVarName,
pl_source := c_ExecCtrl_DataSource_sourceId,
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTcStart,
pl_params := {
{
paramName := c_ExecCtrl_paramNameEntityGroup,
paramValue := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName
},
{
paramName := c_ExecCtrl_paramNameScenario,
paramValue := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal
},
{
paramName := c_ExecCtrl_paramNameTrafficCase,
paramValue := "TC_Ctrl_PowerOff"
}
}
)) {
vl_powerOffTC_StartButtonVarIdx := f_EPTF_Var_getId(vl_dataVarName);
}
if (vl_powerOffTC_StartButtonVarIdx==-1) {
setverdict(fail,"Variable for StartTC is not found for TC_Ctrl_PowerOff");
f_EPTF_Base_stop(none);
}
// press the start TC button for TC_Ctrl_PowerOff:
f_EPTF_Var_adjustContent(vl_powerOffTC_StartButtonVarIdx, {boolVal := true});
//check if available goes down to 0 for TC_Ctrl_PowerOff:
{
timer t_check := 0.0;
t_check.start;
timer t_maxWait := 5.0+3.0*f_EPTF_Var_getRefreshPeriod(0);
t_maxWait.start;
alt {
[f_EPTF_Var_getIntValue(vl_nofAvailableVarId)==0] t_check.timeout; //OK
[] t_maxWait.timeout {
setverdict(fail,"The Available Entities counter of TC_Ctrl_PowerOff did not reach 0 after TC_Ctrl_PowerOff was started");
f_EPTF_Base_stop(none);
}
}
}
// check also the number of successes of TC_Ctrl_PowerOff:
var integer vl_powerOffTC_NofSuccessVarIdx := -1;
if(0==f_EPTF_DataSource_getData(
pl_dataVarName := vl_dataVarName,
pl_source := c_ExecCtrl_DataSource_sourceId,
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTcStat,
pl_params := {
{
paramName := c_ExecCtrl_paramNameEntityGroup,
paramValue := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName
},
{
paramName := c_ExecCtrl_paramNameScenario,
paramValue := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal
},
{
paramName := c_ExecCtrl_paramNameTrafficCase,
paramValue := "TC_Ctrl_PowerOff"
},
{
paramName := c_ExecCtrl_paramNameStatistic,
paramValue := "Success"
}
}
)) {
vl_powerOffTC_NofSuccessVarIdx := f_EPTF_Var_getId(vl_dataVarName);
}
if (vl_powerOffTC_NofSuccessVarIdx==-1) {
setverdict(fail,"Variable for NofSuccess is not found for TC_Ctrl_PowerOff");
f_EPTF_Base_stop(none);
}
// at end 'Success' should be 100:
if (100!=f_EPTF_Var_getIntValue(vl_powerOffTC_NofSuccessVarIdx)) {
setverdict(fail,"NofSuccess is not 100 at end for TC TC_Ctrl_PowerOff");
f_EPTF_Base_stop(none);
}
//------------------------------------------------------------
//check if available goes down to 0 for TC_Ctrl_PowerOff_Reset right after start:
var integer vl_nofAvailablePowerOffResetVarId := -1;
if(0==f_EPTF_DataSource_getData(
pl_dataVarName := vl_dataVarName,
pl_source := c_ExecCtrl_DataSource_sourceId,
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTcStat,
pl_params := {
{
paramName := c_ExecCtrl_paramNameEntityGroup,
paramValue := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName
},
{
paramName := c_ExecCtrl_paramNameScenario,
paramValue := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal
},
{
paramName := c_ExecCtrl_paramNameTrafficCase,
paramValue := "TC_Ctrl_PowerOff_Reset"
},
{
paramName := c_ExecCtrl_paramNameStatistic,
paramValue := "Available"
}
}
)) {
vl_nofAvailablePowerOffResetVarId := f_EPTF_Var_getId(vl_dataVarName);
}
if (vl_nofAvailablePowerOffResetVarId==-1) {
setverdict(fail,"Variable for NofAvailableEntities is not found for TC_Ctrl_PowerOff");
f_EPTF_Base_stop(none);
}
{
// at start 'Available' should be 100:
if (100!=f_EPTF_Var_getIntValue(vl_nofAvailablePowerOffResetVarId)) {
setverdict(fail,"NofAvailableEntities is not 100 at start for TC TC_Ctrl_PowerOff_Reset");
f_EPTF_Base_stop(none);
}
// start the TC_Ctrl_PowerOff_Reset, Available counter in TC_Ctrl_PowerOff_Reset should go down to 0 after 5 sec:
var integer vl_powerOffResetTC_StartButtonVarIdx := -1;
if(0==f_EPTF_DataSource_getData(
pl_dataVarName := vl_dataVarName,
pl_source := c_ExecCtrl_DataSource_sourceId,
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTcStart,
pl_params := {
{
paramName := c_ExecCtrl_paramNameEntityGroup,
paramValue := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName
},
{
paramName := c_ExecCtrl_paramNameScenario,
paramValue := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal
},
{
paramName := c_ExecCtrl_paramNameTrafficCase,
paramValue := "TC_Ctrl_PowerOff_Reset"
}
}
)) {
vl_powerOffResetTC_StartButtonVarIdx := f_EPTF_Var_getId(vl_dataVarName);
}
if (vl_powerOffResetTC_StartButtonVarIdx==-1) {
setverdict(fail,"Variable for StartTC is not found for TC_Ctrl_PowerOff_Reset");
f_EPTF_Base_stop(none);
}
// press the start TC button for TC_Ctrl_PowerOff_Reset:
f_EPTF_Var_adjustContent(vl_powerOffResetTC_StartButtonVarIdx, {boolVal := true});
timer t_check := 0.0;
t_check.start;
timer t_maxWait := 0.0+3.0*f_EPTF_Var_getRefreshPeriod(0);
t_maxWait.start;
alt {
[f_EPTF_Var_getIntValue(vl_nofAvailablePowerOffResetVarId)==0] t_check.timeout; //OK
[] t_maxWait.timeout {
setverdict(fail,"The Available Entities counter of TC_Ctrl_PowerOff_Reset did not reach 0 after TC_Ctrl_PowerOff_Reset was started");
f_EPTF_Base_stop(none);
}
}
}
// check also the number of successes of TC_Ctrl_PowerOff_Reset:
var integer vl_powerOffResetTC_NofSuccessVarIdx := -1;
if(0==f_EPTF_DataSource_getData(
pl_dataVarName := vl_dataVarName,
pl_source := c_ExecCtrl_DataSource_sourceId,
pl_ptcName := "",
pl_element := c_ExecCtrl_dataElementTcStat,
pl_params := {
{
paramName := c_ExecCtrl_paramNameEntityGroup,
paramValue := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName
},
{
paramName := c_ExecCtrl_paramNameScenario,
paramValue := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal
},
{
paramName := c_ExecCtrl_paramNameTrafficCase,
paramValue := "TC_Ctrl_PowerOff_Reset"
},
{
paramName := c_ExecCtrl_paramNameStatistic,
paramValue := "Success"
}
}
)) {
vl_powerOffResetTC_NofSuccessVarIdx := f_EPTF_Var_getId(vl_dataVarName);
}
if (vl_powerOffResetTC_NofSuccessVarIdx==-1) {
setverdict(fail,"Variable for NofSuccess is not found for TC_Ctrl_PowerOff_Reset");
f_EPTF_Base_stop(none);
}
// at end 'Success' should be 0:
if (0!=f_EPTF_Var_getIntValue(vl_powerOffResetTC_NofSuccessVarIdx)) {
setverdict(fail,"NofSuccess is not 0 at end for TC TC_Ctrl_PowerOff_Reset");
f_EPTF_Base_stop(none);
}
// timer T_g2;
// T_g2.start( 500.0 );
// T_g2.timeout;
f_EPTF_Base_stop(pass);
}
} // group EPTF_ExecCtrl_DoNotResetAvailableEntitiesWhenTCStarts_Test
testcase tc_EPTF_ExecCtrl_Test_checkNothingIsCalledDuringCleanupWhenEndOfConfigReceived() runs on myMTC
{
f_EPTF_Base_init_CT("ExecCtrl_Test");
v_scens := {
{"grp0", "scenario_0_declarator2", "TC0_declarator2", -1,{}},
{"grp1", "scenario_0", "TC0", -1,{}}
}
v_execCtrl := EPTF_ExecCtrl_Test_CT.create("ExecCtrl");
v_clients[0] := EPTF_ExecCtrlClient_Test_CT.create("ExecCtrlC_0");
v_execCtrl.start(f_EPTF_ExecCtrl_Test_manualControlTrue("ExecCtrl", 1, v_scens, tsp_EPTF_Var_SyncInterval+2.0));
timer t_wait := 0.1;
t_wait.start; t_wait.timeout; // to make sure that the ExecCtrl starts up 1st
v_clients[0].start(f_ExecCtrlClient_Test_behaviour("Client_0", v_execCtrl, true, false));
t_wait.start(0.2); t_wait.timeout; // to make sure that the Client is started up
f_EPTF_Base_cleanup_CT();
}
group EPTF_ExecCtrl_Test_CatchDTEInTestStep {
const EPTF_LGenBase_TcMgmt_Scenarios2GrpList c_EPTF_ExecCtrl_Test_CatchDTEInTestStep_Scenarios2GrpList := {
{
eGrpName := c_EPTF_ExecCtrl_DefaultScenarios_eGrpName,
scenarioNames := {
c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal
}
}
}
const EPTF_LGenBase_ScenarioTypeDeclarator c_EPTF_ExecCtrl_Test_CatchDTEInTestStep_Scenarios := {
name := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal,
tcList := {
{ tcName := "TC_GenerateDTE",
tcParamsList := {
{fsmList := {"CatchDTEInTestStep_FSM"}},
// {tcTypeName := c_EPTF_ExecCtrl_DefaultScenarios_tcTypeName},
{target := {cpsToReach := 10.01}},
{enableEntitiesAtStart := true},
{enabledAtStart := true},
{startDelay := 0.0},
{trafficStartFinish := {{ availableEntitiesFinished := {actions := {}}}}}
}
}
},
scParamsList := {
{enabled := true}
}
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_Test_catchDTEInTestStep
//
// Purpose:
// Artifact artf402441 , Story : artf401685
// When a DTE occurs in a test step, LGenBase will report an event to the FSM which handles the event by logging the error string and reporting traffic timeout.
//
// Test execution:
// - The test executes an FSM which generates a Dynamic test case error by executing a division by zero
// for every 3rd entity. The rest of the entities should generate a successful traffic.
// - The FSM catches the DTE event dispatched by LGenBase, it prints out th error and reports a traffic timeout event for the entity
// - The test checks if the DTE event was catched by the FSM
// - The test also checks if the events started in the FSM before the DTE will not be handled after the DTE
// - The test also checks if the test steps that follow the DTE will not be executed
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_Test_catchDTEInTestStep() runs on EPTF_ExecCtrl_Test_CatchDTEInTestStep_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("catchDTEInTestStep", true, vl_wndLayout,self);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_Test_CatchDTEInTestStep_Scenarios2GrpList,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_Test_CatchDTEInTestStep_Scenarios
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_CatchDTEInTestStep_LGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_catchDTEInTestStep_createLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:={},
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:={},
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_ExecCtrl_CLI_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_CLI_compRef := self,
pl_loadModulepars := false,
pl_autoStart := true,
pl_dataSource_compRef := self
);
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
}
[f_EPTF_ExecCtrl_checkReadyToRun() or v_ready] T_alt.timeout{}
};
f_EPTF_ExecCtrl_startAllScenarios();
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,"");
timer T_g2;
T_g2.start( 20.0 );
T_g2.timeout;
f_EPTF_ExecCtrl_stopAllScenarios();
T_g2.start( 15.0 );
T_g2.timeout;
f_EPTF_Base_stop(pass);
}
////////////// DO not handle LGenBase DTE Event in FSM:
const EPTF_LGenBase_ScenarioTypeDeclarator c_EPTF_ExecCtrl_Test_CatchDTEInTestStep_DoNotHandleDTE_Scenarios := {
name := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal,
tcList := {
{ tcName := "TC_GenerateDTE_DoNotHandleDTE",
tcParamsList := {
{fsmList := {"CatchDTEInTestStep_FSM_DoNotHandleDTE"}},
// {tcTypeName := c_EPTF_ExecCtrl_DefaultScenarios_tcTypeName},
{target := {cpsToReach := 10.01}},
{enableEntitiesAtStart := true},
{enabledAtStart := true},
{startDelay := 0.0},
{trafficStartFinish := {{ availableEntitiesFinished := {actions := {}}}}}
}
}
},
scParamsList := {
{enabled := true}
}
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_Test_catchDTEInTestStep_DoNotHandleDTE
//
// Purpose:
// Artifact artf402441 , Story : artf401685
// When a DTE occurs in a test step, LGenBase will report an event to the FSM, but the FSM does not listen to this event.
//
// Test execution:
// - The test executes an FSM which generates a Dynamic test case error by executing a division by zero
// for every 3rd entity. The rest of the entities should generate a successful traffic.
// - The FSM does not catch the DTE event dispatched by LGenBase. This will be detected by LGenBase and it will report
// a traffic error event for the entity
// - The test checks if the DTE event was not catched by the FSM
// - The test also checks if the events started in the FSM before the DTE will not be handled after the DTE
// - The test also checks if the test steps that follow the DTE will not be executed
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_Test_catchDTEInTestStep_DoNotHandleDTE() runs on EPTF_ExecCtrl_Test_CatchDTEInTestStep_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("catchDTEInTestStep", true, vl_wndLayout,self);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_Test_CatchDTEInTestStep_Scenarios2GrpList,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_Test_CatchDTEInTestStep_DoNotHandleDTE_Scenarios
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_CatchDTEInTestStep_LGenPool_Declarators_DoNotHandleDTEEvent,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_catchDTEInTestStep_DoNotHandleDTE_createLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:={},
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:={},
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_ExecCtrl_CLI_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_CLI_compRef := self,
pl_loadModulepars := false,
pl_autoStart := true,
pl_dataSource_compRef := self
);
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
}
[f_EPTF_ExecCtrl_checkReadyToRun() or v_ready] T_alt.timeout{}
};
f_EPTF_ExecCtrl_startAllScenarios();
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,"");
timer T_g2;
T_g2.start( 20.0 );
T_g2.timeout;
f_EPTF_ExecCtrl_stopAllScenarios();
T_g2.start( 15.0 );
T_g2.timeout;
f_EPTF_Base_stop(pass);
}
////////////// Generate DTE Event in DTE Handler in FSM:
const EPTF_LGenBase_ScenarioTypeDeclarator c_EPTF_ExecCtrl_Test_CatchDTEInTestStep_GenerateDTEInDTEHandler_Scenarios := {
name := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal,
tcList := {
{ tcName := "TC_GenerateDTE_GenerateDTEInDTEHandler",
tcParamsList := {
{fsmList := {"CatchDTEInTestStep_FSM_GenerateDTEInDTEHandler"}},
// {tcTypeName := c_EPTF_ExecCtrl_DefaultScenarios_tcTypeName},
{target := {cpsToReach := 10.01}},
{enableEntitiesAtStart := true},
{enabledAtStart := true},
{startDelay := 0.0},
{trafficStartFinish := {{ availableEntitiesFinished := {actions := {}}}}}
}
}
},
scParamsList := {
{enabled := true}
}
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_Test_catchDTEInTestStep_GenerateDTEInDTEHandler
//
// Purpose:
// Artifact artf402441 , Story : artf401685
// When a DTE occurs in a test step, LGenBase will report an event to the FSM which handles the event by logging the error string and reporting traffic timeout
// and at the end generating a DTE.
//
// Test execution:
// - The test executes an FSM which generates a Dynamic test case error by executing a division by zero
// for every 3rd entity and then when the DTE event is handled it generates again a DTE.
// The rest of the entities should generate a successful traffic.
// - The FSM catches the DTE event dispatched by LGenBase, it prints out th error and reports a traffic timeout event for the entity and then generates a new DTE
// - The test checks if the DTE event was catched by the FSM
// - The test also checks if the events started in the FSM before the DTE will not be handled after the DTE
// - The test also checks if the test steps that follow the DTE will not be executed
// - The additional DTE should not cause an infinite-loop of DTE-s
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_Test_catchDTEInTestStep_GenerateDTEInDTEHandler() runs on EPTF_ExecCtrl_Test_CatchDTEInTestStep_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("catchDTEInTestStep", true, vl_wndLayout,self);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_Test_CatchDTEInTestStep_Scenarios2GrpList,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_Test_CatchDTEInTestStep_GenerateDTEInDTEHandler_Scenarios
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_CatchDTEInTestStep_LGenPool_Declarators_GenerateDTEInDTEHandlerEvent,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_catchDTEInTestStep_GenerateDTEInDTEHandler_createLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:={},
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:={},
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_ExecCtrl_CLI_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_CLI_compRef := self,
pl_loadModulepars := false,
pl_autoStart := true,
pl_dataSource_compRef := self
);
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
}
[f_EPTF_ExecCtrl_checkReadyToRun() or v_ready] T_alt.timeout{}
};
f_EPTF_ExecCtrl_startAllScenarios();
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,"");
timer T_g2;
T_g2.start( 20.0 );
T_g2.timeout;
f_EPTF_ExecCtrl_stopAllScenarios();
T_g2.start( 15.0 );
T_g2.timeout;
f_EPTF_Base_stop(pass);
}
////////////// Generate DTE Event in DTE Handler in FSM, no traffic failed is reported:
const EPTF_LGenBase_ScenarioTypeDeclarator c_EPTF_ExecCtrl_Test_CatchDTEInTestStep_GenerateDTEInDTEHandler2_Scenarios := {
name := c_EPTF_ExecCtrl_DefaultScenarios_scNameNormal,
tcList := {
{ tcName := "TC_GenerateDTE_GenerateDTEInDTEHandler2",
tcParamsList := {
{fsmList := {"CatchDTEInTestStep_FSM_GenerateDTEInDTEHandler2"}},
// {tcTypeName := c_EPTF_ExecCtrl_DefaultScenarios_tcTypeName},
{target := {cpsToReach := 10.01}},
{enableEntitiesAtStart := true},
{enabledAtStart := true},
{startDelay := 0.0},
{trafficStartFinish := {{ availableEntitiesFinished := {actions := {}}}}}
}
}
},
scParamsList := {
{enabled := true}
}
}
///////////////////////////////////////////////////////////
// Testcase: tc_ExecCtrl_Test_catchDTEInTestStep_GenerateDTEInDTEHandler2
//
// Purpose:
// Artifact artf402441 , Story : artf401685
// When a DTE occurs in a test step, LGenBase will report an event to the FSM which handles the event by logging the error string and reporting traffic timeout
// and at the end generating a DTE.
//
// Test execution:
// - The test executes an FSM which generates a Dynamic test case error by executing a division by zero
// for every 3rd entity and then when the DTE event is handled it generates again a DTE.
// The rest of the entities should generate a successful traffic.
// - The FSM catches the DTE event dispatched by LGenBase, it prints out th error and reports a traffic timeout event for the entity and then generates a new DTE
// - The test checks if the DTE event was catched by the FSM
// - The test also checks if the events started in the FSM before the DTE will not be handled after the DTE
// - The test also checks if the test steps that follow the DTE will not be executed
// - The additional DTE should not cause an infinite-loop of DTE-s
//
///////////////////////////////////////////////////////////
testcase tc_ExecCtrl_Test_catchDTEInTestStep_GenerateDTEInDTEHandler2() runs on EPTF_ExecCtrl_Test_CatchDTEInTestStep_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("catchDTEInTestStep", true, vl_wndLayout,self);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_DefaultScenarios_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_Test_CatchDTEInTestStep_Scenarios2GrpList,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_Test_CatchDTEInTestStep_GenerateDTEInDTEHandler2_Scenarios
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_CatchDTEInTestStep_LGenPool_Declarators_GenerateDTEInDTEHandler2Event,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_catchDTEInTestStep_GenerateDTEInDTEHandler2_createLGen)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:={},
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:={},
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_ExecCtrl_CLI_init_CT(
pl_selfName := f_EPTF_Base_selfName(),
pl_nrOfClients := 0,
pl_createLGenPools := true,
pl_CLI_compRef := self,
pl_loadModulepars := false,
pl_autoStart := true,
pl_dataSource_compRef := self
);
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
}
[f_EPTF_ExecCtrl_checkReadyToRun() or v_ready] T_alt.timeout{}
};
f_EPTF_ExecCtrl_startAllScenarios();
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,"");
timer T_g2;
T_g2.start( 20.0 );
T_g2.timeout;
f_EPTF_ExecCtrl_stopAllScenarios();
T_g2.start( 15.0 );
T_g2.timeout;
f_EPTF_Base_stop(pass);
}
} // group EPTF_ExecCtrl_Test_CatchDTEInTestStep
// test the total counter stats
group EPTF_ExecCtrl_Test_TotalCounter {
type component ExecCtrl_Test_TotalCounter_Main_CT extends ExecCtrl_NewGUITest_CT, EPTF_UIHandler_CLI_CT, EPTF_ExecCtrl_UIHandler_CT {
}
testcase tc_ExecCtrl_Test_totalCounter() runs on ExecCtrl_Test_TotalCounter_Main_CT
{
var charstring vl_wndLayout := c_EPTF_ExecCtrl_Test_defaultMainWindow_str;
f_EPTF_UIHandlerXUL_init_CT("Test_TotalCounter", true, vl_wndLayout,self);
f_EPTF_Var_setSyncInterval(1.0);
f_EPTF_ExecCtrl_loadConfig(
pl_EPTF_LGenBase_TcMgmt_EntityGrpDeclaratorList := c_EPTF_ExecCtrl_Test_TotalCounter_EGrpList,
pl_EPTF_LGenBase_TcMgmt_Scenarios2GrpList := c_EPTF_ExecCtrl_DefaultScenarios_Scenarios2GrpList,
pl_EPTF_LGenBase_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_tcTypeDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_tcTypeDeclaratorList := {c_EPTF_ExecCtrl_TotalCounter_defaultTCType},
pl_EPTF_LGenBase_TcMgmt_ScenarioDeclaratorList := {},
pl_EPTF_LGenBase_TcMgmt_WeightedScenarioDeclaratorList:= {},
pl_EPTF_ExecCtrl_TimeProfileDescrList:={},
pl_EPTF_ExecCtrl_TimeProfileList:={},
pl_EPTF_ExecCtrl_TimeProfile2TcList:={},
pl_EPTF_LGenBase_ScenarioTypeDeclaratorList:= {
c_EPTF_ExecCtrl_TotalCounter_normalScenario,
c_EPTF_ExecCtrl_TotalCounter_weightedScenario
},
pl_EPTF_ExecCtrl_ScenarioInstanceTypeList:={},
pl_EPTF_ExecCtrl_LGenPool_Declarators:=c_EPTF_ExecCtrl_Test_TotalCounterLGenPool_Declarators,
pl_EPTF_ExecCtrl_EntityGroup2LGenPool_List:=c_EPTF_ExecCtrl_DefaultScenarios_EntityGroup2LGenPool_List,
pl_EPTF_ExecCtrl_LGenFunction_Entry_List:={{
name := omit,
fn := refers(f_ExecCtrl_Test_createDefaultLGenTotalCounter)
}},
pl_EPTF_ExecCtrl_PhaseList_Declarators:=c_EPTF_ExecCtrl_DefaultScenarios_phases,
pl_EPTF_ExecCtrl_ScenarioGroup_Declarators:={},
pl_EPTF_ExecCtrl_RegulatorNames:={},
pl_EPTF_ExecCtrl_RegulatedItems:={}
);
f_EPTF_ExecCtrl_setManualControl(true);
v_ready := false;
f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady ));
f_EPTF_ExecCtrl_CLI_init_CT(f_EPTF_Base_selfName(), 0, pl_loadModulepars := false, pl_dataSource_compRef := self);
// start the regulators:
var PhaseRegulator_CT vl_regulator1 := PhaseRegulator_CT.create;
vl_regulator1.start(f_EPTF_ExecCtrl_Test_PhaseRegulator_behavior("Regulator 1",self,1.0));
var EPTF_LoadRegulator_CT vl_regulator2 := EPTF_LoadRegulator_CT.create;
vl_regulator2.start(f_ExecCtrl_Regulator_Test_RegulatorBehaviour("Regulator 3",self,1.0));
timer T_guard, T_alt;
T_guard.start( 10.0 );
T_alt.start( 0.0 );
alt{
[] T_guard.timeout{
setverdict(fail,"Timeout during config");
f_EPTF_Base_stopAll(none);
}
[v_ready] T_alt.timeout{}
};
f_EPTF_UIHandler_createGUIFromFile(tsp_ExecCtrl_DS_guiXmlName,"");
if(f_EPTF_Base_waitForCondition(pl_checkCondFn:= refers (f_EPTF_ExecCtrl_checkReadyToRun), pl_maxWaitTime:=100.0)==false){
setverdict(pass,"Timeout during config!");
}
f_EPTF_ExecCtrl_startAllScenarios();
timer T_g2;
T_g2.start( 5.0 );
T_g2.timeout;
f_EPTF_ExecCtrl_stopAllScenarios();
T_g2.start( 3.0 );
T_g2.timeout;
for(var integer i:=0; i<sizeof(c_EPTF_ExecCtrl_globalStatNames);i:=i+1) {
var charstring vl_statName := c_EPTF_ExecCtrl_globalStatNames[i];
// get the value of this stat:
var charstring vl_dataVarName;
if (0!=f_EPTF_DataSource_getData(
pl_dataVarName := vl_dataVarName,
pl_source := c_ExecCtrl_DataSource_sourceId,
pl_ptcName := -,
pl_element := c_ExecCtrl_dataElementGlobalStat,
pl_params := {{
paramName := c_ExecCtrl_paramNameStatistic,
paramValue := vl_statName
}},
pl_subscriptionMode := -,
pl_refreshRate := -
)) {
setverdict(fail,"Total counter statistics ",vl_statName, " does not exists.");
f_EPTF_Base_stopAll(none);
}
var integer vl_statValue := f_EPTF_Var_getIntValue(f_EPTF_Var_getId(vl_dataVarName));
if (vl_statValue != c_EPTF_ExecCtrl_Test_TotalCounter_expectedValues[i]) {
setverdict(fail,"The value of total counter ",vl_statName, " is wrong: ",vl_statValue,". It should be: ", c_EPTF_ExecCtrl_Test_TotalCounter_expectedValues[i]);
f_EPTF_Base_stopAll(none);
}
var charstring vl_result := f_EPTF_CLI_executeCommand("gettotalcounter "&c_EPTF_ExecCtrl_globalStatNames[i]);
if (int2str(c_EPTF_ExecCtrl_Test_TotalCounter_expectedValues[i]) != vl_result) {
setverdict(fail,log2str(%definitionId&": Total counter ",c_EPTF_ExecCtrl_globalStatNames[i]," value is wrong from CLI: "&vl_result&" should be: ",c_EPTF_ExecCtrl_Test_TotalCounter_expectedValues[i]));
f_EPTF_Base_stopAll(none);
}
}
setverdict(pass);
//f_EPTF_Base_wait4Shutdown();
f_EPTF_Base_cleanup_CT();
}
} // ~group EPTF_ExecCtrl_Test_TotalCounter
group Help {
type component ExecCtrl_HelpTest_CT extends EPTF_DataSource_CT, EPTF_ExecCtrl_CT {}
function f_EPTF_ExecCtrl_Test_helpCheck(in charstring pl_source := "", in charstring pl_element := "", in charstring pl_expectedPattern := "") runs on ExecCtrl_HelpTest_CT {
var charstring vl_helpTEXT;
var octetstring vl_helpJSON;
vl_helpTEXT := f_EPTF_DataSource_getHelpTEXT(pl_source, pl_element);
action("Help for "&pl_source&": ", vl_helpTEXT);
if (pl_expectedPattern!="") {
// check if the TEXT help contains the pattern:
if(not match(vl_helpTEXT,pattern pl_expectedPattern)) {
setverdict(fail,"The TEXT help does not match the expected pattern: ", match(vl_helpTEXT,pattern pl_expectedPattern));
f_EPTF_Base_stop(none);
}
}
vl_helpJSON := f_EPTF_DataSource_getHelpJSON(pl_source,pl_element);
action("HelpJSON for "&pl_source&": ", vl_helpJSON);
}
testcase tc_EPTF_ExecCtrl_Test_help() runs on ExecCtrl_HelpTest_CT {
f_EPTF_DataSource_init_CT("MTC");
f_EPTF_ExecCtrl_init_CT("ExecCtrl_Test_help",0, pl_dataSource_compRef := self);
timer T_wait;
T_wait.start( 1.0 );
T_wait.timeout;
f_EPTF_ExecCtrl_Test_helpCheck(pl_source := c_ExecCtrl_DataSource_sourceId,pl_expectedPattern := "*Source: \""&c_ExecCtrl_DataSource_sourceId&"\"\n\n*DataElement: \"help\"*");
setverdict(pass);
f_EPTF_Base_stop(none);
}
} //group Help
//=========================================================================
// Control
//=========================================================================
control {
execute(tc_EPTF_ExecCtrl_Test_cleanUp_CT());
execute(tc_EPTF_ExecCtrl_Test_init_CT());
execute(tc_EPTF_ExecCtrl_Test_initScTimeProfileListDB());
execute(tc_EPTF_ExecCtrl_Test_Regulator_init());
execute(tc_EPTF_ExecCtrl_Test_manualControlTrue());
execute(tc_EPTF_ExecCtrl_Test_manualControlFalse());
execute(tc_EPTF_ExecCtrl_Test_CPS());
execute(tc_EPTF_ExecCtrl_Test_CPSFromTimeDescrProfile());
execute(tc_EPTF_ExecCtrl_Test_CPSFromTimeProfileDescr2Client());
execute(tc_EPTF_ExecCtrl_Test_CPSFromTimeProfile());
// execute(tc_EPTF_ExecCtrl_Test_getTypeFromGroup());
// execute(tc_EPTF_ExecCtrl_Test_getETypeFromScenario());
// execute(tc_EPTF_ExecCtrl_Test_getTcName());
// execute(tc_EPTF_ExecCtrl_Test_getTcIdx());
// execute(tc_EPTF_ExecCtrl_Test_getScenGrpIdx());
execute(tc_EPTF_ExecCtrl_Test_startScenarioOnLGensByName2Client());
execute(tc_EPTF_ExecCtrl_Test_stopScenarioOnLGens2Client());
execute(tc_EPTF_ExecCtrl_Test_startTCOnLGensByName2Client());
execute(tc_EPTF_ExecCtrl_Test_stopTCOnLGens2Client());
execute(tc_EPTF_ExecCtrl_Test_checkScenarioStatus2Client());
execute(tc_EPTF_ExecCtrl_Test_scenarioEnabled());
execute(tc_EPTF_ExecCtrl_Test_startAllScenarios());
execute(tc_EPTF_ExecCtrl_Test_stopAllScenarios());
execute(tc_EPTF_ExecCtrl_Test_setCps_TC());
execute(tc_EPTF_ExecCtrl_Test_setCps_TCCPSChangedCallback());
execute(tc_EPTF_ExecCtrl_Test_setCps_SCCPSChangedCallback());
execute(tc_EPTF_ExecCtrl_Test_setCps_SC());
execute(tc_EPTF_ExecCtrl_UIHandler_Test_setCPS());
execute(tc_ETPF_ExecCtrl_UIHandler_Test_startButton());
execute(tc_ExecCtrl_UIHandler_Test_stopButton());
execute(tc_ExecCtrl_UIHandler_Test_terminateButton());
execute(tc_ExecCtrl_UIHandler_Test_ExitButton());
execute(tc_ExecCtrl_UIHandler_Test_StartStopScenarioDisable2());
execute(tc_ExecCtrl_UIHandler_Test_StartStopTcDisable());
execute(tc_ExecCtrl_UIHandler_Test_Tab_EntityGroup());
execute(tc_ExecCtrl_UIHandler_Test_Tab_Resources());
execute(tc_ExecCtrl_UIHandler_Test_Regulator());
execute(tc_ExecCtrl_Regulator_Test_getTotalCps());
execute(tc_ExecCtrl_Regulator_Test_getRegulatorName());
execute(tc_ExecCtrl_Regulator_Test_findRegulatorsForScenario()); // OK
execute(tc_ExecCtrl_Regulator_Test_totalCPSWithTimeProfile());
execute(tc_ExecCtrl_Regulator_Test_setTargetCPSInAutoOff());
// execute(tc_EPTF_ExecCtrl_UIHandler_Test_setCPSOrigImst3());
execute(tc_EPTF_ExecCtrl_UIHandler_Test_setCPSOrig());
// execute(tc_EPTF_ExecCtrl_UIHandler_Test_setCPSOrigImst());
// execute(tc_EPTF_ExecCtrl_UIHandler_Test_setCPSOrigImst2());
execute(tc_ExecCtrl_Test_LGenPool_getLGenCompRefsOfPool());
execute(tc_ExecCtrl_Test_LGenPool_checkCreatorFnNameOfPool());
execute(tc_ExecCtrl_Test_phaseRegulation());
execute(tc_EPTF_ExecCtrl_Test_HL20955());
execute(tc_EPTF_ExecCtrl_Test_ExecTimeForSmallCPS());
execute(tc_EPTF_ExecCtrl_Test_ExecTimeForZeroCPS());
execute(tc_EPTF_ExecCtrl_Test_HL45980_simple());
execute(tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_execTime());
execute(tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_nrOfExecStart());
execute(tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_nrOfSuccesses());
execute(tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_nrOfFails());
execute(tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_nrOfRangeLoop());
execute(tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_nrOfErrors());
execute(tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_nrOfTimeouts());
execute(tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_entitiesFinished());
execute(tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_availableEntitiesFinished());
execute(tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_anythingFinished());
execute(tc_EPTF_ExecCtrl_Test_Action_trafficStartFinish_customFinish());
execute(tc_EPTF_ExecCtrl_Test_Action_trafficFinishedActions_customFinishFunction());
execute(tc_EPTF_ExecCtrl_Test_Action_trafficFinishedActions_testFinished());
execute(tc_ExecCtrl_HL65581Test());
execute(tc_ExecCtrl_Regulator_Test_AddSameRegulatedItem());
execute(tc_ExecCtrl_Regulator_Test_AddSameRegulatedItem2());
execute(tc_ExecCtrl_HL58678_Test_StopScGroup());
execute(tc_ExecCtrl_HL58678_Test_StopAll());
execute(tc_ExecCtrl_Regulator_Test_HL79051());
execute(tc_ExecCtrl_Test_CR_TR00017030_DoNotLoadModulepars());
execute(tc_ExecCtrl_Test_CR_TR00017030_LoadModulepars());
execute(tc_ExecCtrl_Test_WeightedEntityGroup());
execute(tc_ExecCtrl_Test_LoadConfigAfterInit());
execute(tc_ExecCtrl_Test_LoadConfigFromClient());
execute(tc_ExecCtrl_Test_TerminateClientBeforeStart_stopAll());
execute(tc_ExecCtrl_Test_TerminateClientBeforeStart_stop());
execute(tc_ExecCtrl_Test_no_tcTypeDeclaratorList());
//execute(tc_ExecCtrl_PerfTest_CustomGuiRefresh());
execute(tc_ExecCtrl_Test_WeightedEntityGroupWithoutWeightGiven1());
execute(tc_ExecCtrl_Test_WeightedEntityGroupWithoutWeightGiven2());
execute(tc_ExecCtrl_Test_WeightedEntityGroupWithoutWeightGiven3());
execute(tc_ExecCtrl_Test_WeightedEntityGroupWith0Weight1());
execute(tc_ExecCtrl_Test_WeightedEntityGroupWith0Weight2());
execute(tc_ExecCtrl_Test_WeightedEntityGroupWith0Weight3());
execute(tc_ExecCtrl_Test_WeightedEntityGroupWith0Weight101());
execute(tc_ExecCtrl_DS_CheckIteratorsAndExternalDataAndConditions());
execute(tc_ExecCtrl_Test_FSM_TC_StatReset());
execute(tc_ExecCtrl_Test_NoLGensInPool());
execute(tc_ExecCtrl_DS_Neg_WrongEntityGroup());
execute(tc_ExecCtrl_DS_Neg_WrongLGens());
execute(tc_ExecCtrl_DS_Neg_WrongPhases());
execute(tc_ExecCtrl_DS_Neg_WrongScenario1());
execute(tc_ExecCtrl_DS_Neg_WrongScenario2());
execute(tc_ExecCtrl_DS_Neg_WrongScenario3());
execute(tc_ExecCtrl_DS_Neg_WrongScenario4());
execute(tc_ExecCtrl_DS_Neg_WrongScenario5());
execute(tc_ExecCtrl_DS_Neg_WrongTrafficCase1());
execute(tc_ExecCtrl_DS_Neg_WrongTrafficCase2());
execute(tc_ExecCtrl_DS_Neg_WrongTrafficCase3());
execute(tc_ExecCtrl_DS_Neg_WrongTrafficCase4());
execute(tc_ExecCtrl_DS_Neg_WrongTrafficCase5());
execute(tc_ExecCtrl_DS_Neg_WrongTrafficCase6());
execute(tc_ExecCtrl_DS_Neg_WrongTrafficCase7());
execute(tc_ExecCtrl_DS_Neg_WrongScenarioGroups());
execute(tc_ExecCtrl_DS_Neg_WrongScenarios1());
execute(tc_ExecCtrl_DS_Neg_WrongScenarios2());
execute(tc_ExecCtrl_DS_Neg_WrongScenarios3());
execute(tc_ExecCtrl_DS_Neg_WrongPhases2());
execute(tc_ExecCtrl_DS_Neg_WrongPhases3());
execute(tc_ExecCtrl_DS_Neg_WrongPhases4());
execute(tc_ExecCtrl_DS_Neg_WrongLGens2());
execute(tc_ExecCtrl_DS_Neg_WrongLGens3());
execute(tc_ExecCtrl_DS_Neg_WrongEntityGroup2());
execute(tc_ExecCtrl_DS_Neg_WrongEntityGroup3());
execute(tc_ExecCtrl_DS_Neg_WrongEntityTypes1());
execute(tc_ExecCtrl_DS_Neg_WrongEntityTypes2());
execute(tc_ExecCtrl_DS_Neg_WrongRegulatedItems());
execute(tc_ExecCtrl_DS_Neg_WrongTcStats());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementProgressbar());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementProgressbarText());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementGlobalProgressbar());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementExit());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEndOfConfig());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementReadyToRun());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementGUIDone());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEndOfTest());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTimeElapsed());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementStart());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementStop());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTerminate());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementSnapshot());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpType1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpType2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpType3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSize1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSize2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSize3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofMaxAvailEntitiesForLGen1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofMaxAvailEntitiesForLGen2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofMaxAvailEntitiesForLGen3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofMaxAvailEntitiesForLGen4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofMaxAvailEntitiesForLGen5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofMaxAvailEntitiesForLGen6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofCurrentAvailEntitiesForLGen1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofCurrentAvailEntitiesForLGen2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofCurrentAvailEntitiesForLGen3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofCurrentAvailEntitiesForLGen4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofCurrentAvailEntitiesForLGen5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofCurrentAvailEntitiesForLGen6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSizeForLGen1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSizeForLGen2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSizeForLGen3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSizeForLGen4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSizeForLGen5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpSizeForLGen6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffsetForLGen1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffsetForLGen2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffsetForLGen3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffsetForLGen4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffsetForLGen5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffsetForLGen6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatusForLGen8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScIsWeighted1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScIsWeighted2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScIsWeighted3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScIsWeighted4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScIsWeighted5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScIsWeighted6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatus1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatus2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatus3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatus4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatus5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStatus6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStartInTable1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStartInTable2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStartInTable3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStartInTable4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStartInTable5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStartInTable6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStopInTable1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStopInTable2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStopInTable3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStopInTable4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStopInTable5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStopInTable6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScCPS1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScCPS2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScCPS3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScCPS4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScCPS5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScCPS6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStart8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStop8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStartDelay8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTargetCPSOrWeight8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcTimeProfile8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcRegulator9());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemType1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemType2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemType3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemType4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemType5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorName1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorName2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorName3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorName4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorName5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemWeight1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemWeight2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemWeight3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemWeight4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemWeight5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemEnabled1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemEnabled2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemEnabled3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemEnabled4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatedItemEnabled5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTotalValue1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTotalValue2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTotalValue3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTotalValue4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTotalValue5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTargetLoad1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTargetLoad2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTargetLoad3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTargetLoad4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorTargetLoad5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorCurrentLoad1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorCurrentLoad2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorCurrentLoad3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorCurrentLoad4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorCurrentLoad5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorStatus1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorStatus2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorStatus3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorStatus4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementRegulatorStatus5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofDeployedLGens1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofDeployedLGens2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofDeployedLGens3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofDeployedLGens4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofDeployedLGens5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofDeployedLGens6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofDeployedLGens7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofActiveEntities1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofActiveEntities2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofActiveEntities3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofActiveEntities4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementNofActiveEntities5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS9());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScTargetCPS10());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName9());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScRegulatorName10());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase9());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpCurrentPhase10());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode9());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpMode10());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus9());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStatus10());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart9());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpStart10());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate9());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpTerminate10());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset9());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpReset10());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScStatus1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScStatus2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScStatus3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScStatus4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScStatus5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScStatus6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStart1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStart2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStart3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStart4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStart5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStart6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStop1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStop2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStop3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStop4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStop5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScStop6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScReset1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScReset2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScReset3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScReset4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScReset5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScReset6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGroupFinishStatus8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStatus8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus9());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcGrpFinishStatus10());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcExecTime8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEntityIdx8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotEnableLog8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcSingleShotStart8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpEnablePhase1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpEnablePhase2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpEnablePhase3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpEnablePhase4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpEnablePhase5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpEnablePhase6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase9());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase10());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase11());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase12());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScGrpScEnablePhase13());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffset1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffset2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffset3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffset4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpOffset5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpLGenPool1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpLGenPool2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpLGenPool3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpLGenPool4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementEGrpLGenPool5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScInstanceName1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScInstanceName2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScInstanceName3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScInstanceName4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScInstanceName5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScInstanceName6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScPhaseListName1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScPhaseListName2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScPhaseListName3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScPhaseListName4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScPhaseListName5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScPhaseListName6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScScGrpName1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScScGrpName2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScScGrpName3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScScGrpName4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScScGrpName5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementScScGrpName6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat7());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat8());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat9());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementTcStat10());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementCurrentCPS1());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementCurrentCPS2());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementCurrentCPS3());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementCurrentCPS4());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementCurrentCPS5());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementCurrentCPS6());
execute(tc_ExecCtrl_DS_Neg_Wrong_dataElementCurrentCPS7());
// these tests are removed because they hang in the nightly test by some unknown reason
// execute(tc_EPTF_ExecCtrl_Test_over50Scens());
// execute(tc_EPTF_ExecCtrl_Test_over50EGrps());
// execute(tc_EPTF_ExecCtrl_Test_over50Scens2());
// execute(tc_EPTF_ExecCtrl_Test_over50EGrps2());
//
execute(tc_EPTF_ExecCtrl_Test_IteratorZeroResult());
execute(tc_EPTF_ExecCtrl_Test_ExternalData_TimeElapsed());
execute(tc_EPTF_ExecCtrl_Test_StartStopScTcToggleButtonInTable());
execute(tc_EPTF_ExecCtrl_Test_StartStopScTcPushButtonInTable());
// execute(tc_ExecCtrl_Test_SmallCPSDistribution());
// execute(tc_ExecCtrl_Test_SmallCPSDistribution_CPSChange_OneLGen());
// execute(tc_ExecCtrl_Test_SmallCPSDistribution_CPSChange());
// execute(tc_ExecCtrl_Test_SmallCPSDistribution_BurstError());
// execute(tc_ExecCtrl_Test_SmallCPSDistribution_wSc());
// execute(tc_ExecCtrl_Test_SmallCPSDistribution_CPSChange_OneLGen_wSc());
// execute(tc_ExecCtrl_Test_SmallCPSDistribution_CPSChange_wSc());
// execute(tc_ExecCtrl_Test_SmallCPSDistribution_BurstError_wSc());
// execute(tc_ExecCtrl_Test_SmallCPSDistribution_CPSBurstCheck_OneLGen());
execute(tc_EPTF_ExecCtrl_Test_HP34819());
execute(tc_ExecCtrl_Test_wrongTimeProfileName());//HP34137
execute(tc_ExecCtrl_UIHandler_Test_NrOfExpectedClients());
execute(tc_ExecCtrl_Test_no_tcTypeDeclaratorList_HO82462());
execute(tc_ExecCtrl_Test_generatedOwnFinalTest());
execute(tc_ExecCtrl_Test_generatedOwnFinalTest2());
execute(tc_ExecCtrl_HP63565Test());
execute(tc_ExecCtrl_UIHandler_Test_stopButton_manualControl_false());
execute(tc_ExecCtrl_Test_DeltaStat());
execute(tc_ExecCtrl_Test_addWrongEntityGroup2LGenPool());
execute(tc_ExecCtrl_Test_smallCPS_FirstCallTime());
execute(tc_ExecCtrl_Test_smallCPS_FirstCallTime_withGroupFinishCondition());
execute(tc_ExecCtrl_UIHandler_Test_resetAllButton());
execute(tc_EPTF_ExecCtrl_Test_checkAllScenarios());
execute(tc_ExecCtrl_ExitDuringTrafficRun_Test()); // Artifact artf357457 : Fix TR HS55747: Base_StopRemote->Base_cleanup->ExecCtrlClient_waitForByeAck
execute(tc_ExecCtrl_DoNotResetAvailableEntitiesWhenTCStarts_Test()); // Artifact artf390789 : Fix TR HS81014:
execute(tc_EPTF_ExecCtrl_Test_checkNothingIsCalledDuringCleanupWhenEndOfConfigReceived());
execute(tc_ExecCtrl_Test_catchDTEInTestStep());
execute(tc_ExecCtrl_Test_catchDTEInTestStep_DoNotHandleDTE());
execute(tc_ExecCtrl_Test_catchDTEInTestStep_GenerateDTEInDTEHandler());
execute(tc_ExecCtrl_Test_catchDTEInTestStep_GenerateDTEInDTEHandler2());
execute(tc_ExecCtrl_Test_totalCounter());
execute(tc_EPTF_ExecCtrl_Test_help());
}
} // end of module