| /////////////////////////////////////////////////////////////////////////////// |
| // |
| // Copyright (c) 2000-2018 Ericsson Telecom AB |
| // |
| // All rights reserved. This program and the accompanying materials |
| // are made available under the terms of the Eclipse Public License v1.0 |
| // which accompanies this distribution, and is available at |
| // http://www.eclipse.org/legal/epl-v10.html |
| ///////////////////////////////////////////////////////////////////////////////
|
| //
|
| // File: MBT_Qtronic_Testcases.ttcn
|
| // Rev: <RnXnn>
|
| // Prodnr: CNL 113 659
|
| // Updated: 2010-10-01
|
| // Contact: http://ttcn.ericsson.se
|
| ///////////////////////////////////////////////////////////////////////////////
|
| /* -*- ttcn-3 -*- */
|
|
|
| /**
|
| * @file
|
| * C:\Users\eantwuh\workspace\GGSN_Goteborg\MBT_Qtronic_Testcases.ttcn
|
| * @author
|
| * Conformiq TTCN-3 scripting backend
|
| * @version
|
| * Wed Sep 29 11:27:25 CEST 2010
|
| * @desc
|
| * This file contains all test cases generated from the Conformiq 'GGSN_Goteborg' project
|
| * with 'DC 1' design configuration.
|
| * @remark
|
| * WARNING! This file has been automatically generated using the
|
| * Conformiq TTCN-3 scripting backend. DO NOT EDIT.
|
| */
|
| module MBT_Qtronic_Testcases
|
| {
|
| import from MBT_Qtronic_TestSystem all;
|
| import from MBT_Qtronic_Types all;
|
| /* Customized imports begin */
|
| import from MBT_Qtronic_TestHarness all; import from MBT_Qtronic_Main all; import from EPTF_MBT_LGen_Definitions all;
|
| /* Customized imports end */
|
|
|
| modulepar float mp_max_response_time := 10.0;
|
|
|
| /***** Logging verbosity flags *****/
|
| /**
|
| * @desc
|
| * When this module parameter value is set to true all requirements
|
| * targeted in each test case will be logged.
|
| * The default value of this module parameter is true.
|
| */
|
| modulepar boolean mp_log_targeted_requirements := true;
|
|
|
| /**
|
| * @desc
|
| * Generated test case #1
|
| */
|
| testcase tc_Test_Case_1()
|
| runs on QtronicCT
|
| {
|
| log("CQ_DEBUG: Starting execution of test case: 'tc_Test_Case_1'");
|
| var float v_last_wait_timeout := 0.0;
|
| var default v_cq_default;
|
|
|
| /***** set up test configuration, TTCN-3 harness, and adapter *****/
|
| f_cq_beginTestcase();
|
| // default handles waiting beyond maximum response time and reception of any
|
| // other than the expected message with setting a fail verdict and stopping the test
|
| v_cq_default := activate(a_cq_default());
|
|
|
| /***** Step 1; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_1: Step 1");
|
| f_cq_send_Prepare_to_CLIin(m_PrepareTemplate1);
|
| f_cq_log_target("Covered requirement: PrepareRestore/Prepare", e_requirement);
|
|
|
| setverdict(pass);
|
| deactivate(v_cq_default);
|
|
|
| /***** tear down test configuration, TTCN-3 harness, and adapter *****/
|
| f_cq_endTestcase();
|
|
|
| log("CQ_DEBUG: Ending execution of tc_Test_Case_1");
|
| }
|
| /***** Template definitions generated for tc_Test_Case_1*****/
|
| template Prepare m_PrepareTemplate1 :=
|
| {
|
| cmds := {
|
| "f_TELNET_Init",
|
| "f_sr_TELNET_OverrideConfiguration"
|
| }
|
| }
|
|
|
| /**
|
| * @desc
|
| * Generated test case #2
|
| */
|
| testcase tc_Test_Case_2()
|
| runs on QtronicCT
|
| {
|
| log("CQ_DEBUG: Starting execution of test case: 'tc_Test_Case_2'");
|
| var float v_last_wait_timeout := 0.0;
|
| var default v_cq_default;
|
|
|
| /***** set up test configuration, TTCN-3 harness, and adapter *****/
|
| f_cq_beginTestcase();
|
| // default handles waiting beyond maximum response time and reception of any
|
| // other than the expected message with setting a fail verdict and stopping the test
|
| v_cq_default := activate(a_cq_default());
|
|
|
| /***** Step 1; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_2: Step 1");
|
| f_cq_send_Restore_to_CLIin(m_RestoreTemplate2);
|
| f_cq_log_target("Covered requirement: PrepareRestore/Restore", e_requirement);
|
|
|
| setverdict(pass);
|
| deactivate(v_cq_default);
|
|
|
| /***** tear down test configuration, TTCN-3 harness, and adapter *****/
|
| f_cq_endTestcase();
|
|
|
| log("CQ_DEBUG: Ending execution of tc_Test_Case_2");
|
| }
|
| /***** Template definitions generated for tc_Test_Case_2*****/
|
| template Restore m_RestoreTemplate2 :=
|
| {
|
| cmds := {
|
| "f_TELNET_Init",
|
| "f_sr_TELNET_OverrideConfiguration"
|
| }
|
| }
|
|
|
| /**
|
| * @desc
|
| * Generated test case #3
|
| */
|
| testcase tc_Test_Case_3()
|
| runs on QtronicCT
|
| {
|
| log("CQ_DEBUG: Starting execution of test case: 'tc_Test_Case_3'");
|
| var float v_last_wait_timeout := 0.0;
|
| var default v_cq_default;
|
|
|
| /***** set up test configuration, TTCN-3 harness, and adapter *****/
|
| f_cq_beginTestcase();
|
| // default handles waiting beyond maximum response time and reception of any
|
| // other than the expected message with setting a fail verdict and stopping the test
|
| v_cq_default := activate(a_cq_default());
|
|
|
| /***** Step 1; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_3: Step 1");
|
| f_cq_send_Configure_to_CLIin(m_ConfigureTemplate3);
|
|
|
| /***** Step 2; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_3: Step 2");
|
| f_cq_send_CreatePDPcontext_to_GnIn(m_CreatePDPcontextTemplate4);
|
|
|
| /***** Step 3; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_3: Step 3");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_CreatePDPresponse_from_GnOut(m_expectedCreatePDPresponseTemplate5);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 4; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_3: Step 4");
|
| f_cq_log_target("Covered requirement: PDP context/Confirm successful creation", e_requirement);
|
| f_cq_send_UDPpdu_to_GiIn(m_UDPpduTemplate6);
|
|
|
| /***** Step 5; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_3: Step 5");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_GPDU_from_GnOut(m_expectedGPDUTemplate7);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 6; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_3: Step 6");
|
| f_cq_log_target("Covered requirement: Payload/Forward downlink", e_requirement);
|
| f_cq_send_DeletePDPcontext_to_GnIn(m_DeletePDPcontextTemplate8);
|
|
|
| /***** Step 7; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_3: Step 7");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_DeletePDPresponse_from_GnOut(m_expectedDeletePDPresponseTemplate9);
|
| t_cq_timer.stop;
|
| f_cq_log_target("Covered requirement: PDP context/Confirm successful deletion", e_requirement);
|
| f_cq_log_target("Covered requirement: Configuration/Groups/Default - no options", e_requirement);
|
|
|
| setverdict(pass);
|
| deactivate(v_cq_default);
|
|
|
| /***** tear down test configuration, TTCN-3 harness, and adapter *****/
|
| f_cq_endTestcase();
|
|
|
| log("CQ_DEBUG: Ending execution of tc_Test_Case_3");
|
| }
|
| /***** Template definitions generated for tc_Test_Case_3*****/
|
| template Configure m_ConfigureTemplate3 :=
|
| {
|
| cmds := {
|
| "DEFAULT_CONFIG"
|
| },
|
| enableCharging := false,
|
| enableRadiusAuth := false
|
| }
|
|
|
| template CreatePDPcontext m_CreatePDPcontextTemplate4 :=
|
| {
|
| imsi := "240001111231411",
|
| nsapi := 5,
|
| apn := "apn1.com"
|
| }
|
|
|
| template CreatePDPresponse m_expectedCreatePDPresponseTemplate5 :=
|
| {
|
| causevalue := 128
|
| }
|
|
|
| template UDPpdu m_UDPpduTemplate6 :=
|
| {
|
| data := 0
|
| }
|
|
|
| template GPDU m_expectedGPDUTemplate7 :=
|
| {
|
| data := 0
|
| }
|
|
|
| template DeletePDPcontext m_DeletePDPcontextTemplate8 :=
|
| {
|
| nsapi := 5
|
| }
|
|
|
| template DeletePDPresponse m_expectedDeletePDPresponseTemplate9 :=
|
| {
|
| causevalue := 128
|
| }
|
|
|
| /**
|
| * @desc
|
| * Generated test case #4
|
| */
|
| testcase tc_Test_Case_4()
|
| runs on QtronicCT
|
| {
|
| log("CQ_DEBUG: Starting execution of test case: 'tc_Test_Case_4'");
|
| var float v_last_wait_timeout := 0.0;
|
| var default v_cq_default;
|
|
|
| /***** set up test configuration, TTCN-3 harness, and adapter *****/
|
| f_cq_beginTestcase();
|
| // default handles waiting beyond maximum response time and reception of any
|
| // other than the expected message with setting a fail verdict and stopping the test
|
| v_cq_default := activate(a_cq_default());
|
|
|
| /***** Step 1; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_4: Step 1");
|
| f_cq_send_Configure_to_CLIin(m_ConfigureTemplate10);
|
|
|
| /***** Step 2; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_4: Step 2");
|
| f_cq_send_CreatePDPcontext_to_GnIn(m_CreatePDPcontextTemplate11);
|
|
|
| /***** Step 3; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_4: Step 3");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_CreatePDPresponse_from_GnOut(m_expectedCreatePDPresponseTemplate12);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 4; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_4: Step 4");
|
| f_cq_log_target("Covered requirement: PDP context/Confirm successful creation", e_requirement);
|
| f_cq_send_GPDU_to_GnIn(m_GPDUTemplate13);
|
|
|
| /***** Step 5; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_4: Step 5");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_UDPpdu_from_GiOut(m_expectedUDPpduTemplate14);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 6; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_4: Step 6");
|
| f_cq_log_target("Covered requirement: Payload/Forward uplink", e_requirement);
|
| f_cq_send_UDPpdu_to_GiIn(m_UDPpduTemplate15);
|
|
|
| /***** Step 7; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_4: Step 7");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_GPDU_from_GnOut(m_expectedGPDUTemplate16);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 8; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_4: Step 8");
|
| f_cq_log_target("Covered requirement: Payload/Forward downlink", e_requirement);
|
| f_cq_send_DeletePDPcontext_to_GnIn(m_DeletePDPcontextTemplate17);
|
|
|
| /***** Step 9; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_4: Step 9");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_DeletePDPresponse_from_GnOut(m_expectedDeletePDPresponseTemplate18);
|
| t_cq_timer.stop;
|
| f_cq_log_target("Covered requirement: PDP context/Confirm successful deletion", e_requirement);
|
| f_cq_log_target("Covered requirement: Payload/Bidirectional payload", e_requirement);
|
| f_cq_log_target("Covered requirement: Configuration/Groups/Default - no options", e_requirement);
|
|
|
| setverdict(pass);
|
| deactivate(v_cq_default);
|
|
|
| /***** tear down test configuration, TTCN-3 harness, and adapter *****/
|
| f_cq_endTestcase();
|
|
|
| log("CQ_DEBUG: Ending execution of tc_Test_Case_4");
|
| }
|
| /***** Template definitions generated for tc_Test_Case_4*****/
|
| template Configure m_ConfigureTemplate10 :=
|
| {
|
| cmds := {
|
| "DEFAULT_CONFIG"
|
| },
|
| enableCharging := false,
|
| enableRadiusAuth := false
|
| }
|
|
|
| template CreatePDPcontext m_CreatePDPcontextTemplate11 :=
|
| {
|
| imsi := "240001111231411",
|
| nsapi := 5,
|
| apn := "apn1.com"
|
| }
|
|
|
| template CreatePDPresponse m_expectedCreatePDPresponseTemplate12 :=
|
| {
|
| causevalue := 128
|
| }
|
|
|
| template GPDU m_GPDUTemplate13 :=
|
| {
|
| data := 0
|
| }
|
|
|
| template UDPpdu m_expectedUDPpduTemplate14 :=
|
| {
|
| data := 0
|
| }
|
|
|
| template UDPpdu m_UDPpduTemplate15 :=
|
| {
|
| data := 0
|
| }
|
|
|
| template GPDU m_expectedGPDUTemplate16 :=
|
| {
|
| data := 0
|
| }
|
|
|
| template DeletePDPcontext m_DeletePDPcontextTemplate17 :=
|
| {
|
| nsapi := 5
|
| }
|
|
|
| template DeletePDPresponse m_expectedDeletePDPresponseTemplate18 :=
|
| {
|
| causevalue := 128
|
| }
|
|
|
| /**
|
| * @desc
|
| * Generated test case #5
|
| */
|
| testcase tc_Test_Case_5()
|
| runs on QtronicCT
|
| {
|
| log("CQ_DEBUG: Starting execution of test case: 'tc_Test_Case_5'");
|
| var float v_last_wait_timeout := 0.0;
|
| var default v_cq_default;
|
|
|
| /***** set up test configuration, TTCN-3 harness, and adapter *****/
|
| f_cq_beginTestcase();
|
| // default handles waiting beyond maximum response time and reception of any
|
| // other than the expected message with setting a fail verdict and stopping the test
|
| v_cq_default := activate(a_cq_default());
|
|
|
| /***** Step 1; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_5: Step 1");
|
| f_cq_send_Configure_to_CLIin(m_ConfigureTemplate19);
|
|
|
| /***** Step 2; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_5: Step 2");
|
| f_cq_send_CreatePDPcontext_to_GnIn(m_CreatePDPcontextTemplate20);
|
|
|
| /***** Step 3; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_5: Step 3");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_CreatePDPresponse_from_GnOut(m_expectedCreatePDPresponseTemplate21);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 4; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_5: Step 4");
|
| f_cq_log_target("Covered requirement: PDP context/Confirm successful creation", e_requirement);
|
| f_cq_send_GPDU_to_GnIn(m_GPDUTemplate22);
|
|
|
| /***** Step 5; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_5: Step 5");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_UDPpdu_from_GiOut(m_expectedUDPpduTemplate23);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 6; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_5: Step 6");
|
| f_cq_log_target("Covered requirement: Payload/Forward uplink", e_requirement);
|
| f_cq_send_UpdatePDPcontext_to_GnIn(m_UpdatePDPcontextTemplate24);
|
|
|
| /***** Step 7; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_5: Step 7");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_UpdatePDPresponse_from_GnOut(m_expectedUpdatePDPresponseTemplate25);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 8; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_5: Step 8");
|
| f_cq_log_target("Covered requirement: PDP context/Confirm successful update", e_requirement);
|
| f_cq_log_target("Covered requirement: PDP context/Update/After data transfer", e_requirement);
|
| f_cq_send_DeletePDPcontext_to_GnIn(m_DeletePDPcontextTemplate26);
|
|
|
| /***** Step 9; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_5: Step 9");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_DeletePDPresponse_from_GnOut(m_expectedDeletePDPresponseTemplate27);
|
| t_cq_timer.stop;
|
| f_cq_log_target("Covered requirement: PDP context/Confirm successful deletion", e_requirement);
|
| f_cq_log_target("Covered requirement: Configuration/Groups/Default - no options", e_requirement);
|
|
|
| setverdict(pass);
|
| deactivate(v_cq_default);
|
|
|
| /***** tear down test configuration, TTCN-3 harness, and adapter *****/
|
| f_cq_endTestcase();
|
|
|
| log("CQ_DEBUG: Ending execution of tc_Test_Case_5");
|
| }
|
| /***** Template definitions generated for tc_Test_Case_5*****/
|
| template Configure m_ConfigureTemplate19 :=
|
| {
|
| cmds := {
|
| "DEFAULT_CONFIG"
|
| },
|
| enableCharging := false,
|
| enableRadiusAuth := false
|
| }
|
|
|
| template CreatePDPcontext m_CreatePDPcontextTemplate20 :=
|
| {
|
| imsi := "240001111231411",
|
| nsapi := 5,
|
| apn := "apn1.com"
|
| }
|
|
|
| template CreatePDPresponse m_expectedCreatePDPresponseTemplate21 :=
|
| {
|
| causevalue := 128
|
| }
|
|
|
| template GPDU m_GPDUTemplate22 :=
|
| {
|
| data := 0
|
| }
|
|
|
| template UDPpdu m_expectedUDPpduTemplate23 :=
|
| {
|
| data := 0
|
| }
|
|
|
| template UpdatePDPcontext m_UpdatePDPcontextTemplate24 :=
|
| {
|
| nsapi := 5
|
| }
|
|
|
| template UpdatePDPresponse m_expectedUpdatePDPresponseTemplate25 :=
|
| {
|
| causevalue := 128
|
| }
|
|
|
| template DeletePDPcontext m_DeletePDPcontextTemplate26 :=
|
| {
|
| nsapi := 5
|
| }
|
|
|
| template DeletePDPresponse m_expectedDeletePDPresponseTemplate27 :=
|
| {
|
| causevalue := 128
|
| }
|
|
|
| /**
|
| * @desc
|
| * Generated test case #6
|
| */
|
| testcase tc_Test_Case_6()
|
| runs on QtronicCT
|
| {
|
| log("CQ_DEBUG: Starting execution of test case: 'tc_Test_Case_6'");
|
| var float v_last_wait_timeout := 0.0;
|
| var default v_cq_default;
|
|
|
| /***** set up test configuration, TTCN-3 harness, and adapter *****/
|
| f_cq_beginTestcase();
|
| // default handles waiting beyond maximum response time and reception of any
|
| // other than the expected message with setting a fail verdict and stopping the test
|
| v_cq_default := activate(a_cq_default());
|
|
|
| /***** Step 1; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_6: Step 1");
|
| f_cq_send_Configure_to_CLIin(m_ConfigureTemplate28);
|
|
|
| /***** Step 2; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_6: Step 2");
|
| f_cq_send_CreatePDPcontext_to_GnIn(m_CreatePDPcontextTemplate29);
|
|
|
| /***** Step 3; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_6: Step 3");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_CreatePDPresponse_from_GnOut(m_expectedCreatePDPresponseTemplate30);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 4; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_6: Step 4");
|
| f_cq_log_target("Covered requirement: PDP context/Confirm successful creation", e_requirement);
|
| f_cq_send_UpdatePDPcontext_to_GnIn(m_UpdatePDPcontextTemplate31);
|
|
|
| /***** Step 5; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_6: Step 5");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_UpdatePDPresponse_from_GnOut(m_expectedUpdatePDPresponseTemplate32);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 6; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_6: Step 6");
|
| f_cq_log_target("Covered requirement: PDP context/Confirm successful update", e_requirement);
|
| f_cq_log_target("Covered requirement: PDP context/Update/Before data transfer", e_requirement);
|
| f_cq_send_GPDU_to_GnIn(m_GPDUTemplate33);
|
|
|
| /***** Step 7; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_6: Step 7");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_UDPpdu_from_GiOut(m_expectedUDPpduTemplate34);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 8; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_6: Step 8");
|
| f_cq_log_target("Covered requirement: Payload/Forward uplink", e_requirement);
|
| f_cq_send_DeletePDPcontext_to_GnIn(m_DeletePDPcontextTemplate35);
|
|
|
| /***** Step 9; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_6: Step 9");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_DeletePDPresponse_from_GnOut(m_expectedDeletePDPresponseTemplate36);
|
| t_cq_timer.stop;
|
| f_cq_log_target("Covered requirement: PDP context/Confirm successful deletion", e_requirement);
|
| f_cq_log_target("Covered requirement: Configuration/Groups/Default - no options", e_requirement);
|
|
|
| setverdict(pass);
|
| deactivate(v_cq_default);
|
|
|
| /***** tear down test configuration, TTCN-3 harness, and adapter *****/
|
| f_cq_endTestcase();
|
|
|
| log("CQ_DEBUG: Ending execution of tc_Test_Case_6");
|
| }
|
| /***** Template definitions generated for tc_Test_Case_6*****/
|
| template Configure m_ConfigureTemplate28 :=
|
| {
|
| cmds := {
|
| "DEFAULT_CONFIG"
|
| },
|
| enableCharging := false,
|
| enableRadiusAuth := false
|
| }
|
|
|
| template CreatePDPcontext m_CreatePDPcontextTemplate29 :=
|
| {
|
| imsi := "240001111231411",
|
| nsapi := 5,
|
| apn := "apn1.com"
|
| }
|
|
|
| template CreatePDPresponse m_expectedCreatePDPresponseTemplate30 :=
|
| {
|
| causevalue := 128
|
| }
|
|
|
| template UpdatePDPcontext m_UpdatePDPcontextTemplate31 :=
|
| {
|
| nsapi := 5
|
| }
|
|
|
| template UpdatePDPresponse m_expectedUpdatePDPresponseTemplate32 :=
|
| {
|
| causevalue := 128
|
| }
|
|
|
| template GPDU m_GPDUTemplate33 :=
|
| {
|
| data := 0
|
| }
|
|
|
| template UDPpdu m_expectedUDPpduTemplate34 :=
|
| {
|
| data := 0
|
| }
|
|
|
| template DeletePDPcontext m_DeletePDPcontextTemplate35 :=
|
| {
|
| nsapi := 5
|
| }
|
|
|
| template DeletePDPresponse m_expectedDeletePDPresponseTemplate36 :=
|
| {
|
| causevalue := 128
|
| }
|
|
|
| /**
|
| * @desc
|
| * Generated test case #7
|
| */
|
| testcase tc_Test_Case_7()
|
| runs on QtronicCT
|
| {
|
| log("CQ_DEBUG: Starting execution of test case: 'tc_Test_Case_7'");
|
| var float v_last_wait_timeout := 0.0;
|
| var default v_cq_default;
|
|
|
| /***** set up test configuration, TTCN-3 harness, and adapter *****/
|
| f_cq_beginTestcase();
|
| // default handles waiting beyond maximum response time and reception of any
|
| // other than the expected message with setting a fail verdict and stopping the test
|
| v_cq_default := activate(a_cq_default());
|
|
|
| /***** Step 1; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_7: Step 1");
|
| f_cq_send_Configure_to_CLIin(m_ConfigureTemplate37);
|
|
|
| /***** Step 2; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_7: Step 2");
|
| f_cq_send_CreatePDPcontext_to_GnIn(m_CreatePDPcontextTemplate38);
|
|
|
| /***** Step 3; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_7: Step 3");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_CreatePDPresponse_from_GnOut(m_expectedCreatePDPresponseTemplate39);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 4; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_7: Step 4");
|
| f_cq_log_target("Covered requirement: PDP context/Confirm successful creation", e_requirement);
|
| f_cq_send_GPDU_to_GnIn(m_GPDUTemplate40);
|
|
|
| /***** Step 5; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_7: Step 5");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_UDPpdu_from_GiOut(m_expectedUDPpduTemplate41);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 6; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_7: Step 6");
|
| f_cq_log_target("Covered requirement: Payload/Forward uplink", e_requirement);
|
| f_cq_send_DeletePDPcontext_to_GnIn(m_DeletePDPcontextTemplate42);
|
|
|
| /***** Step 7; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_7: Step 7");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_DeletePDPresponse_from_GnOut(m_expectedDeletePDPresponseTemplate43);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 8; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_7: Step 8");
|
| f_cq_log_target("Covered requirement: PDP context/Confirm successful deletion", e_requirement);
|
| f_cq_log_target("Covered requirement: Charging/Single data", e_requirement);
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_CDRinfo_from_GnOut(m_expectedCDRinfoTemplate44);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 9; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_7: Step 9");
|
| f_cq_log_target("Covered requirement: Configuration/Groups/Only Charging", e_requirement);
|
| f_cq_send_OverrideConfiguration_to_CLIin(m_OverrideConfigurationTemplate45);
|
| f_cq_log_target("Covered requirement: Configuration/Clean up if configuration changed", e_requirement);
|
|
|
| setverdict(pass);
|
| deactivate(v_cq_default);
|
|
|
| /***** tear down test configuration, TTCN-3 harness, and adapter *****/
|
| f_cq_endTestcase();
|
|
|
| log("CQ_DEBUG: Ending execution of tc_Test_Case_7");
|
| }
|
| /***** Template definitions generated for tc_Test_Case_7*****/
|
| template Configure m_ConfigureTemplate37 :=
|
| {
|
| cmds := {
|
| "DEFAULT_CONFIG"
|
| },
|
| enableCharging := true,
|
| enableRadiusAuth := false
|
| }
|
|
|
| template CreatePDPcontext m_CreatePDPcontextTemplate38 :=
|
| {
|
| imsi := "240001111231411",
|
| nsapi := 5,
|
| apn := "apn1.com"
|
| }
|
|
|
| template CreatePDPresponse m_expectedCreatePDPresponseTemplate39 :=
|
| {
|
| causevalue := 128
|
| }
|
|
|
| template GPDU m_GPDUTemplate40 :=
|
| {
|
| data := 0
|
| }
|
|
|
| template UDPpdu m_expectedUDPpduTemplate41 :=
|
| {
|
| data := 0
|
| }
|
|
|
| template DeletePDPcontext m_DeletePDPcontextTemplate42 :=
|
| {
|
| nsapi := 5
|
| }
|
|
|
| template DeletePDPresponse m_expectedDeletePDPresponseTemplate43 :=
|
| {
|
| causevalue := 128
|
| }
|
|
|
| template CDRinfo m_expectedCDRinfoTemplate44 :=
|
| {
|
| data := 1
|
| }
|
|
|
| template OverrideConfiguration m_OverrideConfigurationTemplate45 :=
|
| {
|
| overrideCharging := true,
|
| overrideRadiusAuth := false
|
| }
|
|
|
| /**
|
| * @desc
|
| * Generated test case #8
|
| */
|
| testcase tc_Test_Case_8()
|
| runs on QtronicCT
|
| {
|
| log("CQ_DEBUG: Starting execution of test case: 'tc_Test_Case_8'");
|
| var float v_last_wait_timeout := 0.0;
|
| var default v_cq_default;
|
|
|
| /***** set up test configuration, TTCN-3 harness, and adapter *****/
|
| f_cq_beginTestcase();
|
| // default handles waiting beyond maximum response time and reception of any
|
| // other than the expected message with setting a fail verdict and stopping the test
|
| v_cq_default := activate(a_cq_default());
|
|
|
| /***** Step 1; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_8: Step 1");
|
| f_cq_send_Configure_to_CLIin(m_ConfigureTemplate46);
|
|
|
| /***** Step 2; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_8: Step 2");
|
| f_cq_send_CreatePDPcontext_to_GnIn(m_CreatePDPcontextTemplate47);
|
|
|
| /***** Step 3; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_8: Step 3");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_RadiusAccessRequest_from_GiRadiusOut(m_expectedRadiusAccessRequestTemplate48);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 4; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_8: Step 4");
|
| f_cq_log_target("Covered requirement: Radius/Authentication/Send Access Request", e_requirement);
|
| f_cq_send_RadiusAccessAccept_to_GiRadiusIn(m_RadiusAccessAcceptTemplate49);
|
|
|
| /***** Step 5; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_8: Step 5");
|
| f_cq_log_target("Covered requirement: Radius/Authentication/Wait for Access Accept", e_requirement);
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_CreatePDPresponse_from_GnOut(m_expectedCreatePDPresponseTemplate50);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 6; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_8: Step 6");
|
| f_cq_log_target("Covered requirement: PDP context/Confirm successful creation", e_requirement);
|
| f_cq_send_GPDU_to_GnIn(m_GPDUTemplate51);
|
|
|
| /***** Step 7; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_8: Step 7");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_UDPpdu_from_GiOut(m_expectedUDPpduTemplate52);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 8; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_8: Step 8");
|
| f_cq_log_target("Covered requirement: Payload/Forward uplink", e_requirement);
|
| f_cq_send_DeletePDPcontext_to_GnIn(m_DeletePDPcontextTemplate53);
|
|
|
| /***** Step 9; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_8: Step 9");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_DeletePDPresponse_from_GnOut(m_expectedDeletePDPresponseTemplate54);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 10; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_8: Step 10");
|
| f_cq_log_target("Covered requirement: PDP context/Confirm successful deletion", e_requirement);
|
| f_cq_log_target("Covered requirement: Configuration/Groups/Only Radius Auth", e_requirement);
|
| f_cq_send_OverrideConfiguration_to_CLIin(m_OverrideConfigurationTemplate55);
|
| f_cq_log_target("Covered requirement: Configuration/Clean up if configuration changed", e_requirement);
|
|
|
| setverdict(pass);
|
| deactivate(v_cq_default);
|
|
|
| /***** tear down test configuration, TTCN-3 harness, and adapter *****/
|
| f_cq_endTestcase();
|
|
|
| log("CQ_DEBUG: Ending execution of tc_Test_Case_8");
|
| }
|
| /***** Template definitions generated for tc_Test_Case_8*****/
|
| template Configure m_ConfigureTemplate46 :=
|
| {
|
| cmds := {
|
| "DEFAULT_CONFIG"
|
| },
|
| enableCharging := false,
|
| enableRadiusAuth := true
|
| }
|
|
|
| template CreatePDPcontext m_CreatePDPcontextTemplate47 :=
|
| {
|
| imsi := "240001111231411",
|
| nsapi := 5,
|
| apn := "apn1.com"
|
| }
|
|
|
| template RadiusAccessRequest m_expectedRadiusAccessRequestTemplate48 :=
|
| {
|
|
|
| }
|
|
|
| template RadiusAccessAccept m_RadiusAccessAcceptTemplate49 :=
|
| {
|
|
|
| }
|
|
|
| template CreatePDPresponse m_expectedCreatePDPresponseTemplate50 :=
|
| {
|
| causevalue := 128
|
| }
|
|
|
| template GPDU m_GPDUTemplate51 :=
|
| {
|
| data := 0
|
| }
|
|
|
| template UDPpdu m_expectedUDPpduTemplate52 :=
|
| {
|
| data := 0
|
| }
|
|
|
| template DeletePDPcontext m_DeletePDPcontextTemplate53 :=
|
| {
|
| nsapi := 5
|
| }
|
|
|
| template DeletePDPresponse m_expectedDeletePDPresponseTemplate54 :=
|
| {
|
| causevalue := 128
|
| }
|
|
|
| template OverrideConfiguration m_OverrideConfigurationTemplate55 :=
|
| {
|
| overrideCharging := false,
|
| overrideRadiusAuth := true
|
| }
|
|
|
| /**
|
| * @desc
|
| * Generated test case #9
|
| */
|
| testcase tc_Test_Case_9()
|
| runs on QtronicCT
|
| {
|
| log("CQ_DEBUG: Starting execution of test case: 'tc_Test_Case_9'");
|
| var float v_last_wait_timeout := 0.0;
|
| var default v_cq_default;
|
|
|
| /***** set up test configuration, TTCN-3 harness, and adapter *****/
|
| f_cq_beginTestcase();
|
| // default handles waiting beyond maximum response time and reception of any
|
| // other than the expected message with setting a fail verdict and stopping the test
|
| v_cq_default := activate(a_cq_default());
|
|
|
| /***** Step 1; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_9: Step 1");
|
| f_cq_send_Configure_to_CLIin(m_ConfigureTemplate56);
|
|
|
| /***** Step 2; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_9: Step 2");
|
| f_cq_send_CreatePDPcontext_to_GnIn(m_CreatePDPcontextTemplate57);
|
|
|
| /***** Step 3; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_9: Step 3");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_RadiusAccessRequest_from_GiRadiusOut(m_expectedRadiusAccessRequestTemplate58);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 4; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_9: Step 4");
|
| f_cq_log_target("Covered requirement: Radius/Authentication/Send Access Request", e_requirement);
|
| f_cq_send_RadiusAccessAccept_to_GiRadiusIn(m_RadiusAccessAcceptTemplate59);
|
|
|
| /***** Step 5; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_9: Step 5");
|
| f_cq_log_target("Covered requirement: Radius/Authentication/Wait for Access Accept", e_requirement);
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_CreatePDPresponse_from_GnOut(m_expectedCreatePDPresponseTemplate60);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 6; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_9: Step 6");
|
| f_cq_log_target("Covered requirement: PDP context/Confirm successful creation", e_requirement);
|
| f_cq_send_GPDU_to_GnIn(m_GPDUTemplate61);
|
|
|
| /***** Step 7; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_9: Step 7");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_UDPpdu_from_GiOut(m_expectedUDPpduTemplate62);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 8; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_9: Step 8");
|
| f_cq_log_target("Covered requirement: Payload/Forward uplink", e_requirement);
|
| f_cq_send_DeletePDPcontext_to_GnIn(m_DeletePDPcontextTemplate63);
|
|
|
| /***** Step 9; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_9: Step 9");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_DeletePDPresponse_from_GnOut(m_expectedDeletePDPresponseTemplate64);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 10; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_9: Step 10");
|
| f_cq_log_target("Covered requirement: PDP context/Confirm successful deletion", e_requirement);
|
| f_cq_log_target("Covered requirement: Charging/Single data", e_requirement);
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_CDRinfo_from_GnOut(m_expectedCDRinfoTemplate65);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 11; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_9: Step 11");
|
| f_cq_log_target("Covered requirement: Configuration/Groups/Both Charging and Radius Auth", e_requirement);
|
| f_cq_send_OverrideConfiguration_to_CLIin(m_OverrideConfigurationTemplate66);
|
| f_cq_log_target("Covered requirement: Configuration/Clean up if configuration changed", e_requirement);
|
|
|
| setverdict(pass);
|
| deactivate(v_cq_default);
|
|
|
| /***** tear down test configuration, TTCN-3 harness, and adapter *****/
|
| f_cq_endTestcase();
|
|
|
| log("CQ_DEBUG: Ending execution of tc_Test_Case_9");
|
| }
|
| /***** Template definitions generated for tc_Test_Case_9*****/
|
| template Configure m_ConfigureTemplate56 :=
|
| {
|
| cmds := {
|
| "DEFAULT_CONFIG"
|
| },
|
| enableCharging := true,
|
| enableRadiusAuth := true
|
| }
|
|
|
| template CreatePDPcontext m_CreatePDPcontextTemplate57 :=
|
| {
|
| imsi := "240001111231411",
|
| nsapi := 5,
|
| apn := "apn1.com"
|
| }
|
|
|
| template RadiusAccessRequest m_expectedRadiusAccessRequestTemplate58 :=
|
| {
|
|
|
| }
|
|
|
| template RadiusAccessAccept m_RadiusAccessAcceptTemplate59 :=
|
| {
|
|
|
| }
|
|
|
| template CreatePDPresponse m_expectedCreatePDPresponseTemplate60 :=
|
| {
|
| causevalue := 128
|
| }
|
|
|
| template GPDU m_GPDUTemplate61 :=
|
| {
|
| data := 0
|
| }
|
|
|
| template UDPpdu m_expectedUDPpduTemplate62 :=
|
| {
|
| data := 0
|
| }
|
|
|
| template DeletePDPcontext m_DeletePDPcontextTemplate63 :=
|
| {
|
| nsapi := 5
|
| }
|
|
|
| template DeletePDPresponse m_expectedDeletePDPresponseTemplate64 :=
|
| {
|
| causevalue := 128
|
| }
|
|
|
| template CDRinfo m_expectedCDRinfoTemplate65 :=
|
| {
|
| data := 1
|
| }
|
|
|
| template OverrideConfiguration m_OverrideConfigurationTemplate66 :=
|
| {
|
| overrideCharging := true,
|
| overrideRadiusAuth := true
|
| }
|
|
|
| /**
|
| * @desc
|
| * Generated test case #10
|
| */
|
| testcase tc_Test_Case_10()
|
| runs on QtronicCT
|
| {
|
| log("CQ_DEBUG: Starting execution of test case: 'tc_Test_Case_10'");
|
| var float v_last_wait_timeout := 0.0;
|
| var default v_cq_default;
|
|
|
| /***** set up test configuration, TTCN-3 harness, and adapter *****/
|
| f_cq_beginTestcase();
|
| // default handles waiting beyond maximum response time and reception of any
|
| // other than the expected message with setting a fail verdict and stopping the test
|
| v_cq_default := activate(a_cq_default());
|
|
|
| /***** Step 1; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_10: Step 1");
|
| f_cq_send_Configure_to_CLIin(m_ConfigureTemplate67);
|
|
|
| /***** Step 2; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_10: Step 2");
|
| f_cq_send_CreatePDPcontext_to_GnIn(m_CreatePDPcontextTemplate68);
|
|
|
| /***** Step 3; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_10: Step 3");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_CreatePDPresponse_from_GnOut(m_expectedCreatePDPresponseTemplate69);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 4; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_10: Step 4");
|
| f_cq_log_target("Covered requirement: PDP context/Confirm successful creation", e_requirement);
|
| f_cq_send_GPDU_to_GnIn(m_GPDUTemplate70);
|
|
|
| /***** Step 5; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_10: Step 5");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_UDPpdu_from_GiOut(m_expectedUDPpduTemplate71);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 6; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_10: Step 6");
|
| f_cq_log_target("Covered requirement: Payload/Forward uplink", e_requirement);
|
| f_cq_send_GPDU_to_GnIn(m_GPDUTemplate72);
|
|
|
| /***** Step 7; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_10: Step 7");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_UDPpdu_from_GiOut(m_expectedUDPpduTemplate73);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 8; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_10: Step 8");
|
| f_cq_log_target("Covered requirement: Payload/Forward uplink", e_requirement);
|
| f_cq_send_DeletePDPcontext_to_GnIn(m_DeletePDPcontextTemplate74);
|
|
|
| /***** Step 9; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_10: Step 9");
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_DeletePDPresponse_from_GnOut(m_expectedDeletePDPresponseTemplate75);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 10; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_10: Step 10");
|
| f_cq_log_target("Covered requirement: PDP context/Confirm successful deletion", e_requirement);
|
| f_cq_log_target("Covered requirement: Charging/Multiple data", e_requirement);
|
| t_cq_timer.start(mp_max_response_time);
|
| // Note: In below receive v_cq_default() is active!
|
| f_cq_receive_CDRinfo_from_GnOut(m_expectedCDRinfoTemplate76);
|
| t_cq_timer.stop;
|
|
|
| /***** Step 11; t = 0.0 *****/
|
| log("CQ_DEBUG: tc_Test_Case_10: Step 11");
|
| f_cq_log_target("Covered requirement: Configuration/Groups/Only Charging", e_requirement);
|
| f_cq_send_OverrideConfiguration_to_CLIin(m_OverrideConfigurationTemplate77);
|
| f_cq_log_target("Covered requirement: Configuration/Clean up if configuration changed", e_requirement);
|
|
|
| setverdict(pass);
|
| deactivate(v_cq_default);
|
|
|
| /***** tear down test configuration, TTCN-3 harness, and adapter *****/
|
| f_cq_endTestcase();
|
|
|
| log("CQ_DEBUG: Ending execution of tc_Test_Case_10");
|
| }
|
| /***** Template definitions generated for tc_Test_Case_10*****/
|
| template Configure m_ConfigureTemplate67 :=
|
| {
|
| cmds := {
|
| "DEFAULT_CONFIG"
|
| },
|
| enableCharging := true,
|
| enableRadiusAuth := false
|
| }
|
|
|
| template CreatePDPcontext m_CreatePDPcontextTemplate68 :=
|
| {
|
| imsi := "240001111231411",
|
| nsapi := 5,
|
| apn := "apn1.com"
|
| }
|
|
|
| template CreatePDPresponse m_expectedCreatePDPresponseTemplate69 :=
|
| {
|
| causevalue := 128
|
| }
|
|
|
| template GPDU m_GPDUTemplate70 :=
|
| {
|
| data := 0
|
| }
|
|
|
| template UDPpdu m_expectedUDPpduTemplate71 :=
|
| {
|
| data := 0
|
| }
|
|
|
| template GPDU m_GPDUTemplate72 :=
|
| {
|
| data := 0
|
| }
|
|
|
| template UDPpdu m_expectedUDPpduTemplate73 :=
|
| {
|
| data := 0
|
| }
|
|
|
| template DeletePDPcontext m_DeletePDPcontextTemplate74 :=
|
| {
|
| nsapi := 5
|
| }
|
|
|
| template DeletePDPresponse m_expectedDeletePDPresponseTemplate75 :=
|
| {
|
| causevalue := 128
|
| }
|
|
|
| template CDRinfo m_expectedCDRinfoTemplate76 :=
|
| {
|
| data := 2
|
| }
|
|
|
| template OverrideConfiguration m_OverrideConfigurationTemplate77 :=
|
| {
|
| overrideCharging := true,
|
| overrideRadiusAuth := false
|
| }
|
|
|
|
|
| /**
|
| * @desc
|
| * This altstep handles terminating after waiting up to
|
| * the maximum response time and receiving any other
|
| * than the expected message with setting a fail
|
| * verdict and stopping the test
|
| */
|
| altstep a_cq_default() runs on QtronicCT
|
| {
|
| [] t_cq_timer.timeout
|
| {
|
| setverdict(fail);
|
| log("CQ_DEBUG: a_cq_default(): FAIL: Stopping test case after time out of timer: t_cq_timer!");
|
| f_cq_endTestcase();
|
| stop;
|
| }
|
| }
|
| /**
|
| * @desc
|
| * This function blocks the execution for the specified time
|
| * @param
|
| * p_duration The specified time in seconds
|
| */
|
| function f_cq_sleep(float p_duration)
|
| {
|
| timer t;
|
| t.start(p_duration);
|
| t.timeout; // Note that any active default behavior may interrupt this waiting!
|
| }
|
|
|
| type enumerated target_type
|
| {
|
| e_requirement
|
| }
|
|
|
| /**
|
| * @desc
|
| * This function logs target description if the module parameter
|
| * related to the target type is set to true.
|
| * Module parameters and target type dependencies are as follows:
|
| * mp_log_targeted_requirements controls logging of targets type e_requirement
|
| * @param
|
| * p_description The textual target description to be logged
|
| * @param
|
| * p_target_type The type of target covered by a test
|
| */
|
| function f_cq_log_target (charstring p_description, target_type p_target_type) runs on QtronicCT
|
| {
|
| if ((p_target_type == e_requirement) and mp_log_targeted_requirements)
|
| {
|
| log("CQ_INFO: " & p_description);
|
| }
|
| }
|
| control
|
| {
|
| execute(tc_Test_Case_1());
|
| execute(tc_Test_Case_2());
|
| execute(tc_Test_Case_3());
|
| execute(tc_Test_Case_4());
|
| execute(tc_Test_Case_5());
|
| execute(tc_Test_Case_6());
|
| execute(tc_Test_Case_7());
|
| execute(tc_Test_Case_8());
|
| execute(tc_Test_Case_9());
|
| execute(tc_Test_Case_10());
|
| }
|
|
|
| }
|