Commit 5ee15ba7 authored by Michael Proestler's avatar Michael Proestler
Browse files

Add f_TC_ESRP_QUEUE_STATE_BV_03

parent 99aaf351
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ EcrfRedirectTarget.httpPort.params := "HTTP(codecs=lost:lost_codec)/TCP(debug=1,
Lis.httpPort.params := "HTTP(codecs=held:held_codec)/TCP(debug=1,server_mode=1,local_port=8084,use_ssl=0)"

system.httpPort.params := "HTTP(codecs=json:json_codec)/TCP(debug=1,server=host.docker.internal,port=8090,use_ssl=0)"
# QueueState Subscription Test Cases
# QueueState 01/02 Only Subscription Test Cases
#system.SIPP.params := "SIP/TCP(debug=1,server_mode=1,local_port=5080,use_ssl=0)"

# SIP Subscribe Test Cases
@@ -48,6 +48,7 @@ system.SIPP.params := "SIP/TCP(debug=1,server=localhost,port=5060,use_ssl=0)"
# SIP/PSAP
Upstream.SIPP.params := "SIP/TCP(debug=1,server=localhost,port=5060,use_ssl=0)"
Downstream.SIPP.params := "SIP/TCP(debug=1,local_port=5080,server_mode=1,use_ssl=0)"
Downstream.httpPort.params := "HTTP(codecs=json:json_codec)/TCP(debug=1,server=host.docker.internal,port=8090,use_ssl=0)"
Psap.SIPP.params := "SIP/TCP(debug=1,server=localhost,port=5060,use_ssl=0)"
#Psap.SIPP.params := "SIP/TCP(debug=1,server_mode=1,local_port=5070,use_ssl=0)"

+34 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

<!-- This program is free software; you can redistribute it and/or      -->
<!-- modify it under the terms of the GNU General Public License as     -->
<!-- published by the Free Software Foundation; either version 2 of the -->
<!-- License, or (at your option) any later version.                    -->
<!--                                                                    -->
<!-- This program is distributed in the hope that it will be useful,    -->
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of     -->
<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the      -->
<!-- GNU General Public License for more details.                       -->
<!--                                                                    -->
<!-- You should have received a copy of the GNU General Public License  -->
<!-- along with this program; if not, write to the                      -->
<!-- Free Software Foundation, Inc.,                                    -->
<!-- 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA             -->
<!--                                                                    -->
<!--                 Sipp default 'uac' scenario.                       -->
<!--                                                                    -->

<scenario name="Basic Sipstone UAC">
  <!-- In client mode (sipp placing calls), the Call-ID MUST be         -->
  <!-- generated by sipp. To do so, use [call_id] keyword.                -->
  
  <pause milliseconds="5000"/>

  <recv request="INVITE">

  </recv>

  <pause milliseconds="5000"/>
</scenario>
+7 −0
Original line number Diff line number Diff line
#!/bin/bash
set -e
#set -vx

sipp -t t1 -trace_msg -m 1 -sf Downstream.xml 127.0.0.1:5080

exit $?
+9 −0
Original line number Diff line number Diff line
#!/bin/bash
set -e
#set -vx

rm -f *.log

sipp -t t1 -trace_msg -m 1 -sf Scenario.xml

exit $?
+9 −7
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ module AtsESRP_Functions {
    import from AtsESRP_Pixits all;

    import from LibNg112_TestSystem all;
    import from LibIms_Interface all;
    import from LibCommon_Sync all;

    import from LibNg112_DequeueRegistration all;
@@ -230,7 +231,7 @@ module AtsESRP_Functions {

    }
    group QueueState {
        function f_awaitingSubscribeQueueState() runs on HttpSipComponent {
        function f_awaitingSubscribeQueueState() runs on ImsComponent {
            var LibSip_SIPTypesAndValues.Request v_request;

            template LibSip_SIPTypesAndValues.Request mw_request := ?;
@@ -242,7 +243,7 @@ module AtsESRP_Functions {
            log(v_request);            
        }    

        function f_sendSubscribeQueueStateResponse() runs on HttpSipComponent {
        function f_sendSubscribeQueueStateResponse() runs on ImsComponent {
            log("**** f_sendSubscribeQueueStateResponse ****") ;
            f_send200OK();
        }
@@ -260,7 +261,7 @@ module AtsESRP_Functions {
                        )                
        }

        function f_awaitingDequeueRegistrationResponse(template (present) DequeueRegistrationResponse p_response) runs on HttpComponent {
        function f_awaitingDequeueRegistrationResponse(template (present) DequeueRegistrationResponse p_response) runs on HttpComponent return boolean {
            alt {
                [] httpPort.receive(
                                    mw_http_response(
@@ -270,13 +271,14 @@ module AtsESRP_Functions {
                                                                                                )))) {
                    tc_ac.stop;
                    log("*** " & testcasename() & ": INFO: IUT successfully responsds to dequeue registration***");                                        
                    f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_success);
                    return true;
                }
                [] tc_ac.timeout {
                    log("*** " & testcasename() & ": INCONC: Expected message not received ***");                                        
                    f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_timeout);
                    return false;
                }
            }
            return false;            
        }

        function f_awaitingDequeueResponse(template LibItsHttp_TypesAndValues.Response p_response) runs on HttpComponent {
Loading